首页 新闻 搜索 专区 学院

桥接模式无法联网:本地网络接口桥接协议、虚拟网络编辑器桥接接口均无问题,ip由dhcp动态配置,仍无法联网,无法ping通主机

0
悬赏园豆:20 [已解决问题] 解决于 2020-04-27 20:37

由NAT模式切换为桥接模式后出现无法连接网络,无法ping通主机的问题
NAT模式可正常联网
桥接模式选择.png

检查本地网络接口桥接协议
检查桥接协议.jpg
检查虚拟网络编辑器桥接接口
检查桥接模式.png
检查网络配置

[root@hawava network-scripts]# cat ifcfg-eno16777736
TYPE="Ethernet"
BOOTPROTO="dhcp"
DEFROUTE="yes"
PEERDNS="yes"
PEERROUTES="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
NAME="eno16777736"
UUID="399e021d-38a1-4a6c-bb63-7abe3bc5e741"
DEVICE="eno16777736"
ONBOOT="yes"

测试结果

[root@hawava ~]# ifconfig
eno16777736: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.111.91  netmask 255.255.0.0  broadcast 10.0.255.255
        inet6 fe80::20c:29ff:feaf:398c  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:af:39:8c  txqueuelen 1000  (Ethernet)
        RX packets 99  bytes 16759 (16.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 163  bytes 23660 (23.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 8  bytes 528 (528.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8  bytes 528 (528.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@hawava ~]# ping www.baidu.com
ping: unknown host www.baidu.com
[root@hawava ~]# ping 10.0.212.123
PING 10.0.212.179 (10.0.212.179) 56(84) bytes of data.
^C
--- 10.0.212.179 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2000ms

后尝试更改为静态ip,仍无法解决问题,求助!感激不尽!

wanao的主页 wanao | 初学一级 | 园豆:11
提问于:2019-12-01 14:19
< >
分享
最佳答案
0

改为静态IP和网关要配置与主机IP同样的网段与网关,先查看你主机windows网络信息。Linux 网络配置文件,dhcp改为static

收获园豆:20
suncloud | 菜鸟二级 |园豆:230 | 2019-12-01 22:30

是这样配置的,虚拟机和主机的IP在同一网段,网关也相同,dhcp也改为了static,还是不可以联网,ping不通主机

wanao | 园豆:11 (初学一级) | 2019-12-01 22:40

@wanao: 才看到,如果没有解决,可以联系我QQ:896689300

suncloud | 园豆:230 (菜鸟二级) | 2019-12-14 18:09
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册