< Home

port (Monitor Link group view)

Function

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.

Format

port interface-type interface-number { downlink [ downlink-id ] | uplink }

undo port [ interface-type interface-number ] { downlink downlink-id | uplink }

undo port all

Parameters

Parameter

Description

Value

interface-type interface-number

Specifies the type and number of the interface to be added to a Monitor Link group.

  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

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.

-

Views

Monitor Link group view

Default Level

2: Configuration level

Usage Guidelines

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

The uplink interface status determines the downlink interface status.
  • When an uplink interface in Up state is added to the Monitor Link group or the uplink interface in the group becomes Up, all the downlink interfaces in the Monitor Link group become Up.
  • When the uplink interface is deleted from the Monitor Link group or becomes Down, all the downlink interfaces in the Monitor Link group become Down.

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:

  • The interface has been added to an Eth-Trunk.
  • The interface has been added to a Smart Link group.
  • The interface has been added to another Monitor Link group.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >