环境:
- 主机操作系统:Windows 10
- 虚拟机软件:VMWare Workstation 14 Player
- 客户操作系统:CentOS 7
我之前一直使用 NAT 网络设置,效果很好。现在我需要使用“桥接”设置。
不幸的是,它不起作用。这是 ifconfig 的结果:
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::ee21:cafd:3c40:dff8 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:6e:3a:3c txqueuelen 1000 (Ethernet)
RX packets 1 bytes 79 (79.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 414 bytes 80340 (78.4 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 1 (Local Loopback)
RX packets 496 bytes 42672 (41.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 496 bytes 42672 (41.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:52:f2:7e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0-nic: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 52:54:00:52:f2:7e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
dhclient -v 命令给我:
No DHCPOFFERS received.
知道为什么我无法连接吗?提前致谢
答案1
解决方案:我必须取消选中此复选框: