Ethtool For Os X

WOL requires some setup, depending on the OS, and it has certain caveats that we explore in this guide.

We are going to review the following settings:

May 06, 2021 Ethtool provides many information about Ethernet devices connected to your Linux system. You can change ethernet card parameters as required, including auto-negotiation, Speed, Duplex and Wake-on LAN. The following information will help you understand how Ethernet card works. Ethtool 以太网工具; xfce 完整版; tarlz 压缩解压软件 ethtool 以太网工具 ncftp ftp 客户端 tnftp ftp 客户端 qtqr 二维码生成器 libfcitx-qt5-1 小企鹅输入法 qt5 相关库 fcitx-inputmethod-atzlinux 小企鹅输入法优先级调整; 三合一版; tarlz 压缩解压软件 ethtool 以太网工具 ncftp ftp 客户端.

  • Checking if WOL is supported;
  • BIOS/UEFI setup;
  • enabling network adapter options, depending on the OS;
  • optional router setup for making a WOL call over the Internet;
  • miscellaneous tweaks.

This guide is mostly about using this feature on a wired network. However, some wireless network adapters also support Wake on wireless LAN. It won't require any specific setup, and the procedure is often the same.

WARNING: using Wake On LAN will increase power usage when the device is off. This is important in case of mobile devices as it may cause battery drain.

Pre-check for WOL support

It is important to check that your hardware supports the necessary features. Most modern devices do. We’ll check the following options:

  • BIOS/UEFI settings;
  • network adapter driver options.

BIOS/UEFI setup

Open BIOS or UEFI settings. Find Wake on LAN and enable it. If you can’t find it, refer to the motherboard/laptop manual to find out if it’s supported.

Enable WOL in the operating system

When the OS shuts down, it sends signals that turn off all the hardware. The operating system is responsible for keeping network adapter powered on, so it may receive Magic Packet and power the system up. This section will describe how to enable this in Windows, Mac OS X and Linux.

Windows setup

1.Open Device Manager;

2.Find your network adapter and open Properties;

3.Open Advanced tab;

4.In the list, find Wake on Magic Packet and set Enabled (name of option may be different);

5.Next, open Power Management tab and enable the following options (if available):

  • Allow this device to wake up the computer;
  • Only allow a magic packet to wake the computer.

Find out the MAC address (a hint in case you rarely use Windows: run ipconfig /all then look for the Mac after Physical Address). Make sure you’re looking in the settings of the correct physical network adapter.

Settings in Windows 8, 8.1 and 10

The recent versions of Windows offer the Fast Startup feature to the users. This feature is NOT compatible with WOL, so it should be disabled.

Open Control Panel -> Power Options -> Choose what the power buttons do -> Change settings that are currently unavailable and disable Turn on fast startup, then click Save changes.

Mac OS X setup

To enable WOL on a Mac:

1.Open System Preferences;

For

2.Go to Energy Saver;

3.Enable Wake for network access. Depends on the specific system because it can have more than one network adapter.

To find the MAC address:

1.Open System Preferences;

2.Find and open Network;

3.Select Wi-Fi or Ethernet adapter and click on Hardware button;

4.Open Hardware tab and copy the MAC address.

You will need the MAC address to wake the device.

GNU/Linux setup

In general, Linux setup may vary on different distributions. Our recommendations will mostly work until the first reboot only. They will help you make sure if your network adapter supports WOL and also test this feature. The best option to make it permanent is to follow the official or community documentation for a specific Linux flavor and the environment.

Requirements:

  • root access;
  • ethtool installed (often installed by default);
  • Ethernet identifier such as eth0 or enp3s0.

To check support for your card, open terminal emulator and type:

# ethtool eth0 | grep Wake-on

Supports Wake-on: pg

Wake-on: d

Supports Wake-on will list the supported modes. g is a required option. Wake-on shows the current status of the network adapter. To enable WOL, type the following command:

# ethtool -s eth0 wol g

To find out the MAC address, type ifconfig and find it:

Wake on wireless LAN

Intel Centrino-compliant network adapters support Wake on wireless LAN except that this feature is unavailable in Windows XP (as explained in the drivers area on the official Intel website).

Windows 7, Linux and Mac OS X support this feature and the installation procedure is the same as above. Just be sure that you enabled Magic Packet on a proper device.

WOL over the Internet

In general, WOL is working over the Internet. In many cases it all depends on a specific network setup, and that of course involves router settings.

In many cases stock firmwares are primitive and offer only a limited feature set. Advanced and customized firmwares provide more settings.

We recommend following official or community guidelines for firmwares such as DD-WRT or OpenWRT.

