Huawei V100R006C00 Configuration Manual page 116

Table of Contents

Advertisement

Quidway S5700 Series Ethernet Switches
Configuration Guide - Device Management
2.
3.
Configuration Files
Configuration file of Switch A
#
sysname SwitchA
#
vlan 2
#
observe-port 1 interface GigabitEthernet0/0/1 vlan 2
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2
#
interface GigabitEthernet0/0/2
port-mirroring to observe-port 1 inbound
#
#
return
Configuration file of Switch B
sysname SwitchB
#
vlan 2
#
Issue 01 (2011-07-15)
Configure Switch B.
# Create the RSPAN VLAN.
<SwitchB> system-view
[SwitchB] vlan 2
[SwitchB-vlan2] quit
# Add GigabitEthernet0/0/1 and GigabitEthernet0/0/2 to the RSPAN VLAN as trunk
interfaces.
[SwitchB] interface gigabitethernet 0/0/1
[SwitchB-GigabitEthernet0/0/1] port link-type trunk
[SwitchB-GigabitEthernet0/0/1] port trunk allow-pass vlan 2
[SwitchB-GigabitEthernet0/0/1] quit
[SwitchB] interface gigabitethernet 0/0/2
[SwitchB-GigabitEthernet0/0/2] port link-type trunk
[SwitchB-GigabitEthernet0/0/2] port trunk allow-pass vlan 2
[SwitchB-GigabitEthernet0/0/2] quit
Configure Switch C.
# Create the RSPAN VLAN.
<SwitchC> system-view
[SwitchC] vlan 2
[SwitchC-vlan2] quit
# Add GE 0/0/2 to the RSPAN VLAN as a trunk interface.
[SwitchC] interface gigabitethernet 0/0/2
[SwitchC-GigabitEthernet0/0/2] port link-type trunk
[SwitchC-GigabitEthernet0/0/2] port trunk allow-pass vlan 2
[SwitchC-GigabitEthernet0/0/2] quit
# Configure GE 0/0/1 as a hybrid interface and configure it to allow packets of the RSPAN
VLAN to pass.
[SwitchC] interface gigabitethernet 0/0/1
[SwitchC-GigabitEthernet0/0/1] port hybrid untagged vlan 2
[SwitchC-GigabitEthernet0/0/1] quit
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
7 Mirroring
107

Advertisement

Table of Contents
loading

Table of Contents