Setup: I am running a fresh install of RedHat 6.1 with Samba 2.0.5a installed. My samba machine receives its ip address through a WinNT DHCP server. Problem: When I start Samba, it tries to use the loopback adapter to broadcast its NetBios messages accoridng to tcpdump. Solution #1: Set interface to use in smb.conf file. This is rejected since the address of the interface is issued by the DHCP server, i.e., it changes frequently forcing me to change the smb.conf frequently. Solution #2: Fix /etc/hosts file as specified in GOTCHAS.txt. I changed the entry in /etc/hosts from 127.0.0.1 LinuxStation.ourdomain.com loopback to 127.0.0.1 loopback This resulted in nmbd spitting out errors about not being able to find the IP address of LINUXSTATION (the samba host's name). Since this is a DHCP device, there is no entry in /etc/host of the form 205.123.45.001 LinuxStation.ourdomain.com So.... How exactly are you supposed to get a samba server working on a machine that is assigned its ip address through DHCP? Doug Haigh
Hi Doug, You could ensure that your dhcp server always assigns the same address to your Samba server. In the dhcpd.conf man pages, it explains how to hand out static IPs to clients. At 08:57 AM 2/17/2000 +1100, Doug Haigh wrote:> >Setup: I am running a fresh install of RedHat 6.1 with Samba 2.0.5ainstalled.>My samba machine receives its ip address through a WinNT DHCP server. > >Problem: When I start Samba, it tries to use the loopback adapter tobroadcast>its NetBios messages accoridng to tcpdump. > >Solution #1: Set interface to use in smb.conf file. > >This is rejected since the address of the interface is issued by the DHCP >server, i.e., it changes frequently forcing me to change the smb.conf >frequently. > >Solution #2: Fix /etc/hosts file as specified in GOTCHAS.txt. > >I changed the entry in /etc/hosts from > >127.0.0.1 LinuxStation.ourdomain.com loopback >to >127.0.0.1 loopback > >This resulted in nmbd spitting out errors about not being able to find the IP >address of LINUXSTATION (the samba host's name). Since this is a DHCP device, >there is no entry in /etc/host of the form > >205.123.45.001 LinuxStation.ourdomain.com > > >So.... > >How exactly are you supposed to get a samba server working on a machinethat is>assigned its ip address through DHCP?Regards, Clifford Ilkay Dinamis Corporation 3266 Yonge Street, Suite 1419 Toronto, Ontario Canada M4N 3P6 Voice/Fax: 416-410-3326 mailto:clifford_ilkay@dinamis.com
CLIFFORD ILKAY wrote:> > Hi Doug, > > You could ensure that your dhcp server always assigns the same address to > your Samba server. In the dhcpd.conf man pages, it explains how to hand out > static IPs to clients.Samba 2.0.6 allows an interface *name* to be used in the interfaces line - eg. interfaces = eth0 This should fix the problem. Regards, Jeremy Allison, Samba Team. -- -------------------------------------------------------- Buying an operating system without source is like buying a self-assembly Space Shuttle with no instructions. --------------------------------------------------------