Wednesday, September 29, 2010

DHCPD On Multiple Interface

I have eth0 192.168.0.1 and eth2 192.168.98.1 and here is my simplified dhcpd.conf:

# dhcpd.conf

#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#
default-lease-time 2400;
max-lease-time 7200;
option domain-name "mydomain.com";
ddns-update-style none;

subnet 192.168.0.0 netmask 255.255.255.0 {

option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
range 192.168.0.51 192.168.0.249;
}

subnet 192.168.98.0 netmask 255.255.255.0 {

option subnet-mask 255.255.255.0;
option broadcast-address 192.168.98.255;
option routers 192.168.98.1;
range 192.168.98.51 192.168.98.249;
}

and DHCP starts in my startup script:



Code:
/usr/sbin/dhcpd eth0 eth2 

No comments:

 Simple Python Calculator This script will allows your to calculate the integers given with the chosen operation. You can add, substract, mu...