close
手動設定 DHCP 服務主機的 IP 位址 (一定要作)
(1) sudo apt-get install dhcp3-server
(2)sudo nano /etc/dhcp3/dhcpd.conf
:
subnet 172.30.99.0 netmask 255.255.255.0 {
range 172.30.99.128 172.30.99.200;
option routers 172.30.99.254;
option subnet-mask 255.255.255.0;
option broadcast-address 172.30.99.255;
option domain-name-servers 172.30.100.2;
option netbios-name-servers 172.30.100.2;
option netbios-node-type 8;
default-lease-time 86400;
max-lease-time 86400;
# host bla3 {
# hardware ethernet 00:KK:HD:66:55:9B;
# fixed-address 10.152.187.2;
# }
}
(3) sudo /etc/init.d/dhcp3-server restart
DHCP Relay Agent (在router安裝)
(1) sudo apt-get install dhcp3-relay
1.172.30.100.2 (ip)
2.eth0 eth1 內網外網
3.不作設定
全站熱搜
留言列表