VirtualBox Linux下無法上網的解決方法

feelpurple發表於2017-01-17
在網路卡設定裡,將連線方式設為'橋接網路卡'


更改網路卡配置檔案
[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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章