ubuntu 内网桥接 ,局域网其他电脑无法ping通?

➜  ~ ifconfig
eth0: 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::a00:27ff:fe2d:882f  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:2d:88:2f  txqueuelen 1000  (Ethernet)
        RX packets 434776  bytes 373901066 (373.9 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 193677  bytes 13393547 (13.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.10.10  netmask 255.255.255.0  broadcast 192.168.10.255
        inet6 fe80::a00:27ff:fe8e:684  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:8e:06:84  txqueuelen 1000  (Ethernet)
        RX packets 74  bytes 9198 (9.1 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 30  bytes 2196 (2.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.8.220.224  netmask 255.255.255.0  broadcast 10.8.220.255
        inet6 fe80::a00:27ff:fe1d:1c17  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:1d:1c:17  txqueuelen 1000  (Ethernet)
        RX packets 94867  bytes 6543210 (6.5 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 271  bytes 17736 (17.7 KB)
        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 2235  bytes 726198 (726.1 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2235  bytes 726198 (726.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

网络

network:
  version: 2
  renderer: networkd
  ethernets:
    eth1:
      addresses:
      - 192.168.10.10/24
    eth2:
      addresses:
      - 10.8.220.224/24

eth2 是内网桥接的,局域网无法ping通IP,装虚拟机的电脑可以ping通,
如何让局域网也可以ping通

回复
阅读 3.1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