编辑tcp/ip信息
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
修改如下
DEVICE="eth0"
HWADDR="00:22:19:09:4D:3C"
NM_CONTROLLED="yes"
ONBOOT="yes" # Interface enabled
BOOTPROTO="dhcp" #Assigning IP from DHCP
HWADDR="00:22:19:09:4D:3C"
NM_CONTROLLED="yes"
ONBOOT="yes" # Interface enabled
BOOTPROTO="dhcp" #Assigning IP from DHCP
重新启动网络服务
service network restart
service network restart
测试是否正常
ifconfig eth0
ping [外网IP]