linux网络配置在linux
/etc/sysconfig/network-scripts
通常目录下会有ifcfg-eth0 和 ifcfg-lo 两个网络配置文件,修改ifcfg-eth0网络
vi ifcfg-eth0
找到rest
ONBOOT=no
将no改成yes,激活网卡,而后重启网络,*注意:虚拟机网卡设置为桥接网卡code
linux重启网络命令:ip
service network restart