This article provides instructions on how to configure the global Green Ethernet properties on a switch through the Command Line Interface (CLI).
If you are interested in configuring using the graphical user interface (GUI), check out this article on Configure Global Green Ethernet Properties on a Switch.
Green Ethernet is a common name for a set of features that is designed to be environmentally friendly and reduce the power consumption of a device. Unlike Energy Efficient Ethernet (EEE), Green Ethernet energy-detection is enabled on all ports whereas only devices with gigabyte ports are enabled with EEE.
The Green Ethernet feature can reduce overall power usage in the following ways:
Green Ethernet settings can be configured globally and/or per switch interface.
Step 1. Log in to the switch console. The default username and password is cisco/cisco.
Note: The available commands or options may vary depending on the exact model of your device. In this example, the SG350X switch is accessed through Telnet.
Step 2. To display the current Green Ethernet configuration and information on the switch, enter the following command in the Privileged EXEC mode:
The options are:
Note: In this example, show green-ethernet detailed command is used.
The Energy-Detect mode area displays current status of Energy Detect Mode in the switch. This is used to conserve power when the device is not connected to an active link partner.
The Short-Reach mode area displays current status of Short Reach in the switch. This allows you to run the links with less power than the link can normally handle.
The Disable Port LEDs mode area displays the current status of the Port Light-emitting Diodes (LEDs) in the switch. When this option is disabled, the LEDs do not display link status, activity, and so on. The Disable Port LEDs feature saves power consumed by device LEDs. Since the devices are often in an unoccupied room, having these LEDs lit is a waste of energy. The Green Ethernet feature allows you to disable the port LEDs for link, speed, and Power over Ethernet (PoE) when they are not required. It also allows you to enable the LEDs if they are needed for debugging, connecting additional devices, and so on. The default setting is Disabled.
The Power Savings area displays the amount of power saved when Green Ethernet and Short Reach modes are run. EEE power savings is not taken into account since it is dynamic and corresponds to port utilization.
The Cumulative Energy Saved area shows the amount of energy saved from the last switch reboot. This value is updated each time there is an event that affects power saving.
The Short-Reach cable length threshold area displays the minimum cable length for the Short Reach mode to function. The default setting is 50m.
The Port Setting Table displays the following:
- Admin — Shows whether energy detect mode is enabled or not.
- Oper — Shows whether energy detect mode is currently operational or not.
- Reason — The reason why energy detect mode is not operational. Possible values are Link Up (LU) and Link Down (LD).
- Admin — Shows whether short reach mode is enabled or not.
- Force — Shows whether short reach force mode is enabled in the interface or not.
- Oper — Shows whether short reach mode is currently operational or not.
- Reason — The reason why short reach mode is not operational. Possible values are Link Up (LU) and Link Down (LD).
Note: To learn how to configure the Green Ethernet settings per port through the CLI, click here for instructions.
You should now have successfully viewed the Green Ethernet properties on your switch through the CLI.
Step 1. Enter the Global Configuration mode of the switch by entering the following:
Step 2. (Optional) To enable Energy Detect mode on your switch, enter the following:
Note: In this example, Energy Detect mode is enabled. To disable this feature, enter the no green-ethernet energy-detect command.
Step 3. (Optional) To enable Short Reach mode on your switch, enter the following:
Note: In this example, Short Reach mode is enabled. To disable this feature, enter the no green-ethernet short-reach command.
Important: If Short Reach Mode is enabled, the EEE mode must be disabled.
Step 4. (Optional) To enable Disable Port LEDs mode on your switch, enter the following:
Note: In this example, port LEDs are disabled. To enable port LEDs, enter the no disable port leds command.
Step 5. (Optional) To disable EEE on your switch, enter the following:
Note: In this example, EEE is disabled. To enable this feature, enter the eee enable command.
Important: If you are remotely connected to the switch through Secure Shell (SSH) or Telnet, you will be logged out of the console so you have to log in again to continue. If you are directly connected through the serial port of the switch, you will receive notifications of the activities in the switch.
You should now have successfully configured the Green Ethernet properties on your switch through the CLI.
Step 1. Log back in to the switch console.
Alternatively, if you are directly connected to the switch, you can enter the exit command to go back to the Privileged EXEC mode:
Step 2. In the Privileged EXEC mode, verify the configured Green Ethernet properties by entering the following:
Step 3. Verify the configured EEE settings by entering the following:
Step 4. (Optional) To save the configured settings to the startup configuration file, enter the following:
Step 5. (Optional) Press Y for Yes or N for No on your keyboard once the Overwrite file [startup-config]… prompt appears.
Note: In this example, Y is pressed.
You should now have successfully verified the Green Ethernet settings on your switch through the CLI.