port monitor-link group
Use port monitor-link group to assign the current interface to a monitor link group as a member interface.
Use undo port monitor-link group to remove the current interface from a monitor link group.
Syntax
port monitor-link group group-id { downlink | uplink }
undo port monitor-link group group-id
Default
The interface/subinterface is not a monitor link group member.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface/subinterface view
Layer 2 aggregate interface view
Layer 3 aggregate interface/subinterface view
Layer 2 aggregation group member port view
Layer 3 aggregation group member port view
S-channel interface/S-channel aggregate interface view
Predefined user roles
network-admin
Parameters
group-id: Specifies a monitor link group by it ID. The value range for the group-id argument is 1 to 16.
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 with the port command in monitor link group 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] quit [Sysname] interface ten-gigabitethernet 1/0/1 [Sysname-Ten-GigabitEthernet1/0/1] port monitor-link group 1 uplink [Sysname-Ten-GigabitEthernet1/0/1] quit [Sysname] interface ten-gigabitethernet 1/0/2 [Sysname-Ten-GigabitEthernet1/0/2] port monitor-link group 1 downlink
Related commands
port