Bug 2566 - nmbd wants to register lo:1 to WINS
nmbd wants to register lo:1 to WINS
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: nmbd
3.0.10
All Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-02 03:53 UTC by X-Daemon
Modified: 2005-04-02 03:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description X-Daemon 2005-04-02 03:53:49 UTC
I'm not perfect in samba, but I have a problem:
my server contains 2 virtual servers (include samba) in chroots, the
configuration is:
/etc/networking/interfaces:
auto lo
iface lo inet loopback

auto lo:1
iface lo:1 inet static
        address 127.0.0.2
        netmask 255.0.0.0

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.1
        netmask 255.255.255.0

auto eth0:1
iface eth0:1 inet static
        address 192.168.1.2
        netmask 255.255.255.0

ifconfig shows lo:1 is 'Local Loopback' interface as I want:
eth0      Link encap:Ethernet  HWaddr [...]
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          [...]

eth0:1    Link encap:Ethernet  HWaddr [...]
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          [...]

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          [...]

lo:1      Link encap:Local Loopback
          inet addr:127.0.0.2  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1


FILESERVER1:
/chroot/fileserver1/etc/hosts:
127.0.0.1       localhost
192.168.1.1   fileserver1

/chroot/fileserver1/etc/samba/smb.conf:
[global]
   interfaces = lo eth0
   bind interfaces only = yes
   wins server = 192.168.1.3 #another server

FILESERVER2:
/chroot/fileserver2/etc/hosts:
127.0.0.2       localhost
192.168.1.2   fileserver2

/chroot/fileserver2/etc/samba/smb.conf:
[global]
# order does not matter
   interfaces = lo:1 eth0:1
   bind interfaces only = yes
   wins server = 192.168.1.3 #another server


clients can't access FILESERVER2, that missing from WINS, beacuse nmbd wants to
register lo:1 local interface address, that fails:

log.nmbd:
multihomed_register_one: Failed to send packet trying to register name
FILESERVER2<20> IP 127.0.0.2

my workaround is, I bind FILESERVER2 to eth0:1 ONLY,
but then I can't use localhost:
> smbclient -L localhost

question:
- Can I ignore 127.x.x.x address space for registering to WINS, while I bind to
lo:1 interface either?
- Why not register every interface's address to WINS, then I don't care about
127.0.0.2 fails.

Thanks!

bye X-Daemon