方法一
1:修改/etc/sysconfig/network 中主机名
2:修改/etc/hosts 用127.0.0.1对应主机名
3:安装 dhcp-3.0.x 用TAB补齐
4:拷贝cp /usr/share/doc/dhcp-3.0.x/dhcpd.conf.sample /etc/dhcpd.conf
5:配置/etc/dhcpd.conf
service dhcpd restart
chkconfig --level 345 dhcpd on
chkconfig --list dhcpd
方法二
yum install dhcp
y
y
拷贝dhcpd.conf
service dhcpd restart
chkconfig --level 345 dhcpd on
chkconfig --list dhcpd
linux客户机配置
[root@happyboy root]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp //设置为dhcp状态即可
或者使用
[root@happyboy root]# netconfig //设置为dhcp 自动获取,然后重新启动network服务
[root@happyboy root]# service network restart
阅读(711) | 评论(0) | 转发(0) |