Debian Server Setup (wheezy)
1 - eth0 - Connected to INTERNET
1 - eth1 - LAN 1 (Network 1 : 192.168.100.0/24)
1 - wlan0 - Access Point (Network 2 : 192.168.200.0/24)
/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.100.1
network 192.168.100.0
netmask 255.255.255.0
broadcast 192.168.100.255
gateway 192.168.100.1
auto wlan0
iface eth0 inet static
address 192.168.200.1
network 192.168.200.0
netmask 255.255.255.0
/etc/default/isc-dhcp-server
INTERFACES = "wlan0"
/etc/dhcp/dhcpd.conf
subnet 192.168.100.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
pool {
range 192.168.100.50 192.168.100.60;
}
option routers 192.168.100.1;
}
subnet 192.168.200.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
pool {
range 192.168.200.50 192.168.200.60;
}
option routers 192.168.100.1;
}
From the above configuration, I get an error from dhcp; and if by chance, only the clients connected to WLAN0
gets ip-lease;
Please help.
pool { ... };
, just userange { ... };
and addeth1
to theINTERFACES
line.