dhcp

ifplugd -I -i eth0 -r /etc/network/if-eth0.sh
ifplugd -I -i eth1 -r /etc/network/if-eth1.sh
rm /opt/apache2.4/logs/httpd.pid
apachectl start
ifconfig eth0 192.168.8.1
ifconfig eth1 192.168.7.1
/opt/dhcp/sbin/dhcpd -cf /etc/dhcpd.conf eth0
/opt/dhcp/sbin/dhcpd -cf /etc/dhcpd1.conf --no-pid eth1
/opt/dhcp/sbin/dhclient -v eth0
/opt/dhcp/sbin/dhclient -v eth1

rm /opt/apache2.4/logs/httpd.pid


apachectl start


客户端能够自动获取地址。dhclient -v eth0

服务端能够自动分配地址。dhcpd -cf /dhcpd.conf eth0 配置       网口

ifconfig eth0 ip可以设置地址       。

5/3 4206






你可能感兴趣的:(dhcp)