Tuesday, May 1, 2012

Local port mirroring (span) config example


Local port mirroring configuration example (in mirroring port mode)
Network requirements


Configuration procedure

# Create local mirroring group 1.
1. Create a local mirroring group.


<DeviceA> system-view
[DeviceA] mirroring-group 1 local

# Configure GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 as mirroring ports and port
GigabitEthernet 1/0/3 as the monitor port.
[DeviceA] mirroring-group 1 mirroring-port gigabitethernet 1/0/1 gigabitethernet 1/0/2
both
[DeviceA] mirroring-group 1 monitor-port gigabitethernet 1/0/3

# Disable Spanning Tree Protocol (STP) in the monitor port GigabitEthernet1/0/3.
[DeviceA] interface gigabitethernet 1/0/3
[DeviceA-GigabitEthernet1/0/3] undo stp enable
[DeviceA-GigabitEthernet1/0/3] quit

2. Verify the configurations.
# Display the configuration of all port mirroring groups.

[DeviceA] display mirroring-group all
mirroring-group 1:
type: local
status: active
mirroring port:
GigabitEthernet1/0/1 both
GigabitEthernet1/0/2 both
mirroring CPU:
monitor port: GigabitEthernet1/0/3

After the configurations are completed, you can monitor all the packets received and sent by the
Gig 1/0/1 and 1/0/2  and sent to the device on port Gig 1/0/3.

No comments:

Post a Comment