- Table of Contents
-
- H3C S9500 Command Manual-Release1648[v1.24]-01 IP Access Volume
- 00-1Cover
- 01-Ethernet Port Commands
- 02-POS Port Configuration Commands
- 03-Link Aggregation Configuration Commands
- 04-Port Isolation Configuration Commands
- 05-VLAN Commands
- 06-MAC Address Table Management Commands
- 07-GVRP Commands
- 08-QinQ Commands
- 09-Port Loopback Detection Commands
- 10-DLDP Commands
- 11-Ethernet OAM Commands
- 12-Smart Link and Monitor Link Commands
- 13-MSTP Commands
- 14-BPDU Tunnel Commands
- 15-HVRP Commands
- 16-RRPP Commands
- 17-RPR Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
12-Smart Link and Monitor Link Commands | 82.91 KB |
Table of Contents
Chapter 1 Smart Link Configuration Commands
1.1 Smart Link Configuration Commands
1.1.2 display smart-link flush
1.1.3 display smart-link group
1.1.10 smart-link flush enable
1.1.12 reset smart-link packets counter
Chapter 2 Monitor Link Configuration Commands
2.1 Monitor Link Configuration Commands
2.1.4 display monitor-link group
Chapter 1 Smart Link Configuration Commands
1.1 Smart Link Configuration Commands
1.1.1 debugging smart-link
Syntax
debugging smart-link [ group id ] { all | error | event | fsm | packet }
undo debugging smart-link [ group id ] { all | error | event | fsm | packet }
View
User view
Parameters
id: Smart link group ID.
all: All types of smart link debugging.
error: Debugging for smart link errors.
event: Debugging for smart link events.
fsm: Debugging for smart link state machine.
packet: Debugging for smart link packets.
Description
Use the debugging smart-link command to enable a specific type of smart link debugging.
Use the undo debugging smart-link command to disable a specific type of smart link debugging.
Examples
# Enable debugging for smart link group packets.
<H3C> debugging smart-link group 1 packet
1.1.2 display smart-link flush
Syntax
display smart-link flush
View
Any view
Parameters
None
Description
Use the display smart-link flush command to view the information about how the smart link device processes flush messages.
Examples
# Display the information about how the smart link device processes flush messages.
<H3C> display smart-link flush
Receive flush packets count : 10
Receive last flush interface : GigabitEthernet3/1/1
Receive last flush packet time : 19:19:03 2006/06/27
Receive last flush packet source mac : 000f-e201-0206
Receive last flush packet device ID : 000f-e201-0206
Receive last flush packet control vlan ID : 1
1.1.3 display smart-link group
Syntax
display smart-link group { id | all }
Any view
Parameters
id: Smart link group ID.
all: Displays the information about all smart link groups.
Description
Use the display smart-link group command to display the information about the specified smart link group or all the smart link groups.
Examples
# Display the information about smart link group 1.
<H3C> display smart-link group 1
Smart link group 1 information:
Preemption mode: NONE
Protected-instance(s):
2-10, 40, 45
Device ID: 000f-e201-0206 Control-vlan ID: 10
Member Role State Flush-count Last-flush-time
GigabitEthernet0/1/1 MASTER ACTVIE 1 16:37:20 2006/04/21
AGG-1 SLAVE STANDBY 2 17:45:20 2006/04/21
Table 1-1 Description of the fields of the display smart-link group command
Field |
Description |
Preemption mode |
Preemption mode: role preemption or none |
Protected-instances |
Protected instances. The instance ID is in the range of 0 to 48. If no instance is protected, NULL is displayed. |
Member |
Member of the smart link group. AGG represents an aggregation group. |
Role |
Port role of a smart link group member: master or slave. |
Status |
Forwarding status of a smart link group member: active or standby. |
Flush-count |
Number of sent flush messages |
Last-flush-time |
Time when the last flush message is sent |
1.1.4 flush enable
Syntax
flush enable [ control-vlan id ]
undo flush enable
View
Smart link group view
Parameters
control-vlan id: Specifies a control VLAN ID, which ranges from 1 to 4094. If no VLAN is specified, VLAN 1 is used for the control VLAN.
Description
Use the flush enable command to enable flush message transmitting.
Use the flush enable control-vlan command to disable flush message transmitting.
By default, flush messages are transmitted in VLAN 1.
When the master link of a smart link group goes down, the device checks the slave link and unblocks it if the slave link is available. During the status transition, a smart link-enabled device communicates with the uplink devices through flush messages. If the uplink device can process the flush messages, the uplink device and the smart link device coordinate to choose links.
You need to enable flush message transmitting in control VLANs on uplink devices.
Caution:
VLANs of these types cannot be configured as control VLANs: VLANs dynamically learned through GVRP, super VLANs, sub-VLANs, isolate-user-VLANs, secondary VLANs, multicast VLANs, HGMP control VLANs, guest VLANs, and L2VPN-enabled VLANs.
& Note:
l Smart link groups used for load sharing must be configured with the same transmit control VLAN.
l The control VLAN of a smart link group must be mapped to a protected MSTI of the smart link group.
Related commands: smart-link flush enable.
Examples
# Enable flush message transmitting in VLAN 10.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] smart-link group 1
[H3C-smlk-group1] flush enable control-vlan 10
1.1.5 link-aggregation group
Syntax
link-aggregation group id { master | slave }
undo link-aggregation group id
View
Smart link group view
Parameters
id: Link aggregation group ID, in the range 1 to 31, specifying a manual aggregation group.
master: Configures a link aggregation group as the master port of a smart link group.
slave: Configures a link aggregation group as the slave port of a smart link group.
Description
Use the link-aggregation group command to configure a manual aggregation group as the member of a smart link group.
Use the undo link-aggregation group command to remove a manual aggregation group from a smart link group.
& Note:
l On a port, smart link is mutually exclusive with STP, BPDU tunnel, and RRPP. Before configuring an aggregation group as a member of a smart link group, make sure STP or RRPP is disabled on the aggregation group. And after the configuration, you cannot enable STP or RRPP for the aggregation group either.
l To remove an aggregation group operating as a member of a smart link group, you need to remove it from the smart link group first.
l The member ports of an aggregation group cannot be configured as the member ports of the smart link group.
l The control VLAN of a smart link group cannot be the control VLAN or sub-VLAN of RRPP.
l You cannot configure a common spanning tree (CST) as the protected MSTI of any of the smart link groups that an aggregation group belongs to.
l To have an aggregation group assigned to load-sharing smart link groups share the traffic of the protected MSTI of a smart link group, you must configure the aggregation group as the master port of the smart link group.
An aggregation link group is down only when all the ports in it are down.
Examples
# Configure manual aggregation group 28 as the slave port of smart link group 1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] smart-link group 1
[H3C-smlk-group1] link-aggregation group 28 slave
1.1.6 port
Syntax
port interface-type interface-number { master | slave }
undo port interface-type interface-number
Smart link group view
Parameters
interface-type interface-number: Specifies a port by its type and number.
master: Configures a port as the master port of a smart link group.
slave: Configures a port as the slave port of a smart link group.
Description
Use the port command to configure a single port as a member of a smart link group.
Use the undo port command to remove a port from a smart link group.
& Note:
l On a port, smart link is mutually exclusive with STP and RRPP. Before configuring a single port as a member of a smart link group, make sure STP or RRPP is disabled on the port. And after the configuration, you cannot enable STP or RRPP on the port either.
l To configure an aggregation group as a member of a smart link group member, perform the configuration in smart link group view.
l You can also configure a single port as a smart link group member in Ethernet port view.
l A smart link group member can be a single port, a manual aggregation group, but cannot be a static or dynamic aggregation group. The port identified by the interface-type interface-number argument cannot be a port of an aggregation group.
l You cannot configure a common spanning tree (CST) as the protected MSTI of any of the smart link groups that the current port belongs to.
l To have a single port assigned to load-sharing smart link groups share the traffic of the protected MSTI of a smart link group, you must configure the port as the master port of the smart link group.
Examples
# Configure GigabitEthernet 0/1/1 as a member of smart link group 1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] smart-link group 1
[H3C-smlk-group1] port gigabitethernet 0/1/1 slave
1.1.7 port smart-link group
Syntax
port smart-link group id { master | slave }
undo port smart-link group id
View
Ethernet port view
Parameters
id: Smart link group ID, in the range 1 to 48.
master: Configures the port as the master port of a smart link group.
slave: Configures the port as the slave port of a smart link group.
Description
Use the port smart-link group command to configure a port as a member of a smart link group.
Use the undo port smart-link group command to remove a port from a smart link group.
& Note:
l A smart link group member can be a single port, a manual aggregation group, but cannot be a static or dynamic aggregation group. The two commands cannot be configured in port view of a port in an aggregation group.
l On a port, Smart Link is mutually exclusive with STP and RRPP. Before configuring a single port as a member of a smart link group, make sure STP or RRPP is disabled on the port. And after the configuration, you cannot enable STP or RRPP on the port either.
l To configure an aggregation group as a member of a smart link group, perform the configuration in smart link group view.
l You can also configure a single port as a smart link group member in smart link group view.
l You cannot configure a common spanning tree (CST) as the protected MSTI of any of the smart link groups that the current port belongs to.
l To have a single port assigned to load-sharing smart link groups share the traffic of the protected MSTI of a smart link group, you must configure the port as the master port of the smart link group.
Related commands: link-aggregation group
Examples
# Configure GigabitEthernet 0/1/1 as the master port of smart link group 1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] smart-link group 1
New Smart Link Group Created
[H3C-smlk-group1] quit
[H3C] interface gigabitethernet 0/1/1
[H3C-GigabitEthernet0/1/1] port smart-link group 1 master
1.1.8 preemption mode
Syntax
preemption mode role
undo preemption mode
View
Smart link group view
Parameters
role: Configures the role preemption mode, which enables the master port to preempt the slave port in the active state.
Description
Use the preemption mode role command to enable the role preemption mode for the smart link group.
Use the undo preemption mode command to disable the preemption mode.
With role preemption enabled, the master port preempts the slave port to enter the active state if both of the ports are up.
With role preemption disabled, the master port in the standby state can enter the active state to forward traffic only when triggered by an event.
& Note:
You must enable role preemption mode for smart link groups used for load sharing.
Examples
# Enable the role preemption mode for smart link group 1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] smart-link group 1
[H3C-smlk-group1] preemption mode role
1.1.9 protected-instance
Syntax
protected-instance instance-list
undo protected-instance [ instance-list ]
View
Smart link group view
Parameters
instance-list: Specifies MSTIs to be protected. You can provide up to 10 MSTI lists, by each of which you can specify an individual MSTI by its ID, or an MSTI range in the form of start-instance-id to end-instance-id, where the end MSTI ID must be greater than the start MSTI ID. The effective range of an MSTI ID is 0 to 48.
Description
Use the protected-instance command to configure the protected MSTIs for the smart link group. The port in the active state in the smart link group only forwards the traffic of the protected MSTIs.
Use the undo protected-instance command to remove the specified or all protected MSTIs of the smart link group.
& Note:
l By default, no protected MSTI is configured for a smart link group. Before assigning ports to a smart link group, configure protected MSTIs for the smart link group.
l You can remove all protected MSTIs from a smart link group when the group is empty but not after a member port is assigned to it.
l A common spanning tree (CST) cannot be configured as the protected MSTI of a smart link group used for load sharing.
l After a protected MSTI is removed from a smart link group, the smart link group does not manage the MSTI any more, exposing the MSTI to loop. To avoid the situation, you are recommended to remove the VLANs that the smart link group member ports belong to from the MSTI before removing the protected MSTI.
Examples
# Configure MSTIs 1 through 10 and MSTI 48 as the protected MSTIs of smart link group 1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] smart-link group 1
[H3C-smlk-group1] protected-instance 1 to 10 48
1.1.10 smart-link flush enable
Syntax
smart-link flush enable [ control-vlan id ]
undo smart-link flush enable
View
System view, Ethernet port view
Parameters
id: Control VLAN ID, in the range 1 to 4094.
Description
Use the smart-link flush enable command to enable the port or the system to process flush messages received on the specified control VLAN.
Use the undo smart-link flush enable command to disable the port or the system from processing flush messages.
By default, a device does not process flush messages.
After an uplink device receives a flush message from the control VLAN, it deletes the specified MAC address entry based on the VLAN Bit Map in the flush message, and modifies the ARP table.
Related commands: flush-enable
Examples
# Enable GigabitEthernet 0/1/1 to process flush messages (in Ethernet port view).
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface gigabitethernet 0/1/1
[H3C-GigabitEthernet0/1/1] smart-link flush enable control-vlan 10
# Enable the device to process flush messages (in system view).
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] smart-link flush enable control-vlan 10
1.1.11 smart-link group
Syntax
smart-link group id
undo smart-link group id
View
System view
Parameters
id: Smart link group ID, in the range of 1 to 48.
Description
Use the smart-link group command to create a smart link group and enter smart group view.
Use the undo smart-link group command to remove a smart link group and exit the corresponding smart group view.
Smart link is developed to realize fast active-standby link switchover. STP convergence speed cannot satisfy some specific requirements. You can choose smart link instead.
A smart link group is composed of two member ports, the master port and the slave port. They can be single ports or manual aggregation groups. Each member port can either be in the active state or standby state. In a smart link group, up to one member can be in the active state.
& Note:
To use smart link for load sharing, you can create two smart link groups on the two load-sharing ports (single ports or aggregation groups).
Examples
# Create a smart link group.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] smart-link group 1
New Smart Link Group Created
[H3C-smlk-group1]
1.1.12 reset smart-link packets counter
Syntax
reset smart-link packets counter
View
User view
Parameters
None
Description
Use the reset smart-link packets counter command to clear the statistics on all the flush packets received/processed on the switch.
Examples
# Clear the statistics on all the flush packets received/processed on the switch.
<H3C> reset smart-link packets counter
Chapter 2 Monitor Link Configuration Commands
2.1 Monitor Link Configuration Commands
2.1.1 debugging monitor-link
Syntax
debugging monitor-link [ group id ] { all | error | event }
undo debugging monitor-link [ group id ] { all | error | event }
View
User view
2.1.2 Parameters
id: Monitor link group ID.
all: All types of monitor link debugging.
error: Debugging for monitor link errors.
event: Debugging for monitor link events.
2.1.3 Description
Use the debugging monitor-link command to enable a specific type of monitor link debugging.
Use the undo debugging monitor-link command to disable a specific type of monitor link debugging.
Examples
# Enable all types of monitor link debugging.
<H3C> debugging monitor-link group 1 all
2.1.4 display monitor-link group
Syntax
display monitor-link group { id | all }
View
Any view
Parameters
all: Specifies all the monitor link groups.
Description
Use the display monitor-link group command to display the information about a monitor link group or all the monitor groups.
Examples
# Display the information about monitor link group 1.
<H3C> display monitor-link group 1
Monitor link group 1 information:
Member Role Status Last-up-time Last-down-time
SMLK-2 UPLINK UP 16:37:20 2006/04/21 16:37:20 2006/04/20
AGG-1 DOWNLINK DOWN 17:45:20 2006/04/20 17:45:20 2006/04/21
ethernet1/0/3 DOWNLINK UP 17:45:20 2006/04/21 17:45:20 2006/04/20
Table 2-1 Description on the fields of the display monitor-link group command
Field |
Description |
Member |
Monitor link group member, which can be a port, an aggregation group (displayed as AGG), or a smart link group (displayed as SMLK). |
Role |
Role of Monitor link group member port: UPLINK or DOWNLINK |
Status |
Status of Monitor link group member port: UP or DOWN |
Last-up-time |
Latest time the port goes up |
Last-down-time |
Latest time the port goes down |
2.1.5 link-aggregation group
Syntax
link-aggregation group id { uplink | downlink }
undo link-aggregation group id
View
Monitor Link view
Parameters
id: Link aggregation group ID, ranging from 1 to 31 (which indicates a manual or static link aggregation group).
uplink: Configures the specified link aggregation group as the uplink port of the Monitor Link group
downlink: Configures the specified link aggregation group as the downlink port of the Monitor Link group
Description
Use the link-aggregation group command to configure the specified link aggregation group as a Monitor Link group member.
Use the undo link-aggregation group command to cancel the configuration of the specified link aggregation group as a Monitor Link group member.
& Note:
l A monitor link group member can be a single port, a manual or static link aggregation group. It cannot be a dynamic link aggregation group. An uplink port can also be a smart link group.
l These two commands are only applicable to link aggregation groups that are not smart link group members.
l An aggregation group can belong to only one monitor link group at a time.
l An aggregation group belonging to a smart link group cannot be configured as a monitor link group member.
After an aggregation group is configured as the uplink port of a monitor link group, the link states of the downlink ports are determined by that of the uplink port.
Examples
# Configure link aggregation group 28 as the downlink port of monitor link group 1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] monitor-link group 1
[H3C- mtlk-group1 ] link-aggregation group 28 downlink
2.1.6 monitor-link group
Syntax
monitor-link group id
undo monitor-link group id
View
System view
Parameters
id: Monitor link group ID, ranging 1 to 96.
Description
Use the monitor-link group command to create a monitor link group and enter Monitor Link group view.
Use the undo monitor-link group command to remove a monitor link group.
A monitor link group is composed of one uplink port and multiple downlink ports. They are can be a single port, a manual aggregation group, and a static aggregation group. Moreover, an uplink port can also be a smart link group.
If the link status of the uplink port of a monitor link group goes down, the corresponding downlink ports are set to down; if the uplink port goes up, the corresponding downlink ports are set to up.
After a monitor link group is configured, you need to configure members for it.
Examples
# Create monitor link group 1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] monitor-link group 1
New Monitor Link Group Created
[H3C-mtlk-group1]
2.1.7 port
Syntax
port interface-type interface-number { uplink | downlink }
undo port interface-type interface-number
View
Monitor link group view
Parameters
interface-type interface-number: Specifies a port by its type and number.
uplink: Configures the specified port as the uplink port of the monitor link group
downlink: Configures the specified port as the downlink port of the monitor link group
Description
Use the port command to configure a port as a member of a monitor link group.
Use the undo port command to remove a port from a monitor link group.
& Note:
l A monitor link group member can be a single port, a manual aggregation group, or a static link aggregation group. It cannot be a dynamic link aggregation group. The uplink port of a monitor link group can also be a smart link group.
l These two commands are only applicable to single ports that are not smart link group members.
l A single port can belong to only one monitor link group at a time.
l A port belonging to an aggregation group or a smart link group cannot be a monitor link group member.
l You can also configure a single port as a monitor link group member in Ethernet port view.
After a port is configured as the uplink port of a monitor link group, the link status of the downlink ports in the monitor link group are determined by that of the monitor link group.
Examples
# Configure port GigabitEthernet 0/1/1 as a downlink port of monitor link group 1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] monitor-link group 1
[H3C-mtlk-group1 ] port gigabitethernet 0/1/1 downlink
2.1.8 port monitor-link group
Syntax
port monitor-link group id { uplink | downlink }
undo port monitor-link group id
View
Ethernet port view
Parameters
id: Monitor link group ID, ranging from 1 to 96.
uplink: Configures the specified port as the uplink port of the monitor link group.
downlink: Configures the specified port as the downlink port of the monitor link group.
Description
Use the port monitor-link group command to configure a port as a member of a monitor link group.
Use the undo port monitor-link group command to remove a port from a monitor link group.
& Note:
l A monitor link group member can be a single port, a manual aggregation group, or a static link aggregation group. It cannot be a dynamic link aggregation group. An uplink port can also be a smart link group.
l These two commands are only applicable to single ports that are not smart link group members.
l A single port can belong to only one monitor link group at a time.
l A port belonging to an aggregation group or a smart link group cannot be a monitor link group member.
l You can also configure a single port as a monitor link group member in monitor link group view.
After a port is configured as the uplink port of a monitor link group, the link status of the downlink ports in the monitor group are determined by that of the monitor link group.
Examples
# Configure GigabitEthernet 0/1/1 as the uplink port of monitor link group 1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] monitor-link group 1
New Monitor Link Group Created
[H3C-mtlk-group1] quit
[H3C] interface gigabitethernet 0/1/1
[H3C-GigabitEthernet0/1/1] port monitor-link group 1 uplink
2.1.9 smart-link group
Syntax
smart-link group id uplink
undo smart-link group id
View
Monitor link group view
Parameters
id: Smart link group ID, in the range 1 to 48.
uplink: Configures a smart link group as the uplink port of a monitor link group.
Description
Use the smart-link group command to configure a smart link group as the uplink port of a monitor link group.
Use the undo smart-link group command to remove a smart link group from a monitor link group.
A smart link group has two members, the master port and the slave port. For a smart link group operating as the uplink port of a monitor link group, it is down only when its two members are all down.
A smart link group can belong to only one monitor link group at a time and can be configured as the uplink port of a monitor link group only.
After a smart link group is configured as the uplink port of a monitor link group, the link status of the downlink ports are determined by that of the uplink port.
Examples
# Configure smart link group 2 as the uplink port of monitor link group 1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] monitor-link group 1
[H3C-mtlk-group1] smart-link group 2 uplink