Use undo port link-mode to restore the default.
By default, Ethernet interfaces operate in Layer 2 mode.
To meet networking requirements, you can change the link mode of a port, so it can operate as a Layer
2 Ethernet interface (in bridge mode) or Layer 3 Ethernet interface (in route mode).
When you change the link mode of an Ethernet interface, all the settings of the Ethernet interface are
restored to their defaults under the new link mode.
Related commands: port link-mode interface-list.
Examples
# Configure Ethernet 1/0/1 to operate in Layer 2 mode.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] display this
#
interface Ethernet1/0/1
port link-mode route
#
Return
The output shows that Ethernet 1/0/1 operates in route mode.
[Sysname-Ethernet1/0/1] port link-mode bridge
[Sysname-Ethernet1/0/1] display this
#
interface Ethernet1/0/1
port link-mode bridge
#
Return
The output shows that Ethernet 1/0/1 is now operating in bridge mode.
NOTE:
The display this command displays the configuration that takes effect in the current view.
port link-mode interface-list
Syntax
port link-mode { bridge | route } interface-list
View
System view
Default level
2: System level
Parameters
bridge: Specifies the Layer 2 mode.
route: Specifies the Layer 3 mode.
23