Click to See Complete Forum and Search --> : two linux boxes on same network (same name problem please help)


zboll
08-13-2006, 01:32 PM
I have been trying to install a second debian Linux box on my network and couldn't figure out why the dhcp would not auto configure so that I could download the files.

well, I shut down my router, reset it, shut down my first debian linux box, then started up the second debian computer and dhcp was configure fine and download went well. But when I started back up my first linux box, dhcp no longer worked on it.

In my router table, dhcp client list looks like this
zacklap 192.168.1.105 00:0B:7D:09:66:5B 23:40:01
grunt 192.168.1.100 00:11:AE:CA:A6:E0 17:34:40
mediacenter 192.168.1.101 00:11:D8:2C:0A:02 23:38:54
192.168.1.102 00:11:AE:CA:A6:00 15:05:26
192.168.1.103 00:11:5B:1C:3A:C9 23:39:41

the two no names are the linux boxes. .102 the first one, and .103 the second. Confirmed with the MAC addresses. Can someone please tell me how to change the name, so that they both dont have the same name(nothing), I think that is what is causing dhcp to only work with one of the linux boxes.

thanks,
Zack

Pafnoutios
08-13-2006, 05:01 PM
I'm not sure which file Debian uses. Either /etc/hostname or /etc/conf.d/hostname, probably the first. Just 'Echo <name> > /etc/hostname'. On your next reboot it will take effect. There may be an init script (/etc/init.d/hostname) that you can restart, "/etc/init.d/hostname restart", without needing to reboot. You can also check out the man page of domainname, "man domainname".