EasyManua.ls Logo

Huawei V100R006C00 - Example for Configuring Local VLAN Mirroring

Huawei V100R006C00
142 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Configuration Procedure
1. Create a VLAN on the Switch and add interfaces to the VLAN in trunk mode.
# Add GigabitEthernet 0/0/1 and GigabitEthernet 0/0/3 to a same VLAN in trunk mode.
The following takes the configuration of GigabitEthernet 0/0/1 as an example. The
configuration of GigabitEthernet 0/0/3 is the same as the configuration of
GigabitEthernet 0/0/1 and is not mentioned here.
<Switch> system-view
[Switch] vlan 1
[Switch-vlan1] quit
[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] port trunk allow-pass vlan 1
[Switch-GigabitEthernet0/0/1] quit
2. Configure an observing port.
# Set GigabitEthernet 0/0/24 as the observing port.
<Switch> system-view
[Switch] observing-port 1 interface GigabitEthernet 0/0/24
3. Configure a mirrored port.
# Set GigabitEthernet 0/0/1 as a mirrored port.
[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] port-mirroring to observe-port 1 inbound
[Switch-GigabitEthernet0/0/1] quit
4. Verify the configuration.
# Run the display port-mirroring command. You can check the configurations on the
observing port and mirrored port.
[Switch] display port-mirroring
Observe index 1 is set to interface GigabitEthernet0/0/24
Observe Type: Local
Interface GigabitEthernet0/0/1
Mirrored to: Observe index 1
Direction: inbound
Observe index 2 is not set to any interface
Observe index 3 is not set to any interface
Observe index 4 is not set to any interface
Configuration Files
Configuration file of the Switch
#
vlan batch 1
#
sysname Switch
#
observing-port 1 interface GigabitEthernet0/0/24
#
interface GigabitEthernet0/0/1
port trunk allow-pass vlan 1
port-mirroring to observe-port 1 inbound
#
interface GigabitEthernet0/0/3
port trunk allow-pass vlan 1
#
return
7.17.2 Example for Configuring Local VLAN Mirroring
Quidway S5700 Series Ethernet Switches
Configuration Guide - Device Management 7 Mirroring
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
98

Table of Contents

Related product manuals