0条评论
还没有人评论过~
由NAT模式切换为桥接模式后出现无法连接网络,无法ping通主机的问题
NAT模式可正常联网
检查本地网络接口桥接协议
检查虚拟网络编辑器桥接接口
检查网络配置
[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,仍无法解决问题,求助!感激不尽!
改为静态IP和网关要配置与主机IP同样的网段与网关,先查看你主机windows网络信息。Linux 网络配置文件,dhcp改为static