问题:宿机(guest)可以ping主机,主机却不能ping宿机(guest)
网络也无法启动
[root@localhost ~]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.112.128 netmask 255.255.255.0 broadcast 192.168.112.255
inet6 fe80::20c:29ff:fe05:bc3c prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:05:bc:3c txqueuelen 1000 (Ethernet)
RX packets 204 bytes 18439 (18.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 151 bytes 16043 (15.6 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 1000 (Local Loopback)
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
[root@localhost ~]# service network restart
Restarting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
[失敗]
[root@localhost ~]# /etc/rc.d/init.d/network restart
Restarting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
[失敗]
[root@localhost ~]# systemctl status network
● network.service - LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since 日 2021-01-17 10:51:46 CST; 2min 26s ago
Docs: man:systemd-sysv-generator(8)
Process: 1847 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
CGroup: /system.slice/network.service
mq1055 /sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclient-0ba8ed77-8ca7-4124-916e-c495e6026c13-ens33.lease -pf /var/run/dhclient-ens33.pid ens33
1月 17 10:51:46 localhost.localdomain network[1847]: RTNETLINK answers: File exists
1月 17 10:51:46 localhost.localdomain network[1847]: RTNETLINK answers: File exists
1月 17 10:51:46 localhost.localdomain network[1847]: RTNETLINK answers: File exists
1月 17 10:51:46 localhost.localdomain network[1847]: RTNETLINK answers: File exists
1月 17 10:51:46 localhost.loc