- Table of Contents
-
- H3C S5500-SI Series Ethernet Switches Command Manual-Release 1205-(V1.03)
- 00-1Cover
- 01-Login Command
- 02-Basic System Configuration and Maintenance Command
- 03-File System Management Command
- 04-VLAN Command
- 05-QinQ-BPDU TUNNEL Command
- 06-Port Correlation Configuration Command
- 07-MAC Address Table Management Command
- 08-MSTP Commands
- 09-IP Address and Performance Command
- 10-IPv6 Configuration Command
- 11-Routing Overview Command
- 12-IPv4 Routing Command
- 13-IPv6 Routing Command
- 14-802.1x-HABP-MAC Authentication Command
- 15-AAA-RADIUS-HWTACACS Command
- 16-Multicast Protocol Command
- 17-ARP Command
- 18-DHCP Command
- 19-ACL Command
- 20-QoS Command
- 21-Port Mirroring Command
- 22-Cluster Command
- 23-SNMP-RMON Command
- 24-NTP Command
- 25-DNS Command
- 26-Information Center Command
- 27-NQA Command
- 28-SSH Terminal Service Command
- 29-UDP Helper Command
- 30-SSL-HTTPS Command
- 31-PKI Command
- 32-PoE-PoE Profile Command
- 33-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
21-Port Mirroring Command | 63 KB |
Table of Contents
Chapter 1 Port Mirroring Configuration Commands
1.1 Port Mirroring Configuration Commands
1.1.3 mirroring-group mirroring-port
1.1.4 mirroring-group monitor-port
Chapter 1 Port Mirroring Configuration Commands
1.1 Port Mirroring Configuration Commands
1.1.1 display mirroring-group
Syntax
display mirroring-group { groupid | local }
View
Any view
Parameter
groupid: A mirroring group’s number, in the range of 1 to 4.
local: A local mirroring group.
Description
Use the display mirroring-group command to display the information of a mirroring group.
Executing the command with the groupid argument will display the configuration information about the specified mirroring group. Executing the command with the local keyword will display the configuration information about all mirroring groups.
Example
# Display the mirroring group 1 information.
<Sysname> display mirroring-group 1
mirroring-group 1:
type: local
status: active
mirroring port:
GigabitEthernet1/0/1 both
GigabitEthernet1/0/2 both
monitor port: GigabitEthernet1/0/3
Table 1-1 Description on the fields of the display mirroring-group command
Field |
Description |
mirroring-group |
Mirroring group number |
type |
A mirroring group’s type. S5500-SI Series Ethernet Switches only support local port mirroring. |
status |
A mirroring group’s status. “active” for already effective, and “inactive” for not effective yet. |
mirroring port |
Source mirroring port |
monitor port |
Destination mirroring port |
1.1.2 mirroring-group
Syntax
mirroring-group groupid local
undo mirroring-group { groupid | local }
View
System view
Parameter
groupid: A mirroring group’s number, in the range of 1 to 4.
local: A local mirroring group.
Description
Use the mirroring-group command to create a mirroring group. Use the undo mirroring-group command to remove a mirroring group.
You are asked to specify the type of the mirroring group you create; and you are allowed to remove a specific mirroring group or all mirroring groups of one type or all the mirroring groups.
& Note:
S5500-SI Series Ethernet Switches only support local port mirroring.
Example
# Create local mirroring group 1.
<Sysname> system-view
[Sysname] mirroring-group 1 local
1.1.3 mirroring-group mirroring-port
Syntax
mirroring-group groupid mirroring-port mirroring-port-list { inbound | outbound | both }
undo mirroring-group groupid mirroring-port mirroring-port-list { inbound | outbound | both }
View
System view
Parameter
groupid: A mirroring group’s number, in the range of 1 to 4.
mirroring-port-list: A mirroring port list specifies multiple ports. The expression is mirroring-port-list = { interface-type interface-number [ to interface-type interface-number ] }&<1-8>, in which interface-type is the port type and interface-number is the port number. &<1-8> means the parameter before it can be entered up to 8 times.
inbound: Specifies only mirroring the packets received by the port.
onbound: Specifies only mirroring the packets sent by the port.
both: Specifies mirroring all the packets received or sent by the port.
Description
Use the mirroring-group mirroring-port command to add a source port to a mirroring group already created. Use the undo mirroring-group mirroring-port command to remove a source port from a mirroring group.
Note:
l The local mirroring group takes effect only after a source port and a destination port are added to it.
l You cannot add a port as a source port to a mirroring group if the port is already a member port of another mirroring group.
Example
# Add a source port to mirroring group 1.
<Sysname> system-view
[Sysname] mirroring-group 1 mirroring-port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/5 both
# Remove a source port from mirroring group 1.
[Sysname] undo mirroring-group 1 mirroring-port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/3 both
1.1.4 mirroring-group monitor-port
Syntax
mirroring-group groupid monitor-port monitor-port-id
undo mirroring-group groupid monitor-port monitor-port-id
View
System view
Parameter
groupid: A mirroring group’s number, in the range of 1 to 4.
monitor-port-id: Destination port number. The expression is interface-type interface-number. in which interface-type is the port type and interface-number is the port number.
Description
Use the mirroring-group monitor-port command to add a destination port to a mirroring group already created. Use the undo mirroring-group monitor-port command to remove a destination port from a mirroring group already created.
Note:
l The local mirroring group takes effect only after a source port and a destination port are added to it.
l A monitor port can’t enable STP RSTP or MSTP; otherwise it will affect the device’s normal functions. And vice versa.
l A monitor port cannot be a member port of the current mirroring group.
l You must create a mirroring group before you can specify it.
Example
# Add monitor port GigabitEthernet1/0/6 to mirroring group 1.
<Sysname> system-view
[Sysname] mirroring-group 1 monitor-port GigabitEthernet 1/0/6
1.1.5 mirroring-port
Syntax
[ mirroring-group groupid ] mirroring-port { inbound | outbound | both }
undo [ mirroring-group groupid ] mirroring-port { inbound | outbound | both }
View
Interface view
Parameter
groupid: A mirroring group’s number, in the range of 1 to 4.
inbound: Specifies only mirroring the packets received by the port.
onbound: Specifies only mirroring the packets sent by the port.
both: Specifies mirroring all the packets received or sent by the port.
Description
Use the mirroring-port command to configure the present port as a mirroring port under interface view. Use the undo mirroring-port command to remove the configuration.
The default is mirroring group 1, if no mirroring group number is specified.
Example
# Add port GigabitEthernet1/0/7 to mirroring group 2.
<Sysname> system-view
[Sysname] mirroring-group 2 local
[Sysname] interface GigabitEthernet 1/0/7
[Sysname-GigabitEthernet1/0/7] mirroring-group 2 mirroring-port both
1.1.6 monitor-port
Syntax
[ mirroring-group groupid ] monitor-port
undo [ mirroring-group groupid ] monitor-port
View
Interface view
Parameter
groupid: A mirroring group’s number, in the range of 1 to 4.
Description
Use the monitor-port command to configure the present port as a monitor port under interface view. Use the undo monitor-port command to remove the configuration.
The default is mirroring group 1, if no mirroring group number is specified.
Example
# Configure port GigabitEthernet1/0/10 as monitor port of mirroring group 1.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] interface GigabitEthernet 1/0/10
[Sysname-GigabitEthernet1/0/10] monitor-port