In general, WOL over the Internet will require:

  • setting a static IP address for your device;
  • setting port forwarding to access the device behind NAT;
  • router's public IP address or dynamic DNS setup to access the router from the Internet.

As an alternative, it is possible to connect to the router over SSH and then wake up the device using a wol utility on the router;

Sending the Magic Packet

To send a Magic Packet, you can use a software utility. Linux users may use wol (also possible to run on a router, but through an SSH channel).

Windows users may want to try WakeMeOnLan.

After all setup is completed, it's time to test wake on LAN by sending the Magic Packet. Be sure to specify the following information:

  • MAC address;
  • IP or domain address;
  • subnet mask;
  • port number if necessary.

Final Words

As of March 2018, DeskRoll does not implement Wake On LAN. On the other hand, Magic Packet sending utilities have been around for quite some time. Another consideration is that currently DeskRoll doesn’t require port configuration, as it works over the same ports as your browser. Wake On LAN would require additional ports which would cause unnecessary headache when using DeskRoll.

Also, waking your box from a device that’s on the same LAN is perfectly safe. You can do it over secure SSH or using DeskRoll (if you are waking your device from a PC).

Ethtool utility is used to view and change the ethernet device parameters.

1. List Ethernet Device Properties

When you execute ethtool command with a device name, it displays the following information about the ethernet device.

This above ethtool output displays ethernet card properties such as speed, wake on, duplex and the link detection status. Following are the three types of duplexes available.

  • Full duplex : Enables sending and receiving of packets at the same time. This mode is used when the ethernet device is connected to a switch.
  • Half duplex : Enables either sending or receiving of packets at a single point of time. This mode is used when the ethernet device is connected to a hub.
  • Auto-negotiation : If enabled, the ethernet device itself decides whether to use either full duplex or half duplex based on the network the ethernet device attached to.

2. Change NIC Parameter Using ethtool Option -s autoneg

The above ethtool eth0 output displays that the “Auto-negotiation” parameter is in enabled state. You can disable this using autoneg option in the ethtool as shown below.

After the above change, you could see that the “link detection” value changed to down and auto-negotiation is in off state.

3. Change the Speed of Ethernet Device

Using ethtool you can change the speed of the ethernet device to work with the certain network devices, and the newly assign speed value should be within the limited capacity.

Once you change the speed when the adapter is online, it automatically goes offline, and you need to bring it back online using ifup command.

As shown in the above output, the speed changed from 1000Mb/s to 100Mb/s and auto-negotiation parameter is unset.

To change the Maximum Transmission Unit (MTU), refer to our ifconfig examples article.

4. Display Ethernet Driver Settings

ethtool -i option displays driver version, firmware version and bus details as shown below.

5. Display Auto-negotiation, RX and TX of eth0

View the autonegotiation details about the specific ethernet device as shown below.

Ethtool For Os Xenoverse

6. Display Network Statistics of Specific Ethernet Device

Use ethtool -S option to display the bytes transfered, received, errors, etc, as shown below.

7. Troubleshoot the Ethernet Connection Issues

When there is a problem with the network connection, you might want to check (or change) the ethernet device parameters explained in the above examples, when you see following issues in the output of ethtool command.

  • Speed and Duplex value is shown as Unknown
  • Link detection value is shown as No

Upon successful connection, the three parameters mentioned above gets appropriate values. i.e Speed is assigned with known value, Duplex become either Full/Half, and the Link detection becomes Yes.

After the above changes, if the Link Detection still says “No”, check whether there are any issues in the cables that runs from the switch and the system, you might want to dig into that aspect further.

To capture and analyze packets from a specific network interface, use tcpdump utility.

8. Identify Specific Device From Multiple Devices (Blink LED Port of NIC Card)

Let us assume that you have a machine with four ethernet adapters, and you want to identify the physical port of a particular ethernet card. (For example, eth0).

Use ethtool option -p, which will make the corresponding LED of physical port to blink.

9. Make Changes Permanent After Reboot

If you’ve changed any ethernet device parameters using the ethtool, it will all disappear after the next reboot, unless you do the following.

On ubuntu, you have to modify /etc/network/interfaces file and add all your changes as shown below.

The above line should be the last line of the file. This will change speed, duplex and autoneg of eth2 device permanently.

Ethtool For Os X Sierra

On SUSE, modify the /etc/sysconfig/network/ifcfg-eth-id file and include a new script using POST_UP_SCRIPT variable as shown below. Include the below line as the last line in the corresponding eth1 adpater config file.

Os X 10.11.4

Then, create a new file scripts/eth1 as shown below under /etc/sysconfig/network directory. Make sure that the script has execute permission and ensure that the ethtool utility is present under /sbin directory.