CentOS 7 网络问题

CentOS 7 网络问题

如果之前已经回答过这个问题,我深表歉意,但我一整天都在互联网上搜索寻找解决方案,但似乎找不到。

我有一台在 VirtualBox 上运行的 CentOS 7 服务器,尽管遵循了所有在线指南和说明,但它没有接收数据并且无法访问互联网。它似乎连接了两次,一次连接到网桥,一次连接到以太网。如果我运行 ifconfig,我会得到:

enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255
        inet6 fe80::7e1b:b077:eab3:e180  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:83:31:eb  txqueuelen 1000  (Ethernet)
        RX packets 266  bytes 57177 (55.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1215  bytes 95511 (93.2 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

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:e8:d1:f6  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

我已按照使用 nmtui 编辑连接的指南进行操作,并尝试编辑 /network-scripts/ifcfg-enp0s3 中的配置,但无济于事。有人遇到过类似的问题/知道解决方案吗?

相关内容