I need to add some fixed IP in the DHCP block (or exclude some IPs so that they are not in the DHCP block) for some routers. Every time these routers boot up, they will have these same "static" IPs. If one of these routers is offline, the IP of this router will not be allocated to any other computer on the network. The IP range is from 192.168.1.20-30.
Should I add them in in /var/dhcp/192.168.1 file, like:
Quote:
host router1 {
hardware ethernet 00:03:5d:2a:bb:ca;
fixed-address 192.168.1.20;
}
host router2 {
hardware ethernet 00:03:5d:2f:ba:cc;
fixed-address 192.168.1.21;
}
|
Or this is the wrong way of doing this?
Thanks for any help.