The port command adds an interface to a Monitor Link group and specifies the link connected to the interface as an uplink or a downlink.
The undo port command deletes an uplink or a downlink interface from a Monitor Link group.
By default, a Monitor Link group has no member interface.
port interface-type interface-number { downlink [ downlink-id ] | uplink }
undo port [ interface-type interface-number ] { downlink downlink-id | uplink }
undo port all
Parameter  | 
Description  | 
Value  | 
|---|---|---|
interface-type interface-number  | 
Specifies the type and number of the interface to be added to a Monitor Link group. 
  | 
-  | 
downlink [ downlink-id ]  | 
Configures the current interface as a downlink interface and specifies the downlink ID.  | 
The value is an integer that ranges from 1 to 512. If the downlink-id parameter is not specified, the system allocates an ID to the interface in an ascending order.  | 
uplink  | 
Configures the current interface as an uplink interface.  | 
-  | 
all  | 
Deletes all member interfaces from a Monitor Link group.  | 
-  | 
Usage Scenario
A Monitor Link group consists of an uplink interface and several downlink interfaces. If the uplink interface fails, the Monitor Link group automatically disables all the downlink interfaces. After configuring a Monitor Link group, add uplink and downlink interfaces to the group. The Monitor Link group then can synchronize the downlink interface status with the uplink interface status.
Prerequisites
A Monitor Link group has been created by using the monitor-link group command.
Precautions
If an uplink interface exists in the Monitor Link group, run the undo port command to delete this interface before adding a new one.
An interface cannot be added to a Monitor Link group in the following situations:
# Add GE0/0/1 to Monitor Link group 1 and specify this interface as the uplink interface.
<HUAWEI> system-view [HUAWEI] monitor-link group 1 [HUAWEI-mtlk-group1] port gigabitethernet 0/0/1 uplink
# Add GE0/0/2 to a Monitor Link group and specify this interface as the downlink interface and the link ID as 1.
<HUAWEI> system-view [HUAWEI] monitor-link group 1 [HUAWEI-mtlk-group1] port gigabitethernet 0/0/2 downlink 1