EasyManua.ls Logo

Huawei V100R006C00 - Page 113

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...
<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
2. Configure an observing port.
# Configure GigabitEthernet 0/0/24 as the observing port.
[Switch] observe-port 1 interface gigabitethernet 0/0/24
3. # 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
4. # 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
5. 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
6. 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
7. 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
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.
104

Table of Contents

Related product manuals