Configuring DHCP Server for using 2 Ethernet Card
Configuring isc-dhcp-server using 2 Network (2 lan card)
So it will serve about 29 client per network. In other word 29x2=54 client
#nano /etc/network/interfaces
auto lo
iface lo inet loopback
auto enp2s0
iface enp2s0 inet static
network 192.168.10.0
address 192.168.10.1
netmask 255.255.255.224
broadcast 192.168.10.31
auto enp3s5
iface enp3s5 inet static
network 192.168.100.0
address 192.168.100.1
netmask 255.255.255.224
broadcast 192.168.100.31
#nano /etc/dhcp/dhcpd.conf
subnet 192.168.10.0 netmask 255.255.255.224 {
option subnet-mask 255.255.255.224;
option routers 192.168.10.1;
range 192.168.10.2 192.168.10.30;
}
subnet 192.168.100.0 netmask 255.255.255.224 {
option subnet-mask 255.255.255.224;
option routers 192.168.100.1;
range 192.168.100.2 192.168.100.30;
}
default-lease-time 600;
max-lease-time 7200;
Comments
Post a Comment