1、切入root用户
su root
2、更改配置文件
sudo vim /etc/sysconfig/network-scripts/ifcfg-eth0
3、重启网卡
service network restart
4、检验是否联网成功
ping www.baidu.com
1、切入root用户
su root
2、更改配置文件
sudo vim /etc/sysconfig/network-scripts/ifcfg-eth0
3、重启网卡
service network restart
4、检验是否联网成功
ping www.baidu.com