Welcome to WebmasterWorld Guest from 54.162.157.136

Forum Moderators: bakedjake

Message Too Old, No Replies

Linux Router and DHCP

     
7:00 pm on Apr 7, 2008 (gmt 0)

5+ Year Member



Hi,

I currently have 2 ISP connections. For testing purpose, I'm setting up 2 linux boxes both to act as routers for each of the two ISP connections. These routers as well as few workstations will be under the same subnet (eg. 192.168.1.0/24), with the routers internal interface say, 192.168.1.1 and 192.168.1.2

One of the linux box will run DHCP. With the DHCP, I wonder if I'm able to use it to assign the gateway ip to the clients (randomly?).

For example, here is what I have in the dhcpd.conf "option routers":

default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1, 192.168.1.2; #IS THIS POSSIBLE?
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "mydomain.org";
ddns-update-style ad-hoc;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}

Thanks,
zeon

 

Featured Threads

Hot Threads This Week

Hot Threads This Month