port

Use port to assign an interface to the monitor link group.

Use undo port to remove an interface from the monitor link group.

Syntax

port interface-type { interface-number | interface-number.subnumber } { downlink | uplink }

undo port interface-type interface-number

Default

A monitor link group has no member interfaces.

Views

Monitor link group view

Predefined user roles

network-admin

Parameters

interface-type: Specifies an interface type, which can be Layer 2 Ethernet interface, Layer 3 Ethernet interface, Layer 3 Ethernet subinterface, Layer 2 aggregate interface, Layer 3 aggregate interface, Layer 3 aggregate subinterface, member port of a Layer 2 aggregation group or Layer 3 aggregation group, S-channel interface, and S-channel aggregate interface.

interface-number: Specifies an interface by its number.

interface-number.subnumber: Specifies a subinterface by its number. The argument subnumber is in the range of 1 to 4094.

downlink: Specifies a downlink interface.

uplink: Specifies an uplink interface.

Usage guidelines

If you have configured an interface as the downlink interface of a monitor link group, do not configure its subinterfaces as the uplink interfaces of any monitor link group. Otherwise, the Monitor Link operation might be interrupted.

To avoid interrupting Monitor Link operation, do not assign the aggregate interface and member ports of an aggregate group to the same monitor link group.

The state of subinterfaces adapts to the state of the interface. Do not assign the interface and its subinterfaces to the same monitor link group. Otherwise, the monitor link group performance might be affected.

You can assign an interface to only one monitor link group.

You can also assign an interface to a monitor link group by using the port monitor-link group command in interface view.

Examples

# Configure Ten-GigabitEthernet 1/0/1 as an uplink interface and Ten-GigabitEthernet 1/0/2 as a downlink interface for monitor link group 1.

<Sysname> system-view
[Sysname] monitor-link group 1
[Sysname-mtlk-group1] port ten-gigabitethernet 1/0/1 uplink
[Sysname-mtlk-group1] port ten-gigabitethernet 1/0/2 downlink

Related commands

port monitor-link group