DHCP config
- dhcp01
/etc/dhcp/dhcp.conf
include "/etc/dhcp/dhcpd.failover";
# SERVER FARM 10.254.203.0/25
subnet 10.254.203.0 netmask 255.255.255.128 {
# range 10.254.203.119 10.254.203.120;
option broadcast-address 10.254.203.127;
option domain-name-servers 10.254.200.2;
option routers 10.254.203.1;
default-lease-time 2592000;
max-lease-time 2592000;
pool{
failover peer "dhcp";
range 10.254.203.119 10.254.203.120;
}
}
# FARM-1 172.28.64.0/21
subnet 172.28.64.0 netmask 255.255.248.0 {
range 172.28.64.31 172.28.70.250;
option domain-name-servers 10.50.120.101;
option routers 172.28.64.1;
default-lease-time 2592000;
max-lease-time 2592000;
}
###FI-0000 reservation leases IP
#host reni-mac {
#hardware ethernet 84:C5:A6:E8:53:97;
#fixed-address 172.28.64.31;
#}
# FARM-2 172.28.75.0/24
subnet 172.28.75.0 netmask 255.255.255.0 {
range 172.28.75.31 172.28.75.250;
option domain-name-servers 10.50.120.101;
option routers 172.28.75.1;
default-lease-time 2592000;
max-lease-time 2592000;
}
###FI-0000 reservation leases IP
#host reni-mac {
#hardware ethernet 84:C5:A6:E8:53:97;
#fixed-address 172.28.75.31;
#}
|
/etc/dhcp/dhcpd.failover
failover peer "dhcp"{
primary;
address 10.254.203.119;
port 647;
peer address 10.254.203.120;
peer port 647;
max-response-delay 60;
max-unacked-updates 10;
mclt 600;
split 128;
load balance max seconds 3;
}
|
- dhcp02
/etc/dhcp/dhcp.conf
include "/etc/dhcp/dhcpd.failover";
# SERVER FARM 10.254.203.0/25
subnet 10.254.203.0 netmask 255.255.255.128 {
# range 10.254.203.119 10.254.203.120;
option broadcast-address 10.254.203.127;
option domain-name-servers 10.254.200.2;
option routers 10.254.203.1;
default-lease-time 2592000;
max-lease-time 2592000;
pool{
failover peer "dhcp";
range 10.254.203.119 10.254.203.120;
}
}
# FARM-1 172.28.64.0/21
subnet 172.28.64.0 netmask 255.255.248.0 {
range 172.28.64.31 172.28.70.250;
option domain-name-servers 10.50.120.101;
option routers 172.28.64.1;
default-lease-time 2592000;
max-lease-time 2592000;
}
###FI-0000 reservation leases IP
#host reni-mac {
#hardware ethernet 84:C5:A6:E8:53:97;
#fixed-address 172.28.64.31;
#}
# FARM-2 172.28.75.0/24
subnet 172.28.75.0 netmask 255.255.255.0 {
range 172.28.75.31 172.28.75.250;
option domain-name-servers 10.50.120.101;
option routers 172.28.75.1;
default-lease-time 2592000;
max-lease-time 2592000;
}
###FI-0000 reservation leases IP
#host reni-mac {
#hardware ethernet 84:C5:A6:E8:53:97;
#fixed-address 172.28.75.31;
#}
|
/etc/dhcp/dhcpd.failover
failover peer "dhcp"{
secondary;
address 10.254.203.120;
port 647;
peer address 10.254.203.119;
peer port 647;
max-response-delay 60;
max-unacked-updates 10;
load balance max seconds 3;
}
|