314
C
HAPTER
29: M
IRRORING
C
ONFIGURATION
When configuring local port mirroring, note that:
■
You need to configure the source and destination ports for the local port
mirroring to take effect.
■
The destination port cannot be a member port of an aggregation group or a
port enabled with LACP or STP.
Displaying Port
Mirroring
After performing the configurations above, you can execute the
display
commands in any view to view the mirroring running information, so as to verify
your configurations.
Mirroring
Configuration
Example
Network requirements
The departments of a company connect to each other through the Switch 4210:
■
Research and Development (R&D) department is connected to Switch C
through Ethernet 1/0/1.
■
Marketing department is connected to Switch C through Ethernet 1/0/2.
■
Data detection device is connected to Switch C through Ethernet 1/0/3
The administrator wants to monitor the packets received on and sent from the
R&D department and the marketing department through the data detection
device.
Configure
the source
port for the
port
mirroring
group
In system
view
mirroring-group
group-id
mirroring-port
mirroring-port-list
{
both
|
inbound
|
outbound
}
Use either approach
You can configure multiple
source ports at a time in system
view, or you can configure the
source port in specific port
view. The configurations in the
two views have the same effect.
In port view
interface
interface-type
interface-number
mirroring-group
group-id
mirroring-port
{
both
|
inbound
|
outbound
}
quit
Configure
the
destination
port for the
port
mirroring
group
In system
view
mirroring-group
group-id
monitor-port
monitor-port-id
Use either approach
The configurations in the two
views have the same effect.
In port view
interface
interface-type
interface-number
mirroring-group
group-id
monitor-port
Table 237
Configuring local port mirroring
Operation
Command Description
Table 238
Display configuration of mirroring
Operation
Command
Description
Display port mirroring
configuration
display mirroring-group
{
group-id
|
all
|
local
}
Available in any
view
Summary of Contents for Switch 4210 9-Port
Page 22: ...20 CHAPTER 1 CLI CONFIGURATION ...
Page 74: ...72 CHAPTER 3 CONFIGURATION FILE MANAGEMENT ...
Page 84: ...82 CHAPTER 5 VLAN CONFIGURATION ...
Page 96: ...94 CHAPTER 8 IP PERFORMANCE CONFIGURATION ...
Page 108: ...106 CHAPTER 9 PORT BASIC CONFIGURATION ...
Page 122: ...120 CHAPTER 11 PORT ISOLATION CONFIGURATION ...
Page 140: ...138 CHAPTER 13 MAC ADDRESS TABLE MANAGEMENT ...
Page 234: ...232 CHAPTER 17 802 1X CONFIGURATION ...
Page 246: ...244 CHAPTER 20 AAA OVERVIEW ...
Page 270: ...268 CHAPTER 21 AAA CONFIGURATION ...
Page 292: ...290 CHAPTER 26 DHCP BOOTP CLIENT CONFIGURATION ...
Page 318: ...316 CHAPTER 29 MIRRORING CONFIGURATION ...
Page 340: ...338 CHAPTER 30 CLUSTER ...
Page 362: ...360 CHAPTER 33 SNMP CONFIGURATION ...
Page 368: ...366 CHAPTER 34 RMON CONFIGURATION ...
Page 450: ...448 CHAPTER 39 TFTP CONFIGURATION ...
Page 451: ......
Page 452: ...450 CHAPTER 39 TFTP CONFIGURATION ...
Page 470: ...468 CHAPTER 40 INFORMATION CENTER ...
Page 496: ...494 CHAPTER 44 DEVICE MANAGEMENT ...