1.設定 /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 140.134.210.144
netmask 255.255.255.128
network 140.134.210.128
broadcast 140.134.210.255
gateway 140.134.210.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 140.134.4.1
dns-search sung.net
allow-hotplug eth0:0
iface eth0:0 inet static
address 192.168.10.1
netmask 255.255.255.0
2.設定 /etc/default/dhcp
INTERFACES="eth0"
3.設定 /etc/dhcpd.conf
option domain-name-servers 140.134.4.1;
option subnet-mask 255.255.255.0;
default-lease-time 14400;
max-lease-time 86400;
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.10 192.168.10.200;
option broadcast-address 192.168.10.255;
option routers 192.168.10.1;
}
沒有留言:
張貼留言