option routers 192.168.6.1;
range dynamic-bootp 192.168.6.1 192.168.6.254;
}
subnet 192.168.7.0 netmask 255.255.255.0 {
option routers 192.168.7.1;
range dynamic-bootp 192.168.7.1 192.168.7.254;
}
}
#################################################################
下面我們將配置中繼代理伺服器
要配置文檔/etc/sysconfig/dhcrealy.conf
#vi /etc/sysconfig/dhcrealy.conf
在裡面輸入:
INTERFACES="eth1 eth2"
DHCPSERVERS-"192.168.5.2"
下面啟動dhcrelay
#dhcrelay -i eth1 -i eth2 192.168.5.2
最后,我們啟動DHCP伺服器:
#service dhcpd restart
用pc1,pc2,pc3進行測試:
原文標題:DHCP中繼代理配置 - 需要更多
原文網址:
[url]http://www.needmore.cn/blog/article.asp?id=389[/url]