Configuring rscn aggregation, Rscn overview – H3C Technologies H3C S12500-X Series Switches User Manual

Page 61

Advertising
background image

52

# Create a QoS policy named plcy, and associate the class app_c with the behavior app_b in the

QoS policy, specifying that the class-behavior association applies only to DCBX.

[SwitchD] qos policy plcy

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

[SwitchD-qospolicy-plcy] quit

# Apply the QoS policy plcy to the outbound direction of interface Ten-GigabitEthernet 1/0/2.

[SwitchD] interface ten-gigabitethernet 1/0/2

[SwitchD-Ten-GigabitEthernet1/0/2] qos apply policy plcy outbound

[SwitchD-Ten-GigabitEthernet1/0/2] quit

# Map 802.1p priority 3 to local precedence 3 in the outbound direction. (This is the default

mapping, and you can modify the mapping as needed.)

[SwitchD] qos map-table dot1p-lp

[SwitchD-maptbl-out-dot1p-lp] import 3 export 3

[SwitchD-maptbl-out-dot1p-lp] quit

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

[SwitchD] interface ten-gigabitethernet 1/0/2

[SwitchD-Ten-GigabitEthernet1/0/2] qos wrr byte-count

[SwitchD-Ten-GigabitEthernet1/0/2] qos wrr 3 group sp

# Enable interface Ten-GigabitEthernet 1/0/2 to automatically negotiate with its peer to decide
whether to enable PFC, enable PFC for 802.1p priority 3, and configure Ten-GigabitEthernet

1/0/2 to trust the 802.1p priority carried in packets.

[SwitchD-Ten-GigabitEthernet1/0/2] priority-flow-control auto

[SwitchD-Ten-GigabitEthernet1/0/2] priority-flow-control no-drop dot1p 3

[SwitchD-Ten-GigabitEthernet1/0/2] qos trust dot1p

[SwitchD-Ten-GigabitEthernet1/0/2] quit

# Create interface VFC 1, and configure it to operate in E mode.

[SwitchD] interface vfc 1

[SwitchD-Vfc1] fc mode e

# Bind interface VFC 1 to interface Ten-GigabitEthernet 1/0/1, and assign it to VSAN 1 as a trunk
port.

[SwitchD-Vfc1] bind interface ten-gigabitethernet 1/0/1

[SwitchD-Vfc1] port trunk vsan 1

[SwitchD-Vfc1] quit

# Assign interface Ten-GigabitEthernet 1/0/1 to VLAN 10 as a trunk port.

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

[SwitchD-Ten-GigabitEthernet1/0/1] port link-type trunk

[SwitchD-Ten-GigabitEthernet1/0/1] port trunk permit vlan 10

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

# Create interface VFC 2, and configure it to operate in F mode.

[SwitchD] interface vfc 2

[SwitchD-Vfc2] fc mode f

# Bind interface VFC 2 to interface Ten-GigabitEthernet 1/0/2, and assign it to VSAN 1 as a trunk
port.

[SwitchD-Vfc2] bind interface ten-gigabitethernet 1/0/2

[SwitchD-Vfc2] port trunk vsan 1

[SwitchD-Vfc2] quit

Advertising
This manual is related to the following products: