两个ubuntu无法互相通信

两个ubuntu无法互相通信

设置如下:(所有连接均通过WIFI)

  1. 该路由器是我 ISP 的家用路由器,没有任何特殊配置。
  2. 联想 ideapad 320 搭载 Ubuntu 20.04
  3. 搭载 Ubuntu 18.04 的 DELL Vostro 笔记本电脑
  4. 搭载 Windows 8 的 HP 笔记本电脑

我注意到计算机 1、2 无法相互通信(打开套接字)。

因此在测试时,我观察到以下情况:

  1. 1、2、3 可以 ping 通 0。
  2. 1、2互相无法ping通,也无法ping通3,但是可以互相ARP。
  3. 3可以ping通1、2。
  4. 1、2、3 可以 ping google.com。
  5. 我关闭了 1,2 上的 ufw,结果仍然一样。

注意:当说可以 ping 或不能 ping 时,这意味着已发送 ping,但没有给出答复。(接收端的 Wireshark 看不到 ping)

附加信息:笔记本电脑 1:

Laptop1 $ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _gateway        0.0.0.0         UG    600    0        0 wlp2s0
link-local      0.0.0.0         255.255.0.0     U     1000   0        0 br-0079bdd92096
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0
172.18.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-6b43963b4800
172.19.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-dfe885633091
172.20.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-1b461c20d7f3
172.21.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-bc98c2a01fa6
172.25.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-0079bdd92096
172.26.0.0      0.0.0.0         255.255.0.0     U     0      0        0 br-f49c8ff4894d
192.168.1.0     0.0.0.0         255.255.255.0   U     600    0        0 wlp2s0

Laptop1 $ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 8c:16:45:12:84:ec brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether a0:c5:89:b8:a8:80 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.35/24 brd 192.168.1.255 scope global dynamic noprefixroute wlp2s0
       valid_lft 2482sec preferred_lft 2482sec
    inet6 2a00:a040:187:ec8b:a2c5:89ff:feb8:a880/128 scope global dynamic noprefixroute 
       valid_lft 59sec preferred_lft 29sec
    inet6 2a00:a040:187:ec8b:5ca2:5253:e9e4:6b18/64 scope global temporary dynamic 
       valid_lft 594682sec preferred_lft 75861sec
    inet6 2a00:a040:187:ec8b:ad7e:9ad4:361:5c99/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 1138974sec preferred_lft 604783sec
    inet6 fe80::588d:2745:2389:b837/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

<more docker/vbox interfaces>

笔记本电脑 2:

Laptop2 $ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _gateway        0.0.0.0         UG    600    0        0 wlp2s0
link-local      0.0.0.0         255.255.0.0     U     1000   0        0 wlp2s0
192.168.1.0     0.0.0.0         255.255.255.0   U     600    0        0 wlp2s0

Laptop2 $ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 8c:47:be:49:fe:86 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 18:47:3d:42:a1:2f brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.34/24 brd 192.168.1.255 scope global dynamic noprefixroute wlp2s0
       valid_lft 3578sec preferred_lft 3578sec
    inet6 2a00:a040:187:ec8b:1a47:3dff:fe42:a12f/128 scope global dynamic noprefixroute 
       valid_lft 57sec preferred_lft 27sec
    inet6 2a00:a040:187:ec8b:2441:2a53:de1a:974c/64 scope global temporary dynamic 
       valid_lft 601343sec preferred_lft 82884sec
    inet6 2a00:a040:187:ec8b:ba06:c010:95e6:7591/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 1138975sec preferred_lft 604784sec
    inet6 fe80::a50c:7881:4ae7:24a/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

相关内容