HP MSR2000/3000/4000 Router Series Interface Command Reference
30
Usage guidelines
If an Ethernet interface does not work correctly, you can perform an internal loopback test on it to test all
on-chip functions related to the interface.
An Ethernet interface in a loopback test does not forward data traffic.
On a physically down interface (displayed as in DOWN state), you can perform an internal loopback test.
On an administratively shut down interface (displayed as in ADM or Administratively DOWN state), you
cannot perform an internal loopback test.
The speed, duplex, mdi, 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 Ethernet 1/1.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/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
Only Ethernet interfaces on SIC-4FSW and DSIC-9FSW cards operate in bridge mode.
Views
Ethernet interface view
Predefined user roles
network-admin
Parameters
bridge: Specifies the Layer 2 mode.
route: Specifies the Layer 3 mode.
Usage guidelines
Ethernet interfaces on the device can operate either as Layer 2 or Layer 3 Ethernet interfaces (you can use
commands to set the link mode to bridge or route).
After you change the link mode of an Ethernet interface, all the commands (except the shutdown
command) on the Ethernet interface are restored to their defaults in the new link mode.
Examples
# Configure Ethernet 1/1 to operate in bridge mode.
<Sysname> system-view