网络上只有两台设备时通过 LAN 唤醒

网络上只有两台设备时通过 LAN 唤醒

我正在尝试使局域网唤醒功能与我直接连接的一台设备一起使用。我已经在 BIOS 中启用了该功能,并多次尝试使用wakeonlan它。

因为以太网上只有两个设备,而第二个设备已关闭,所以我怀疑我的计算机不会尝试在线路上发送数据包。起初,我发现我的网络接口已关闭,因此我将其启动ip link set dev enp0s25 up。然而这并没有帮助。

我用wireshark检查了一下,接口上没有发送任何数据包。当我尝试通过以太网 ping 或 ARPing 时,Wireshark 也看不到。然而,Wireshark 可以与电缆另一端已打开的计算机完美配合。

那么,我如何确保我的计算机尝试通过线路发送 WoL 数据包,如果没有,我该如何使其工作?

有关发送器设备的一些附加信息:

  • 乌班图16.04
  • ip 地址的输出。请注意缺少LOWER_UPstate DOWN
2: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 14:58:d0:b7:45:33 brd ff:ff:ff:ff:ff:ff
    inet 192.168.170.70/16 scope global enp0s25
       valid_lft forever preferred_lft forever
  • ethtool 的输出:
Settings for enp0s25:
    Supported ports: [ TP ]
    Supported link modes:   10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Full 
    Supported pause frame use: No
    Supports auto-negotiation: Yes
    Advertised link modes:  10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Full 
    Advertised pause frame use: No
    Advertised auto-negotiation: Yes
    Speed: Unknown!
    Duplex: Unknown! (255)
    Port: Twisted Pair
    PHYAD: 2
    Transceiver: internal
    Auto-negotiation: on
    MDI-X: Unknown (auto)
    Supports Wake-on: pumbg
    Wake-on: g
    Current message level: 0x00000007 (7)
                   drv probe link
    Link detected: no
  • 我尝试了该命令wakeonlan 44:8a:5b:3d:7e:8a,也尝试了-i 192.168.170.06

编辑

有关第二台主机的附加信息:

  • 操作系统是 Debian 5
  • ifconfig 输出:
eth1      Link encap:Ethernet  HWaddr 44:8a:5b:3d:7e:8a
          inet addr:192.168.170.06  Bcast:192.168.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:296 errors:0 dropped:0 overruns:0 frame:0
          TX packets:190 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:71526 (69.8 KiB)  TX bytes:42828 (41.8 KiB)
          Memory:febe0000-fec00000
  • ethtool eth1输出:
Settings for eth1:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbag
        Wake-on: g
        Current message level: 0x00000001 (1)
        Link detected: yes

相关内容