Huawei Quidway S9300 Configuration Manual page 128

Terabit routing switch device management
Table of Contents

Advertisement

Quidway S9300 Terabit Routing Switch
Configuration Guide - Device Management
[Switch-GigabitEthernet1/0/1] port trunk allow-pass vlan 2
[Switch-GigabitEthernet1/0/1] quit
[Switch] interface GigabitEthernet 1/0/2
[Switch-GigabitEthernet1/0/2] port link-type trunk
[Switch-GigabitEthernet1/0/2] port trunk pvid vlan 2
[Switch-GigabitEthernet1/0/2] port trunk allow-pass vlan 2
[Switch-GigabitEthernet1/0/2] quit
[Switch] interface GigabitEthernet 1/0/3
[Switch-GigabitEthernet1/0/3] port link-type trunk
[Switch-GigabitEthernet1/0/3] port trunk pvid vlan 2
[Switch-GigabitEthernet1/0/3] port trunk allow-pass vlan 2
[Switch-GigabitEthernet1/0/3] quit
Step 2 Configure an observing port.
# Configure GE 1/0/3 on the Switch as an observing port.
[Switch] observe-port 1 interface GigabitEthernet 1/0/3
Step 3 Create a traffic classifier.
# Create traffic classifier c1 on the Switch and set the traffic classification rule of matching the
packets with the 802.1p priority as 6.
[Switch] traffic classifier c1
[Switch-classifier-c1] if-match 8021p 6
[Switch-classifier-c1] quit
Step 4 Create a traffic behavior.
# Create traffic behavior b1 on the Switch and configure traffic mirroring actions.
[Switch] traffic behavior b1
[Switch-behavior-b1] mirroring to observe-port 1
[Switch-behavior-b1] quit
Step 5 Create a traffic policy and apply it to an interface.
# Create traffic policy p1 on the Switch to bind the traffic classifier and traffic behavior, and
apply the traffic policy to GE 1/0/1 and GE 1/0/2 in the inbound direction to monitor the packets
of the R&D department and marketing department.
[Switch] traffic policy p1
[Switch-trafficpolicy-p1] classifier c1 behavior b1
[Switch-trafficpolicy-p1] quit
[Switch] interface GigabitEthernet 1/0/1
[Switch-GigabitEthernet1/0/1] traffic-policy p1 inbound
[Switch-GigabitEthernet1/0/1] quit
[Switch] interface GigabitEthernet 1/0/2
[Switch-GigabitEthernet1/0/2] traffic-policy p1 inbound
[Switch-GigabitEthernet1/0/2] quit
[Switch] quit
Step 6 Verify the configuration.
# Check the configuration of the traffic classifier.
<Switch> display traffic classifier user-defined c1
User Defined Classifier Information:
# Check the configuration of the traffic policy.
<Switch> display traffic policy user-defined p1
User Defined Traffic Policy Information:
Issue 03 (2011-12-29)
Classifier: c1
Precedence: 5
Operator: OR
Rule(s) : if-match 8021p 6
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
6 Mirroring Configuration
116

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents