[Samba] samba server in two lans

wes samba at the-wes.com
Wed Dec 24 19:13:24 GMT 2008

On Wed, Dec 24, 2008 at 6:52 AM, wes <samba at the-wes.com> wrote:

> On Wed, Dec 24, 2008 at 4:56 AM, Vlastimil Šetka <setka at spsostrov.cz>wrote:
>> Mohammad Reza Hosseini napsal(a):
>>> hello
>>> we have a samba server on centos 5.2 and 2 different lans. so we gave the
>>> server to ips eth0: and eth1:
>>> but after this when we tried to join clients (windows xp) to the domain
>>> the
>>> error: "the specified domain either does not exist or could not be
>>> contacted." what is the solution?
>> I had the same problem with Samba 3.0.24 - Debian Etch package. On PDC
>> server with 5 interfaces (VLAN) when I tried to join clients to domain,
>> sometimes I got several strange errors. Sometimes that errors came on at
>> logon...
>> From tcpdump output I found a problem that Samba server sometimes send
>> browse-reply UDP packets with source IP address of other interface than the
>> outgoing interface. So the client can't locate PDC address.
>> This solution perfectly works for me:
>> smb.conf - global section:
>>  interfaces = lo
>>  socket address =
>> where the is address of one local interface. Be ware that
>> now Samba can be reached only on this 1 address.
>> On the clients is required to set the LMHOSTS file, so client knows
>> selected IP of PDC. I'm using this batch:
>> %systemroot%\system32\drivers\etc\lmhosts
>>  REM keep length = 16 chars including the \0x1b
>>  echo "DOMNAME        \0x1b" #PRE >>
>> %systemroot%\system32\drivers\etc\lmhosts
>>  REM reload config
>>  nbtstat -R
>> Maybe this issue is solved in some newer Samba version.
> I am having this issue also, running Samba 3.0.28a. But, I have a problem
> in that the internal interface has a different IP than the external
> interface. So I can't tell Samba to listen only on the external interface,
> because Samba does not know that interface exists.
> How can I tell Samba to listen on, but tell its clients that its
> IP is
> thanks,
> -wes

Alternateively, I could tell Samba to listen on all interfaces, but have it
tell its clients that its IP is the external IP (which Samba has no other
way of knowing about). Is there a way to do that?


More information about the samba mailing list