cd /etc/yum.repos.d
vim test.repo
[dvd]
name=dvd
baseurl=file:///media/RHEL_6.0\ i386\ Disc\ 1/
gpgcheck=0
enabled=1
yun -y install dhcp
vim /etc/dhcp/dhcpd.conf :
清空内容,小写d大写G
增加 subnet 192.168.71.0 netmask 255.255.255.0 {
range 192.168.71.100 192.168.71.200;
}
:wq 退出
service dhcpd restart就可以。
注意防火墙需打开其端口.