R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101
19
Parameters
bridge: Specifies the Layer 2 mode.
route: Specifies the Layer 3 mode.
Description
Use port link-mode to change the link mode of an Ethernet interface.
Use undo port link-mode to restore the default.
Depending on the hardware structure of interface cards, for a device, some interfaces can operate only
as Layer 2 Ethernet interfaces (in bridge mode), some can operate only as Layer 3 Ethernet interfaces (in
route mode), and others 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 settings of the Ethernet interface are
restored to their defaults under the new link mode.
Related commands: port link-mode interface-list.
Examples
# Configure GigabitEthernet 0/1 to operate in Layer 2 mode.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] display this
#
interface GigabitEthernet0/1
port link-mode route
#
Return
The output shows that GigabitEthernet 0/1 operates in route mode.
[Sysname-GigabitEthernet0/1] port link-mode bridge
[Sysname-GigabitEthernet0/1] display this
#
interface gigabitethernet 0/1
port link-mode bridge
#
Return
The output shows that GigabitEthernet 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