IP liniux-1:
200.1.1.1
IP liniux-2:
200.1.1.2
Configuração do Servidor DHCP Failover no Linux-1
root@linux-1:~#
aptitude install isc-dhcp-server
root@linux-1:~# vim /etc/dhcp/dhcpd.conf
authoritative;
failover peer
"dhcp-failover" {
primary;
address 200.1.1.1;
port 157;
peer address
200.1.1.2;
peer port 157;
mclt 1800;
split 128;
}
subnet 200.1.1.0
netmask 255.255.255.0 {
option domain-name-servers 8.8.8.8, 8.8.8.4;
option domain-name "cisco.com";
option routers 200.1.1.254;
pool {
failover peer
"dhcp-failover";
max-lease-time 1800;
range
200.1.1.100 200.1.1.200;
}
}
service isc-dhcp-server restart
Configuração do Servidor DHCP Failover no Linux-2
root@linux-2:~#
aptitude install isc-dhcp-server
root@linux-2:~# vim /etc/dhcp/dhcpd.conf
authoritative;
failover peer
"dhcp-failover" {
secondary;
address 200.1.1.2;
port 157;
peer address
200.1.1.1;
peer port 157;
}
subnet 200.1.1.0
netmask 255.255.255.0 {
option domain-name-servers 8.8.8.8, 8.8.8.4;
option domain-name "cisco.com";
option routers 200.1.1.254;
pool {
failover peer
"dhcp-failover";
max-lease-time 1800;
range
200.1.1.100 200.1.1.200;
}
}
service isc-dhcp-server restart