123
分类: LINUX
2014-04-14 11:27:12
1. sudo apt-get install isc-dhcp-server
2. vi /etc/default/isc-dhcp-server
INTERFACES="eth1.35"
3.vi /etc/dhcp/dhcpd.conf 加入
subnet 192.168.128.0 netmask 255.255.255.0 {
range 192.168.128.30 192.168.128.40;
option broadcast-address 192.168.128.255;
option routers 192.168.128.1;
default-lease-time 6000;
max-lease-time 8000000;
}