- Table of Contents
-
- 04-Layer 2 - LAN Switching Command Reference
- 00-Preface
- 01-VLAN Commands
- 02-MAC Address Table Commands
- 03-Spanning Tree Commands
- 04-Ethernet Link Aggregation Commands
- 05-Port Isolation Commands
- 06-QinQ Commands
- 07-VLAN Mapping Commands
- 08-BPDU Tunneling Commands
- 09-GVRP Commands
- 10-Loopback Detection Commands
- 11-VLAN Termination Commands
- 12-MAC-in-MAC Commands
- 13-LLDP Commands
- 14-MVRP Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
12-MAC-in-MAC Commands | 74.51 KB |
MAC-in-MAC configuration commands
The switch does not support MAC-in-MAC when it operates in standard mode. For more information about system working modes, see Fundamentals Configuration Guide.
car
Syntax
car { inbound | outbound } name car-name
undo car { inbound | outbound }
View
Service instance view
Default level
2: System level
Parameters
inbound: Applies a global CAR action to the incoming traffic.
outbound: Applies a global CAR action to the outgoing traffic.
name car-name: Specifies a global CAR action by its name. The car-name argument is a string of 1 to 31 characters.
Description
Use car to apply a global CAR action to the incoming or outgoing traffic of a service instance.
Use undo car to restore the default.
By default, no global CAR action is applied to a service instance.
Related commands: qos car aggregative (system view) in ACL and QoS Command Reference.
Examples
# On port GigabitEthernet 3/0/1, apply a global CAR action named car1 to the incoming traffic of service instance 200 and a global CAR action named car2 to the outgoing traffic of service instance 200.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/0/1
[Sysname-GigabitEthernet3/0/1] service-instance 200
[Sysname-GigabitEthernet3/0/1-srv200] car inbound name car1
[Sysname-GigabitEthernet3/0/1-srv200] car outbound name car2
display minm connection
Syntax
display minm connection [ vsi vsi-name ] [ | { begin | exclude | include } regular-expression ]
View
Default level
1: Monitor level
Parameters
vsi vsi-name: Displays the uplink connection information of the MAC-in-MAC instance specified by its name. The vsi-name argument is the MAC-in-MAC instance name, which is a case-insensitive string of 1 to 31 characters excluding hyphens (-). If the keyword-argument combination is not specified, the uplink connection information of all the MAC-in-MAC instances is displayed.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display minm connection to display the uplink connection information (that is, the remote B-MAC information learned) of the specified MAC-in-MAC instance.
Examples
# Display the uplink connection information of all MAC-in-MAC instances.
<Sysname> display minm connection
3 connection(s) exist
VSIIndex LinkID BMAC BVLAN Interface Name State AGING TIME(s)
0 1 00e0-3948-0100 4 GE3/0/4 Learned AGING
1 1 00e0-3948-0100 4 GE3/0/4 Learned AGING
2 1 00e0-3948-0100 4 GE3/0/4 Learned AGING
Table 1 Command output
Field |
Description |
3 connection(s) exist |
Three uplink connections are present. |
VSIIndex |
Number of the VSI (the MAC-in-MAC instance). |
LinkID |
Number of the link (the B-MAC entry). |
BMAC |
B-MAC address. |
BVLAN |
ID of the B-VLAN. |
Interface Name |
Name of the uplink port. |
State |
State of the B-MAC entry. The value is Learned, indicating that the MAC entry is learned. |
AGING TIME(s) |
Aging time (in seconds) of the B-MAC entry. The value is AGING, indicating that the MAC entry can be aged. |
minm bvlan
Syntax
minm bvlan vlan-id
undo minm bvlan
View
VSI view
Default level
2: System level
Parameters
vlan-id: Specifies a backbone VLAN (B-VLAN) ID in the range of 1 to 4094.
Description
Use minm bvlan to specify the B-VLAN for a MAC-in-MAC service instance.
Use undo minm bvlan to remove the B-VLAN of a MAC-in-MAC service instance.
By default, no B-VLAN is specified for a MAC-in-MAC service instance.
Examples
# Enable L2VPN and specify VLAN 200 as the B-VLAN for MAC-in-MAC instance aaa.
<Sysname> system-view
[Sysname] l2vpn
[Sysname-l2vpn] quit
[Sysname] vsi aaa minm i-sid 100
[Sysname-vsi-aaa] minm bvlan 200
minm uplink (VSI view)
Syntax
minm uplink interface-type interface-number
undo minm uplink interface-type interface-number
View
VSI view
Default level
2: System level
Parameters
interface-type interface-number: Specifies an interface by its type and number.
Description
Use minm uplink to specify an uplink port for the MAC-in-MAC service instance.
Use undo minm uplink to remove an uplink port of the MAC-in-MAC service instance.
By default, no uplink port is specified for a MAC-in-MAC service instance.
The uplink port configuration takes effect only after you specify a B-VLAN for the MAC-in-MAC instance.
You can configure the uplink ports in either VSI view or interface view. If the same port is configured as an uplink port in both VSI view and interface view, the latest configuration takes effect.
Related commands: minm bvlan and minm uplink (interface view).
Examples
# Enable L2VPN, and specify VLAN 200 as the B-VLAN and port GigabitEthernet 3/0/1 as an uplink port of MAC-in-MAC instance aaa.
<Sysname> system-view
[Sysname] l2vpn
[Sysname-l2vpn] quit
[Sysname] vsi aaa minm i-sid 100
[Sysname-vsi-aaa] minm bvlan 200
[Sysname-vsi-aaa] minm uplink GigabitEthernet 3/0/1
minm uplink (interface view)
Syntax
minm uplink vsi vsi-name
undo minm uplink vsi
View
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
vsi-name: Specifies a MAC-in-MAC instance name, which is a case-insensitive string of 1 to 31 characters excluding hyphens (-).
Description
Use minm uplink to configure the port as an uplink port for the specified MAC-in-MAC service instance.
Use undo minm uplink to remove an uplink port of the MAC-in-MAC service instance.
By default, a port is not configured as the uplink port of any MAC-in-MAC service instance.
The uplink port configuration takes effect only after you specify a B-VLAN for the MAC-in-MAC instance.
You can configure the uplink ports in either VSI view or interface view. If the same port is configured as an uplink port in both VSI view and interface view, the latest configuration takes effect.
Related commands: minm bvlan and minm uplink (VSI view).
Examples
# Enable L2VPN, and specify VLAN 200 as the B-VLAN and port GigabitEthernet 3/0/1 as an uplink port of MAC-in-MAC instance aaa.
<Sysname> system-view
[Sysname] l2vpn
[Sysname-l2vpn] quit
[Sysname] vsi aaa minm i-sid 100
[Sysname-vsi-aaa] minm bvlan 200
[Sysname-vsi-aaa] quit
[Sysname] interface GigabitEthernet 3/0/1
[Sysname-GigabitEthernet3/0/1] minm uplink vsi aaa
reset service-instance statistics
Syntax
reset service-instance statistics [ interface interface-type interface-number [ service-instance instance-id [ inbound | outbound ] ] ]
View
User view
Default level
1: Monitor level
Parameters
interface interface-type interface-number: Clears the service instance statistics of an interface specified by its type and number.
service-instance instance-id: Clears the statistics of a service instance specified by its ID in the range of 1 to 4094.
inbound: Clears incoming traffic statistics.
outbound: Clears outgoing traffic statistics.
Description
Use reset service-instance statistics to clear the service statistics of an interface.
Related commands: statistics.
Examples
# Clear the statistics of service instance 200 on port GigabitEthernet 3/0/1.
<Sysname> reset service-instance statistics interface GigabitEthernet 3/0/1 service-instance 200
undo minm connection
Syntax
undo minm connection [ vsi vsi-name [ linkid link-id ] | { bvlan vlan-id | interface interface-type interface-number } * ]
View
Default level
2: System level
Parameters
vsi vsi-name: Clears the uplink connection information of the MAC-in-MAC instance specified by its name. The vsi-name argument is the MAC-in-MAC instance name, which is a case-insensitive string of 1 to 31 characters excluding hyphens (-). If the keyword-argument combination is not specified, the uplink connection information of all the MAC-in-MAC instances is cleared.
linkid link-id: Clears the uplink connection information from a link specified by its ID in the range of 1 to 62. If the argument is not specified, the uplink connection information is removed from all links.
bvlan vlan-id: Clears the uplink connection information from a B-VLAN specified by its ID in the range of 1 to 4094. If the argument is not specified, the uplink connection information is removed from all B-VLANs.
interface interface-type interface-number: Clears the uplink connection information from the specified port. The interface-type interface-number argument specifies an interface by its type and number. If the argument is not specified, the uplink connection information is removed from all ports.
Description
Use undo minm connection to clear the uplink connection information (that is, the remote B-MAC information learned) of the specified MAC-in-MAC instance.
Examples
# Clear the uplink connection information of MAC-in-MAC instance aaa.
<Sysname> system-view
[Sysname] undo minm connection vsi aaa