Example For Configuring Traffic Mirroring - Huawei Quidway S9300 Configuration Manual

Terabit routing switch device management
Table of Contents

Advertisement

Quidway S9300 Terabit Routing Switch
Configuration Guide - Device Management
[SwitchA] interface gigabitethernet 1/0/2 [SwitchA-GigabitEthernet1/0/2] port-
mirroring to observe-port 1 inbound [SwitchA-GigabitEthernet1/0/2] quit [SwitchA]
quit
Step 4 Verify the configuration.
# Check the configuration of the observing port.
[SwitchA] display observe-port
---------------------------------------------------------------------------
Index
Interface: GigabitEthernet1/0/1
Used
Vlan
---------------------------------------------------------------------------
# Check the configuration of the mirrored port.
[SwitchA] display port-mirroring
---------------------------------------------------------------------- Mirror-
port
---------------------------------------------------------------------- 1
GigabitEthernet1/0/2
----------------------------------------------------------------------
# On the server, you can view that all the packets received on GE 1/0/2 of Switch A. This indicates
that packets on GE 1/0/2 are mirrored by Switch A.
----End
Configuration Files
l
l
l

6.6.3 Example for Configuring Traffic Mirroring

Networking Requirements
The R&D department and marketing department are connected to GE 1/0/1 and GE1/0/2 of the
Switch through LSWA and LSWB. It is required that the Switch should monitor the packets
Issue 03 (2011-12-29)
: 1
: 1
: 2
Direction
Observe-port
Inbound
Configuration file of Switch A
# sysname SwitchA # vlan batch 2 to 3
# observe-port 1 interface GigabitEthernet1/0/1 vlan 2
# interface GigabitEthernet1/0/1 port link-type trunk port trunk pvid vlan 2
port trunk allow-pass vlan 2
# interface GigabitEthernet1/0/2 port link-type trunk port trunk pvid vlan 3
port trunk allow-pass vlan 3
port-mirroring to observe-port 1 inbound
# return
Configuration file of Switch B
# sysname SwitchB # vlan batch 2
# interface GigabitEthernet1/0/1 port link-type trunk port trunk pvid vlan 2
port trunk allow-pass vlan 2
# interface GigabitEthernet1/0/2 port link-type trunk port trunk pvid vlan 2
port trunk allow-pass vlan 2
# return
Configuration file of Switch C
# sysname SwitchC # vlan batch 2
# interface GigabitEthernet1/0/1 port link-type trunk port trunk pvid vlan 2
port trunk allow-pass vlan 2
# interface GigabitEthernet1/0/2 port link-type trunk port trunk pvid vlan 2
port trunk allow-pass vlan 2
# return
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
GigabitEthernet1/0/1
6 Mirroring Configuration
114

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents