DHCP
#yum
-y install dhcp (安裝dhcp
server)
#vi /etc/dhcpd.conf
subnet 192.168.10.0 netmask 255.255.255.0 {
range
192.168.10.101 192.168.10.200;
option
routers
192.168.10.254;
option
subnet-mask
255.255.255.0;
option
domain-name
"test.spes.tyc.edu.tw";
option
domain-name-servers 163.30.167.14;
default-lease-time
21600;
max-lease-time
43200;
}
NAT
#vi /etc/sysctl.conf
# 將底下這個設定值修改正確即可!
(本來值為 0 ,將它改為
1 即可)net.ipv4.ip_forward = 1
#iptables -t nat -A POSTROUTING -o eth0 -s 192.168.10.0/24 -j MASQUERADE
沒有留言:
張貼留言