Verifying the configuration, How qinq works – H3C Technologies H3C S12500-X Series Switches User Manual

Page 189

Advertising
background image

178

[SwitchA] traffic classifier app_c operator or

[SwitchA-classifier-app_c] if-match acl 4000

[SwitchA-classifier-app_c] quit

# Create a traffic behavior named app_b, and configure the traffic behavior to mark packets with
802.1p priority value 3.

[SwitchA] traffic behavior app_b

[SwitchA-behavior-app_b] remark dot1p 3

[SwitchA-behavior-app_b] quit

# Create a QoS policy named plcy, associate class app_c with traffic behavior app_b in the QoS
policy, and apply the association to DCBX.

[SwitchA] qos policy plcy

[SwitchA-qospolicy-plcy] classifier app_c behavior app_b mode dcbx

[SwitchA-qospolicy-plcy] quit

# Apply the policy named plcy to the outgoing traffic of interface Ten-GigabitEthernet 1/0/1.

[SwitchA] interface ten-gigabitethernet 1/0/1

[SwitchA-Ten-GigabitEthernet1/0/1] qos apply policy plcy outbound

[SwitchA-Ten-GigabitEthernet1/0/1] quit

3.

Configure ETS parameters:
# Configure the 802.1p-to-local priority mapping table to map 802.1p priority value 3 to local
precedence 3. (This is the default mapping table. You can modify this configuration as needed.)

[SwitchA] qos map-table dot1p-lp

[SwitchA-maptbl-dot1p-lp] import 3 export 3

[SwitchA-maptbl-dot1p-lp] quit

# Configure interface Ten-GigabitEthernet 1/0/1 to trust the 802.1p priority carried in packets.

[SwitchA] interface ten-gigabitethernet 1/0/1

[SwitchA-Ten-GigabitEthernet1/0/1] qos trust dot1p

# Enable byte-count WRR queuing on interface Ten-GigabitEthernet 1/0/1, and configure queue
3 on the interface to use strict priority queuing.

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr byte-count

[SwitchA-Ten-GigabitEthernet1/0/1] qos wrr 3 group sp

4.

Enable interface Ten-GigabitEthernet 1/0/1 to automatically negotiate with its peer to decide

whether to enable PFC, and enable PFC for 802.1 priority 3.

[SwitchA-Ten-GigabitEthernet1/0/1] priority-flow-control auto

[SwitchA-Ten-GigabitEthernet1/0/1] priority-flow-control no-drop dot1p 3

Verifying the configuration

Through the specific menu on the DC server, you can see the data exchange procedure between the DC
server and Switch A. Take a Qlogic adapter on the DC server, for example. The data exchange

procedure is as follows:

------------------------------------------------------

DCBX Parameters Details for CNA Instance 0 - QLE8142

------------------------------------------------------

Mon May 17 10:00:50 2010

DCBX TLV (Type-Length-Value) Data

=================================

Advertising
This manual is related to the following products: