Vmware虚拟机下Redhat linux 7.2 网卡开机自动启动
问题描述:在Vmware WorkStation里安装了带有图形界面的Redhat linux 7.2,每次重启OS之后,网络都不通。可以通过菜单 Application ->System Tools ->Settings -> Network来手动设置为ON,如下图所示。现在要求是随开机自动启动。解决:1. 先手工起动,如下图:2. 看下对应的网卡名为e
问题描述:
在Vmware WorkStation里安装了带有图形界面的Redhat linux 7.2,每次重启OS之后,网络都不通。可以通过菜单 Application ->System Tools ->Settings -> Network来手动设置为ON,如下图所示。现在要求是随开机自动启动。
解决:
1. 先手工起动,如下图:
2. 看下对应的网卡名为eno16777736:
[root@node01 ~]# ifconfig -a
eno16777736: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.127.133 netmask 255.255.255.0 broadcast 192.168.127.255
inet6 fe80::20c:29ff:fe7d:acd3 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:7d:ac:d3 txqueuelen 1000 (Ethernet)
RX packets 1616 bytes 195130 (190.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1266 bytes 201625 (196.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
3. 进入到/etc/sysconfig/network-scripts目录,有一个ifcfg-eno16777736文件,修改最后的ONBOOT,由no改为yes,即可
[root@node01 network-scripts]# pwd
/etc/sysconfig/network-scripts
[root@node01 network-scripts]# ls ifcfg*
ifcfg-eno16777736 ifcfg-lo
更多推荐
所有评论(0)