多作用域dhcp

2021-05-17 15:23:54 浏览数 (2)

yum -y install dhcp-*

cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhpd.conf

vi /etc/dhcp/dhcpd.conf

cd /etc/sysconfig/network-scripts

cp ifcfg-eth0 ifcfg-eth0:1

vi ifcfg-eth0:1

cp ifcfg-eth0 ifcfg-eth0:2

vi ifcfg-eth0:2

chkconfig --level 35 dhcpd on

service dhcpd configtest

service dhcpd restart

0 人点赞