Tuesday, October 11, 2011

Comware & ProCurve - local traffic mirroring


Network Diagram

A5800
vlan 10: 10.3.2.1/24
access ports gi1/0/1 to gi1/0/4

E3500
vlan 10: 10.3.2.2/24
untagged ports 1-4

             +----------+    +---------+
             | Procurve |    | Comware |
  [router]---- p1       |    | gi1/0/1 -----[router]
             | p3       |    | gi1/0/3 |
             +-|--------+    +--|------+

               |                |
               |                |
              PC               PC

traffic mirroring - ProCurve

1. Connect the PC to a port in VLAN 2.

2. From the CLI, configure the PC port as the mirror destination.
E3500(config)# mirror 1 port 3

3. Configure the port connected to the 5800 as the traffic source.
E3500(config)# interface 1 monitor all both mirror 1
or
interface 1
   monitor all both mirror 1
   exit

traffic mirroring – Comware

1. Connect the PC to a port in VLAN 2 on the Comware switch.

2. Create a local mirroring group.
[A5800]mirroring-group 1 local

3. From the CLI, configure the PC port as the mirror destination.
[A5800]mirroring-group 1 monitor-port gi1/0/3
or
[A5800] interface GigabitEthernet1/0/3
port access vlan 2
mirroring-group 1 monitor-port

4. Configure the port connected to the 3500 as the source of the mirrored traffic.
[A5800]mirroring-group 1 mirroring-port gi1/0/1 both
or
interface GigabitEthernet1/0/1
 port link-type trunk
 port trunk permit vlan 1 to 2 10
 port trunk pvid vlan 10
 mirroring-group 1 mirroring-port both


No comments:

Post a Comment

Please add comments so I may update the material to accommodate platform modification to various commands. Also if you have some real-world caveats, do please share.

Search Duke

About the Author

My photo
Central Florida, United States