VirtualBoxLinux下无法上网的解决方法

在网卡设置里,将连接方式设为'桥接网卡'
VirtualBox Linux下无法上网的解决方法

更改网卡配置文件
[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

本文标题:VirtualBoxLinux下无法上网的解决方法
转载注明:http://bzwzjz.com/article/jhposj.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 营销网站建设 达州网站设计 app网站建设 企业网站设计 重庆网站建设 定制网站建设 成都网站建设公司 重庆手机网站建设 手机网站制作 网站设计 高端定制网站设计 成都网站建设 广安网站设计 企业网站建设 网站制作 成都网站制作 重庆网站建设 高端网站设计 成都网站设计 成都品牌网站建设 成都网站设计 成都网站建设流程