Ubuntu 12.04 下的网络唤醒

OHL*_*ÁLÁ 7 wakeonlan 12.04

我想设置网络唤醒,两台电脑通过交换机连接。

这是eth0的配置,在BIOS中我找不到有关唤醒局域网的任何信息。

Supported ports: [ TP MII ]
    Supported link modes:   10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Half 1000baseT/Full 
    Supported pause frame use: No
    Supports auto-negotiation: Yes
    Advertised link modes:  10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Half 1000baseT/Full 
    Advertised pause frame use: Symmetric Receive-only
    Advertised auto-negotiation: Yes
    Link partner advertised link modes:  10baseT/Half 10baseT/Full 
                                         100baseT/Half 100baseT/Full 
                                         1000baseT/Full 
    Link partner advertised pause frame use: Symmetric
    Link partner advertised auto-negotiation: Yes
    Speed: 1000Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 0
    Transceiver: internal
    Auto-negotiation: on
    Supports Wake-on: pumbg
    Wake-on: g
    Current message level: 0x00000033 (51)
                   drv probe ifdown ifup
    Link detected: yes
Run Code Online (Sandbox Code Playgroud)

关闭电脑后,我用不同的工具发送了魔法包,但没有任何反应。有什么建议吗?

ros*_*sch 12

支持您的卡,现在配置网络唤醒:

  1. 安装 ethtool

    sudo apt-get install ethtool
    
    Run Code Online (Sandbox Code Playgroud)
  2. 编辑/etc/rc.local以在该行之前添加此exit 0行:

    ethtool -s eth0 wol g
    
    Run Code Online (Sandbox Code Playgroud)
  3. 找出您网卡的 MAC 地址(eth如果替换为您的接口名称,eth0, eth1, ..):

    ifconfig eth | grep "HWaddr" | awk '{print $5}'
    
    Run Code Online (Sandbox Code Playgroud)
  4. 关闭机器。您应该能够使用以下方法唤醒它:

    wakeonlan your_mac
    
    Run Code Online (Sandbox Code Playgroud)