Huawei Quidway S3700 Series Configuration Manual page 122

V100r006c00
Hide thumbs Also See for Quidway S3700 Series:
Table of Contents

Advertisement

Quidway S3700 Series Ethernet Switches
Configuration Guide - Device Management
5.
6.
7.
Configuration Files
Configuration file of the Switch
#
sysname Switch
#
vlan batch 10
#
observe-port 1 interface Ethernet0/0/24
#
traffic classifier c1 operator and
if-match 8021p 6
Issue 01 (2011-07-15)
[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 Ethernet 0/0/1 and Ethernet 0/0/5, and enable Ethernet 0/0/1
and Ethernet 0/0/5 to trust the 802.1p priority of packets.
[Switch] interface ethernet 0/0/1
[Switch-Ethernet0/0/1] traffic-policy p1 inbound
[Switch-Ethernet0/0/1] trust 8021p
[Switch-Ethernet0/0/1] quit
[Switch]interface ethernet 0/0/5
[Switch-Ethernet0/0/5] traffic-policy p1 inbound
[Switch-Ethernet0/0/5] trust 8021p
[Switch-Ethernet0/0/5] quit
Verify the configuration.
# Run the display port-mirroring command. You can check the observing port.
[Switch] display port-mirroring
Stream-mirror:
----------------------------------------------------------------------
Behavior
----------------------------------------------------------------------
b1
----------------------------------------------------------------------
# Run the display traffic policy interface command. You can check the traffic policy
applied to Ethernet 0/0/1 and Ethernet 0/0/5.
[Switch] display traffic policy interface
Interface: Ethernet0/0/1
Direction: Inbound
Policy: p1
Classifier: c1
Operator: AND
Rule(s) :
if-match 8021p 6
Behavior: b1
Mirroring to observe-port 1
Interface: Ethernet0/0/5
Direction: Inbound
Policy: p1
Classifier: c1
Operator: AND
Rule(s) :
if-match 8021p 6
Behavior: b1
Mirroring to observe-port 1
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Direction
Observe-port
-
Ethernet0/0/24
8 Mirroring
112

Advertisement

Table of Contents
loading

Table of Contents