<pre name="code" class="html">首先
mv /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.bak
vi /etc/sysconfig/network-scripts/ifcfg-eth0
将内容修改成如下:
[root@mode ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
HWADDR=00:0C:29:37:09:38
ONBOOT=yes
其中HWADDR值得获取:ifconfig eth0|grep HWaddr
保存之后
service network restart
</pre><pre name="code" class="html">
</pre><pre name="code" class="html">