我开始设置基于 VM Centos-9 的
这是我的“有线”连接:
[dev@localhost ~]$ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.0.1
[dev@localhost ~]$ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
[dev@localhost ~]$ ping google.com
ping: google.com: Name or service not known
[dev@localhost ~]$ ip route
default via 192.168.0.1 dev enp0s3 proto static metric 100
192.168.0.0/24 dev enp0s3 proto kernel scope link src 192.168.0.27 metric 100
[dev@localhost ~]$ systemctl status firewalld
○ firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
你能告诉我我的设置丢失了什么吗?
感谢任何帮助!