虚拟机没有网没有IP
eno16777736:flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::20c:29ff:fe06:1c7f prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:06:1c:7f txqueuelen 1000 (Ethernet)
RX packets 75766 bytes 8632758 (8.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 85 bytes 13794 (13.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo:flags=73<UP,LOOPBACK,RUNNING> mtu65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 12 bytes 948 (948.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12 bytes 948 (948.0 B)
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:19:07:50 txqueuelen 0 (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=4098<BROADCAST,MULTICAST> mtu 1500
ether 52:54:00:19:07:50 txqueuelen 500 (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
从网上查,右上角的网络没有开启,但是我开启之后仍然却连接不上
后来我把虚拟机的网络适配器换成了本机nat模式(原来是桥接模式),IP就出来了