R211x-HP Flexfabric 11900 Layer 2 - LAN Switching Command Reference

26
Parameters
external: Performs an external loopback test on the Ethernet interface.
internal: Performs an internal loopback test on the Ethernet interface.
Usage guidelines
If an Ethernet interface does not work correctly, you can perform a loopback test on it to identify the
problem.
An Ethernet interface in a loopback test does not forward data traffic.
On a physically down interface (displayed as in DOWN state), you can only perform an internal
loopback test, and an external loopback test will fail. On an administratively shut down Ethernet
interface (displayed as in ADM or Administratively DOWN state), you cannot perform an internal or
external loopback test.
The speed, duplex, and shutdown commands are not available during a loopback test.
During a loopback test, the Ethernet interface operates in full duplex mode. When the loopback test is
complete, the port returns to its duplex setting.
Examples
# Perform an internal loopback test on Ten-GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] loopback internal
port link-mode
Use port link-mode to change the link mode of an Ethernet interface.
Use undo port link-mode to restore the default.
Syntax
port link-mode { bridge | route }
undo port link-mode
Default
Ethernet interfaces operate in bridge mode.
Views
Ethernet interface view
Predefined user roles
network-admin
mdc-admin
Parameters
bridge: Specifies the Layer 2 mode.
route: Specifies the Layer 3 mode.
Usage guidelines
On the switch, Ethernet interfaces can operate either as Layer 2 or Layer 3 Ethernet interfaces (you can
use commands to set the link mode to bridge or route).