Syntax
display smart-link flush
View
Any view
Parameter
None
Description
Use the display smart-link flush command
to view the information about how the Smart Link device processes flush
messages.
Example
# Display the information about how the Smart
Link device processes flush messages.
<Sysname> display smart-link
flush
Flush interface :Ethernet1/0/1
Count of flush packets
received : 1
Time of last flush packet
received : 22:52:23 2006/04/01
Source MAC of last flush packet
received : 000f-e20f-5566
Device ID of last flush packet
received : 000f-e20f-5566
Control VLAN ID of last flush packet
received : 1
Table 1-1
Description on the fields of the display
smart-link flush command
|
Field
|
Description
|
|
Flush
interface
|
Interface
that receives the latest legal flush message
|
|
Count of
flush packets received
|
Total number
of flush messages received
|
|
Time of
last flush packet received
|
Time when
the last legal flush message is received
|
|
Source MAC of last flush packet received
|
Source MAC address in the last legal flush
message received
|
|
Device ID of last flush packet received
|
Bridge MAC address of the device from
which the last legal flush message was received
|
|
Control VLAN ID of last flush packet
received
|
Control VLAN ID in the last legal flush
message received
|
A legal fulsh
message refers to the message whose control VLAN ID is consistent with the
receiving control VLAN ID configured on the receiving port.
Syntax
display smart-link group { group-id | all }
View
Any view
Parameter
group-id: Smart
link group ID, in the range of 1 to 24.
all:
Displays the information about all Smart Link groups.
Description
Use the display smart-link group command
to display the information about the specific Smart Link group or all the Smart
Link groups.
Example
# Display the information about Smart Link
group 1.
<Sysname> display smart-link
group 1
Smart Link Group 1 information:
Device ID: 000f-e212-3456
Control-VLAN ID: 1
Member Role
State Flush-count Last-flush-time
--------------------------------------------------------------------------
Ethernet1/0/1 MASTER
ACTVIE 1 16:37:20 2006/04/21
AGG-1 SLAVE
STANDBY 2 17:45:20 2006/04/21
Table 1-2
Description on the fields of the display
smart-link group command
|
Field
|
Description
|
|
Member
|
Member of the
Smart Link group
|
|
Role
|
Port role
of a Smart Link group member: master or slave.
|
|
Status
|
Port
status of a Smart Link group member when the link of this member port is up:
active or standby.
|
|
Flush-count
|
Number of sent flush messages
|
|
Last-flush-time
|
Time when the last flush message is sent.
If no flush message is sent, “NA” will be displayed.
|
Syntax
flush enable control-vlan vlan-id
undo flush enable
View
Smart Link group view
Parameter
vlan-id:
Control VLAN ID, in the range of 1 to 4,094.
Description
Use the flush enable control-vlan
command to enable the function of sending flush messages in the specified
control VLAN.
Use the undo flush enable control-vlan
command to disable the function of sending flush messages to the specified
control VLAN.
By default, no control VLAN is specified.
Example
# Configure to send flush messages within
control VLAN 1.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] smart-link group 1
[Sysname-smlk-group1] flush enable
control-vlan 1
Syntax
link-aggregation group group-id {
master | slave }
undo link-aggregation group group-id
View
Smart Link group view
Parameter
group-id:
Link aggregation group ID, in the range of 1 to 28 (only link aggregation
groups configured manually or statically are available).
master:
Configures the specified link aggregation group as the master port of the Smart
Link group.
slave: Configures
the specified link aggregation group as the slave port of the Smart Link group.
Description
Use the link-aggregation group
command to configure a link aggregation group as a member of the Smart Link
group.
Use the undo link-aggregation
group command to remove the specified link aggregation group from the
current Smart Link group.
Because Smart Link
and STP cannot be enabled on an Ethernet port at the same time, you must make
sure that STP is disabled on the port before assigning the port to a smart link
group.
Example
# Configure link aggregation group 8 as the
slave port of Smart Link group 1.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] smart-link group 1
[Sysname-smlk-group1] link-aggregation
group 8 slave
Syntax
port interface-type
interface-number { master | slave }
undo port interface-type interface-number
View
Smart Link group view
Parameter
interface-type: Port type.
interface-number:
Port number.
master:
Configures the specified port as the master port of the Smart Link group.
slave:
Configures the specified port as the slave port of the Smart Link group.
Description
Use the port command to configure
the specified port as a member of the Smart Link group.
Use the undo port command to remove the
specified port from the Smart Link group.
Either a single port or a link aggregation
group configured manually or statically can serve as a member for a Smart Link
group. However, a link aggregation group configured dynamically cannot serve as
a member for a Smart Link group. This command is not applicable to member ports
in a link aggregation group.
Because Smart Link
and STP cannot be enabled on an Ethernet port at the same time, you must make
sure that STP is disabled on the port before assigning the port to a smart link
group.
Example
# Configure Ethernet1/0/6 as the slave port
of Smart Link group 1.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] smart-link group 1
[Sysname-smlk-group1] port Ethernet
1/0/6 slave
Syntax
port
smart-link group group-id { master | slave }
undo port
smart-link group group-id
View
Ethernet
port view
Parameter
group-id:
Smart link group ID, in the range of 1 to 24.
master:
Configures the port as the master port of the Smart Link group.
slave:
Configures the port as the slave port of the Smart Link group.
Description
Use the port smart-link group
command to configure the current port as a member of the Smart Link group.
Use the undo port smart-link group
command to remove the current port from the specified Smart Link group.
Either a single port or a link aggregation
group configured manually or statically can serve as a member for a Smart Link
group. However, a link aggregation group configured dynamically cannot serve as
a member for a Smart Link group. This command is not applicable to member ports
in a link aggregation group.
Because Smart Link
and STP cannot be enabled on an Ethernet port at the same time, you must make
sure that STP is disabled on the port before assigning the port to a smart link
group.
Example
# Configure Ethernet1/0/3 as the master
port of Smart Link group 1.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] interface Ethernet 1/0/3
[Sysname-Ethernet1/0/3] port
smart-link group 1 master
Syntax
reset
smart-link packets counter
View
User view
Parameter
None
Description
Use the reset smart-link packets counter
command to clear the flush message statistics of Smart Link.
Example
# Clear the flush message statistics of
Smart Link.
<Sysname> reset smart-link
packets counter
Syntax
l
In Ethernet port view:
smart-link flush enable control-vlan vlan-id
undo smart-link flush enable
l
In system view:
smart-link flush enable control-vlan vlan-id port interface-type interface-number [ to interface-type interface-number ]
undo smart-link flush enable port interface-type interface-number [ to interface-type interface-number ]
View
Ethernet port view/system view
Parameter
vlan-id:
Control VLAN ID, in the range of 1 to 4,094.
Description
Use the smart-link
flush enable control-vlan command to enable the current/specified port to
process flush messages received on the specified control VLAN.
Use the undo
smart-link flush enable command to disable the port from processing
flush messages.
l
The command executed in Ethernet port view has
effect on the current port only.
l
The command executed in system view has effect
on the specified port only.
By default, no control VLAN is specified.
If you configure different control VLANs on
the same port, only the last one takes effect.
The VLAN configured
as a control VLAN for sending or receiving flush messages must exist. You
cannot directly remove the control VLAN. When a dynamic VLAN is configured as a
control VLAN for the Smart Link group, this VLAN will become a static VLAN, and
related prompt information is displayed.
Example
# Enable Ethernet1/0/4 to process flush messages received from
control VLAN 1..
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] interface Ethernet 1/0/4
[Sysname-Ethernet1/0/4] smart-link
flush enable control-vlan 1
# Enable Ethernet1/0/5 through Ethernet1/0/10
to process flush messages received from control VLAN 1.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] smart-link flush enable
control-vlan 1 port Ethernet 1/0/5 to Ethernet 1/0/10
Syntax
smart-link group group-id
undo smart-link group group-id
View
System view
Parameter
group-id: Smart link group ID, in the range of 1 to 24.
Description
Use the smart-link group command to
create a Smart Link group and enter Smart Link group view. If the specified Smart
Link group exists, this command leads you into Smart Link group view directly.
Use the undo smart-link group
command to remove the specified Smart Link group.
After creating a Smart Link group, you must
configure member ports for this Smart Link group.
Related command: port smart-link group,
link-aggregation group, and port.
Make sure that the Smart
Link group has no members before executing the undo smart-link group
command.
Example
# Create a Smart Link group.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] smart-link group 1
New Smart Link Group has been
created.
[Sysname-smlk-group1]
Syntax
display monitor-link group { group-id| all }
View
Any view
Parameter
group-id: Monitor Link group ID, ranging 1 to 24.
all:
Specifies all the Monitor Link groups.
Description
Use the display monitor-link group command
to display Monitor Link group information.
Example
# Display the information about Monitor
Link group 1.
<Sysname> 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/4/21 16:37:20 2006/4/20
AGG-1 DOWNLINK UP
Table 2-1
Description on the fields of the display
monitor-link group command
|
Field
|
Description
|
|
Member
|
Member of the
Monitor Link group
|
|
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
|
Last time
the port is up
|
|
Last-down-time
|
Last time the port is down
|
Syntax
link-aggregation group group-id{ uplink | downlink }
undo link-aggregation group group-id
View
Monitor Link group view
Parameter
group-id:
Link aggregation group ID, ranging from 1 to 28 (A link aggregation group can
be a manual or static link aggregation group only).
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 remove the specified link aggregation group from the current Monitor Link
group.
In Monitor Link, a Monitor Link group
member can be a single port, a manual or static link aggregation group, but not
a dynamic link aggregation group. Uplink port can also be a Smart Link group.
Use this command only on the link
aggregation groups that are not Smart Link group members.
A port or a link
aggregation group cannot serve as a member port for two Smart Link groups. On
the other hand, a port or a link aggregation group cannot serve as a member of
a Smart Link group and a Monitor Link group at the same time. However, a Smart
Link group can serve as the uplink member port of a Monitor Link group.
Example
# Configure link aggregation group 8 as the
downlink port of the Monitor Link group.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] monitor-link group 1
[Sysname-mtlk-group1]
link-aggregation group 8 downlink
Syntax
monitor-link group group-id
undo monitor-link group group-id
View
System view
Parameter
group-id:
Monitor Link group ID, ranging from 1 to 24.
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.
After the Monitor Link group is configured,
member ports of the Monitor Link group need to be configured.
Related command: port monitor-link group,
link-aggregation group, smart-link group, and port.
Make sure that the Monitor Link group has no members before
executing the undo monitor-link group command.
Example
# Create a
Monitor Link group.
<Sysname>
system-view
System View: return to User View with
Ctrl+Z.
[Sysname] monitor-link group 1
New Monitor Link Group has been
created.
[Sysname-mtlk-group1]
Syntax
port interface-type
interface-number { uplink | downlink
}
undo port interface-type interface-number
View
Monitor Link group view
Parameter
interface-type: Port type.
interface-number: Port 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
the specified port as a member of the Monitor Link group.
Use the undo port command to remove
the specified port from the current Monitor Link group.
In Monitor Link, a Monitor Link group
member can be a single port, a static link aggregation group, but not a dynamic
link aggregation group. The uplink port of a Monitor Link group can also be a
Smart Link group.
Do not use
this command on member ports of a link aggregation group or a Smart Link group.
A port or a link aggregation group cannot serve as a member port for
two Smart Link groups. On the other hand, a port or a link aggregation group
cannot serve as a member for a Smart Link group and a Monitor Link group at the
same time. However, a Smart Link group can serve as the uplink member port of a
Monitor Link group.
Example
# Configure Ethernet1/0/7 as a downlink
port of the Monitor Link group
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] monitor-link group 1
[Sysname-mtlk-group1] port Ethernet
1/0/7 downlink
Syntax
port monitor-link group group-id{ uplink | downlink }
undo port monitor-link group group-id
View
Ethernet port view
Parameter
group-id:
Monitor Link group ID, ranging 1 to 24.
uplink: Configures the port as the uplink port of the specified Monitor Link
group
downlink:
Configures the port as the downlink port of the specified
Monitor Link group
Description
Use the port monitor-link group command
to configure the current port as a member of the specified Monitor Link group.
Use the undo port monitor-link group command
to remove the current port from the specified Monitor Link group.
In Monitor Link, a Monitor Link group
member can be a single port, a static link aggregation group, but not a dynamic
link aggregation group. Uplink port can also be a Smart Link group.
Do not use
this command on member ports of a link aggregation group or a Smart Link group.
A port or a link
aggregation group cannot serve as a member port for two Smart Link groups. On
the other hand, a port or a link aggregation group cannot serve as a member for
a Smart Link group and a Monitor Link group at the same time. However, a Smart
Link group can serve as the uplink member port of a Monitor Link group.
Example
# Configure Ethernet1/0/8 as a downlink
port of Monitor Link group 1.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] interface Ethernet 1/0/8
[Sysname-Ethernet1/0/8] port
monitor-link group 1 downlink
Syntax
smart-link group group-id uplink
undo smart-link group group-id
View
Monitor Link group view
Parameter
group-id:
Smart Link group ID, ranging 1 to 24.
uplink:
Configures the specified Smart Link group as the uplink port of the Monitor
Link group
Description
Use the smart-link group command to
configure the specified Smart Link group as the uplink port of the Monitor Link
group.
Use the undo smart-link group command
to remove the configuration.
A Smart Link group can belong to only one
Monitor Link group and can be configured only as an uplink port of the Monitor
Link group.
Example
# Configure
Smart Link group 1 as the uplink port of Monitor Link group 1.
<Sysname>
system-view
System
View: return to User View with Ctrl+Z.
[Sysname]
monitor-link group 1
[Sysname-mtlk-group1]
smart-link group 1 uplink