Configure DHCP

From WiDirect
Jump to: navigation, search

DHCP Configuration to give more IP addresses on eth1 interface:

subnet 192.168.0.0 netmask 255.255.0.0 {
 range 192.168.1.100 192.168.1.254;
 range 192.168.2.100 192.168.2.254;
 range 192.168.3.100 192.168.99.254;
 option routers 192.168.1.1;
 option domain-name-servers 192.168.1.1;
 option subnet-mask 255.255.0.0;
}

Remember to restart your WiDirect or WiClient when changing the IP addresses.

DHCP Configuration to combing public and private IP addresses:

shared-network wifi {
subnet 62.10.82.0 netmask 255.255.254.0 {
pool{
range 62.10.83.2 62.10.83.200;
option subnet-mask 255.255.254.0;
option routers 62.10.82.1;
option domain-name-servers 62.10.82.1;
}
}

# Private Subnet 172.16.0.0/24
subnet 172.16.0.0 netmask 255.255.0.0 {
    range 172.16.0.20 172.16.0.254; 
    range 172.16.1.20 172.16.2.254;
    option routers 172.16.1.1;
    option domain-name-servers 172.16.1.1; 
    option ntp-servers 172.16.1.1; 
    option subnet-mask 255.255.0.0;
}
}