Chapter 29: Port Mirroring Commands
Local Port Mirroring Commands
– 975 –
•
ACL-based mirroring is only used for ingress traffic. To mirror an ACL,
follow these steps:
1.
Use the
access-list
) to add an ACL.
2.
Use the
access-group
command to add a mirrored port to access
control list.
3.
Use the
port monitor access-list
command to specify the destination
port to which traffic matching the ACL will be mirrored.
E
XAMPLE
The following example configures the switch to mirror all packets from port
6 to 5:
Console(config)#interface ethernet 1/5
Console(config-if)#port monitor ethernet 1/6 both
Console(config-if)#
This example configures port 2 to monitor packets matching the MAC
address 00-12-CF-XX-XX-XX received by port 1:
Console(config)#access-list mac m1
Console(config-mac-acl)#permit 00-12-cf-00-00-00 ff-ff-ff-00-00-00 any
Console(config-mac-acl)#exit
Console(config)#interface ethernet 1/1
Console(config-if)#mac access-group m1 in
Console(config-if)#interface ethernet 1/2
Console(config-if)#port monitor access-list m1
Console(config-if)#
show port monitor
This command displays mirror information.
S
YNTAX
show port monitor
[
interface
|
vlan
vlan-id
|
mac-address mac-address
]
interface
-
ethernet
unit
/
port
(source port)
unit
- Unit identifier. (Range: 1)
port
- Port number. (Range: 1-52)
vlan-id
- VLAN ID (Range: 1-4094)
mac-address
- MAC address in the form of xx-xx-xx-xx-xx-xx or
xxxxxxxxxxxx.
D
EFAULT
S
ETTING
Shows all sessions.
C
OMMAND
M
ODE
Privileged Exec
Содержание SSE-G2252
Страница 42: ...44 General IP Routing on page 627...
Страница 174: ...Chapter 6 VLAN Configuration Configuring VLAN Mirroring 178 Figure 6 27 Showing the VLANs to Mirror...
Страница 511: ...Chapter 14 Basic Administration Protocols UDLD Configuration 518 Figure 14 100 Displaying UDLD Neighbor Information...
Страница 603: ...Chapter 16 IP Configuration Setting the Switch s IP Address IP Version 6 609...
Страница 883: ...Chapter 24 General Security Measures Port based Traffic Segmentation 894...
Страница 989: ...Chapter 30 Congestion Control Commands Automatic Traffic Control Commands 1000 Console...
Страница 1007: ...Chapter 33 Address Table Commands 1019...
Страница 1137: ...Chapter 38 Quality of Service Commands 1150...
Страница 1366: ...Chapter 46 IP Routing Commands Global Routing Configuration 1381 Connected 2 Total 2 FIB 0 Console...