R3102-R3103-HP 6600/HSR6600 Routers Interface Command Reference

24
Default command level
2: System level
Parameters
external: Enables external loopback testing for all on-chip functions related to Ethernet interfaces.
internal: Enables internal loopback testing for the hardware of Ethernet interfaces.
Usage guidelines
Enable loopback testing for troubleshooting purposes, such as identifying an Ethernet problem.
You cannot perform internal or external loopback testing on an administratively down (ADM DOWN)
port. On a physically down (DOWN) port, you can perform only internal loopback testing.
During loopback testing, the speed, duplex, mdi, and shutdown commands are not available. In
addition, the port is operating in full duplex mode, regardless of its duplex configuration. After loopback
testing is disabled, the duplex configuration of the port is restored.
Examples
# Enable internal loopback testing on GigabitEthernet 4/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 4/0/1
[Sysname-GigabitEthernet4/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
An Ethernet interface is operating in route mode.
Views
Ethernet interface view
Default command level
2: System level
Parameters
bridge: Specifies the bridge (Layer 2) mode.
route: Specifies the route (Layer 3) mode.
Usage guidelines
This command is supported on only SAP modules.
You can set an Ethernet interface to operate as Layer 2 Ethernet interfaces (in bridge mode) or Layer 3
Ethernet interfaces (in route mode).