DHCP服务指定主要的某个网络接口提供DHCP服务

[root@129 ~]# head -40 /etc/init.d/dhcpd |tail -10
lockfile=/var/lock/subsys/dhcpd
pidfile=/var/run/dhcpd.pid
statedir=/var/lib/dhcpd
INTERFACES=eth0   增加这个就可以,表指指定eth0来提供DHCP服务。
[ -f /etc/sysconfig/dhcpd ] && . /etc/sysconfig/dhcpd

# if the user specified a different config file, make sure we reference it
findConfig() {
    for arg in $DHCPDARGS ; do
        if [ "$found" = 1 ]; then
 

 

你可能感兴趣的:(网络,接口,服务,DHCP,休闲)