VirtualBox Linux下无法上网的解决方法

待我称王封你为后i 2024-04-18 00:31 173阅读 0赞

在网卡设置里,将连接方式设为’桥接网卡 ‘
![Image 1][]

更改网卡配置文件
[root@localhost tab]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=08:00:27:27:57:C8
TYPE=Ethernet
#UUID=500d1445-843f-4312-9ab0-ac228338bad8
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
IPV6INIT=no
USERCTL=no

重启网络
[root@localhost tab]# service network restart

之后可以正常 连接到网络
[root@localhost tab]# ping www.baidu.com
PING www.a.shifen.com (103.235.46.39) 56(84) bytes of data.
64 bytes from 103.235.46.39: icmp_seq=1 ttl=49 time=47.0 ms
64 bytes from 103.235.46.39: icmp_seq=2 ttl=49 time=45.4 ms

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26506993/viewspace-2132570/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26506993/viewspace-2132570/

[Image 1]:

发表评论

表情:
评论列表 (有 0 条评论,173人围观)

还没有评论,来说两句吧...

相关阅读