I am sneaking Linux and Samba into my client's IT department (with the cooperation of the IT manager) and we have a few issues getting the system talking to the rest of the network. The network we are inserting the system into uses WINS and does not have DNS for local hostname resolution. The system is required to get its IP address via DHCP. The system is running a vanilla install of RedHat 6.1 (server option - no GUI). Issue: The WINS server has an entry for the samba system, but the registered IP address is 127.0.0.1. I suspect this is because the hosts file does not get updated by pump with the current DHCP address and the only line in the hosts file is the localhost entry. Question: How do I get nmbd to use the correct IP address when it talks to the WINS server? Hardcoding the IP address into the hosts file is not an option here. Thanks for your help, Ross -- Ross Bagley & Associates http://www.rossbagley.com "We don't write your software, we help you write your software better!"
Urban Widmark
2000-Mar-16 23:26 UTC
Server w/ DHCP address incorrectly registers with WINS
On Thu, 16 Mar 2000, Ross Bagley wrote:> Issue: The WINS server has an entry for the samba system, but the > registered IP address is 127.0.0.1. I suspect this is because the > hosts file does not get updated by pump with the current DHCP address > and the only line in the hosts file is the localhost entry.Does it get it's IP from the DHCP? Does it have or get a hostname when talking to the DHCP? We have a net that sounds very similar. I know I had to add DHCP_HOSTNAME="cola" to /etc/sysconfig/network to get pump on my RH6.1 to tell the dhcp server the hostname it wants (you can probably add it in one of those painful config tools as well).> Question: How do I get nmbd to use the correct IP address when it > talks to the WINS server? Hardcoding the IP address into the hosts > file is not an option here.Does it work if you do? If yes then I think the problem is with your dhcp client not setting up the machines net properly. /Urban