Example For Configuring Local Vlan Mirroring - Huawei V100R006C00 Configuration Manual

Table of Contents

Advertisement

Quidway S5700 Series Ethernet Switches
Configuration Guide - Device Management
Configuration Procedure
1.
2.
3.
4.
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

Issue 01 (2011-07-15)
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
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
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
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
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
7 Mirroring
98

Advertisement

Table of Contents
loading

Table of Contents