Huawei V100R006C00 Configuration Manual page 113

Table of Contents

Advertisement

Quidway S5700 Series Ethernet Switches
Configuration Guide - Device Management
2.
3.
4.
5.
6.
7.
Issue 01 (2011-07-15)
<Switch> system-view
[Switch] vlan 10
[Switch-vlan10] quit
[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] port link-type trunk
[Switch-GigabitEthernet0/0/1] port trunk allow-pass vlan 10
[Switch-GigabitEthernet0/0/1] quit
Configure an observing port.
# Configure GigabitEthernet 0/0/24 as the observing port.
[Switch] observe-port 1 interface gigabitethernet 0/0/24
# Create a traffic classifier.
# Create traffic classifier c1 and set the traffic classification rule that only the packets with
the 802.1p priority as 6 can be matched.
[Switch] traffic classifier c1
[Switch-classifier-c1] if-match 8021p 6
[Switch-classifier-c1] quit
# Create a traffic behavior.
# Create traffic behavior b1 and configure flow mirroring in the traffic behavior.
[Switch] traffic behavior b1
[Switch-behavior-b1] mirroring to observe-port 1
[Switch-behavior-b1] quit
Create a traffic policy.
# Create a traffic policy and bind traffic classifier c1 to traffic behavior b1.
[Switch] traffic policy p1
[Switch-trafficpolicy-p1] classifier c1 behavior b1
[Switch-trafficpolicy-p1] quit
Apply the traffic policy and enable the interface to trust the 802.1p priority of packets.
# Apply traffic policy p1 to GigabitEthernet 0/0/1 and GigabitEthernet 0/0/5, and enable
GigabitEthernet 0/0/1 and GigabitEthernet 0/0/5 to trust the 802.1p priority of packets.
[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] traffic-policy p1 inbound
[Switch-GigabitEthernet0/0/1] trust 8021p
[Switch-GigabitEthernet0/0/1] quit
[Switch]interface gigabitethernet 0/0/5
[Switch-GigabitEthernet0/0/5] traffic-policy p1 inbound
[Switch-GigabitEthernet0/0/5] trust 8021p
[Switch-GigabitEthernet0/0/5] quit
Verify the configuration.
# Run the display port-mirroring command. You can check the observing port.
[Switch] display port-mirroring
Observe index 1 is set to interface GigabitEthernet0/0/24
Observe Type: Local
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
# Run the display traffic policy interface command. You can check the traffic policy
applied to GigabitEthernet 0/0/1 and GigabitEthernet 0/0/5.
[Switch] display traffic policy interface
Interface: GigabitEthernet0/0/1
Direction: Inbound
Policy: p1
Classifier: c1
Rule(s) :
if-match 8021p 6
Behavior: b1
Mirroring to observe-port 1
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
7 Mirroring
104

Advertisement

Table of Contents
loading

Table of Contents