F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
21
NOTE:
The display this command displays the configuration that takes effect in the current view.
Related commands
port link-mode interface-list
port link-mode interface-list
Use port link-mode interface-list to change the link mode of Ethernet interfaces.
Syntax
port link-mode { bridge | route } interface-list
Views
System view
Default command level
2: System level
Parameters
bridge: Specifies the Layer 2 mode.
route: Specifies the Layer 3 mode.
interface-list: Specifies an Ethernet interface list, in the format of interface-type interface-number [ to
interface-type interface-number ] &<1-10>, where &<1-10> indicates that you can specify up to 10
interfaces or interface ranges.
Usage guidelines
Depending on the hardware structure of interface cards, 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 as either Layer 2 or Layer 3 Ethernet interfaces (you can set the link mode
to bridge or route).
Configuring the port link-mode interface-list command in system view and configuring the port
link-mode command in Ethernet interface view lead to the same result. The difference is that the former
changes the link mode of multiple Ethernet interfaces in batch, and the latter changes the link mode of
one Ethernet interface at a time.
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.
The link mode configuration for an Ethernet interface in system view and that in interface view supersede
each other, and the most recent configuration takes effect.
Examples
# Configure GigabitEthernet 0/1 through GigabitEthernet 0/3 to operate in Layer 2 mode.
<Sysname> system-view
[Sysname] port link-mode bridge gigabitethernet 0/1 to gigabitethernet 0/3
# Configure GigabitEthernet 0/1 through GigabitEthernet 0/3 to operate in Layer 3 mode.
<Sysname> system-view
[Sysname] port link-mode route gigabitethernet 0/1 to gigabitethernet 0/3