On Fri, 15 Jul 2005 09:53:35 +0000, Robert Latest wrote:
> Hi folks,
>
> I imagine this is a common problem but I couldn't find any hint as to solving
> it.
>
> I have a tiny network of 2-3 linux boxes connected to a DSL modem that also
> serves as a DHCP server. This is a small office, and the machines are only
> switched on when they get used. I don't know how the DHCP server decides which
> machine gets which address when booting, all I know is that the addresses get
> shuffled around. Of course I want each machine to keep its address, so I'm
> looking for a way for each host to suggest to the DHCP server which address it'd
> like to have. From reading, but not really understanding, the DHCP docs I've
> pieced together this /etc/dhclient.conf file:
>
> ------------
> alias {
> interface"eth0";
> fixed-address 192.168.100.100;
> }
>
> interface "eth0" {
> send host-name "nizo.foo.bar";
> supersede domain-name "foo.bar";
> }
> ------------
>
> ...which accomplishes exactly nothing.
>
> Thanks for any suggestions,
>
> robert
>
Assuming your DSL modem will not assign IP addresses to specific MAC
addresses, then you will have to do a couple of things.
1. Disable dhcp server on DSL modem.
2. Setup dhcp on another device that will be on all the time.
a. Possibly, this small router:
http://www.dlink.com/products/?model=DI-604
This device is a low power device which may be an adequate firewall/router
for your small office.
b. On one of your linux workstations using this howto:
http://www.tldp.org/HOWTO/DHCP/index.html
The key to setting the MAC-to-IP mapping is in the configuration file using
this syntax:
host haagen {
hardware ethernet 08:00:2b:4c:59:23;
fixed-address 192.168.1.222;
}