Port Link-Mode Interface-List - HP A5830 Series Command Reference Manual

Layer 2 - lan switching
Hide thumbs Also See for A5830 Series:
Table of Contents

Advertisement

View
Ethernet interface view
Default level
2: System level
Parameters
bridge: Specifies the Layer 2 mode.
route: Specifies the Layer 3 mode.
Example
# Configure GigabitEthernet 1/0/1 to operate in Layer 2 mode.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
port link-mode route
#
Return
The output shows that GigabitEthernet 1/0/1 operates in route mode.
[Sysname-GigabitEthernet1/0/1] port link-mode bridge
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
port link-mode bridge
#
Return
The output shows that GigabitEthernet 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

Description
Use the port link-mode interface-list command to change the link mode of Ethernet interfaces.
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).
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 between the two commands 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.
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.
21

Advertisement

Table of Contents
loading

Table of Contents