Skip to content
TheChatArchiveThe Chat Archive
DeepSeekdeepseek-r1-0528· DeepSeekHugging Face LMArena Human Preference 140K

wake on lan rocky linux

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-3-5-haiku-20241022’s answer.
  1. User

    wake on lan rocky linux

  2. DeepSeek Assistant

    To enable Wake-on-LAN (WoL) on Rocky Linux, follow these steps:

    1. Check Hardware Support

    sudo ethtool eth0 | grep -i wake-on
    
    • Replace eth0 with your interface (find with ip a).
    • Look for Supports Wake-on: <value> and Wake-on: <value>.
    • Common supported flags: g (MagicPacket), d (disabled).

    2. Enable WoL Temporarily

    sudo ethtool -s eth0 wol g
    
    • Sets WoL to respond to MagicPacket (g).

    3. Make WoL Persistent

    Create a systemd service to apply settings at boot:

    sudo nano /etc/systemd/system/wol.service
    

    Add:

    [Unit]
    Description=Enable Wake-on-LAN
    
    [Service]
    Type=oneshot
    ExecStart=/usr/sbin/ethtool -s eth0 wol g
    
    [Install]
    WantedBy=multi-user.target
    
    • Replace eth0 with your interface.

    Enable the service:

    sudo systemctl daemon-reload
    sudo systemctl enable wol.service
    

    4. Configure NetworkManager (if used)

    Edit the connection profile:

    sudo nmcli con modify "Your Connection Name" 802-3-ethernet.wake-on-lan magic
    
    • Replace "Your Connection Name" (find with nmcli con show).

    5. Disable Power Saving (if needed)

    Check power save status:

    sudo ethtool --show-eee eth0
    

    Disable if active:

    sudo ethtool --set-eee eth0 eee off
    

    6. Test WoL

    • Shut down the system:
      sudo shutdown now
      
    • From another device on the same network:
      wakeonlan MAC_ADDRESS
      
      (Install wakeonlan if needed: sudo dnf install wakeonlan)

    7. Troubleshooting

    • BIOS/UEFI: Ensure "Wake on LAN" is enabled in firmware settings.
    • Router: Forward UDP port 9 to the target MAC if waking from WAN.
    • Firewall: Allow UDP port 9 (if using a firewall on the target):
      sudo firewall-cmd --add-port=9/udp --permanent
      sudo firewall-cmd --reload
      
    • Network Adapter: Some hardware requires driver-specific tweaks (e.g., e1000e).

    Key Notes:

    • MAC Address: Use the actual MAC of eth0 (from ip link show eth0).
    • Interface Name: Adjust eth0 to your interface (e.g., enp2s0).
    • Persistent Setup: The wol.service ensures settings survive reboots.

    After configuration, the Rocky Linux machine will wake when it receives a MagicPacket directed to its MAC address.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.