HP 6125XLG R2306-HP 6125XLG Blade Switch FCoE Configuration Guide - Page 50

/6 to trust the 802.1p priority carried in packets., whether to enable PFC

Page 50 highlights

# 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/1/6. [SwitchD] interface ten-gigabitethernet 1/1/6 [SwitchD-Ten-GigabitEthernet1/1/6] qos apply policy plcy outbound [SwitchD-Ten-GigabitEthernet1/1/6] quit # Configure the mapping from 802.1p priority 3 to local precedence 3 in the outbound direction. (This is the default, 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/1/6, and configure queue 3 to use SP queuing. [SwitchD] interface ten-gigabitethernet 1/1/6 [SwitchD-Ten-GigabitEthernet1/1/6] qos wrr byte-count [SwitchD-Ten-GigabitEthernet1/1/6] qos wrr 3 group sp # Enable interface Ten-GigabitEthernet 1/1/6 to automatically negotiate with its peer to decide whether to enable PFC, enable PFC for 802.1p priority 3, and configure Ten-GigabitEthernet 1/1/6 to trust the 802.1p priority carried in packets. [SwitchD-Ten-GigabitEthernet1/1/6] priority-flow-control auto [SwitchD-Ten-GigabitEthernet1/1/6] priority-flow-control no-drop dot1p 3 [SwitchD-Ten-GigabitEthernet1/1/6] qos trust dot1p [SwitchD-Ten-GigabitEthernet1/1/6] 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/1/5, and assign it to VSAN 1 as a trunk port. [SwitchD-Vfc1] bind interface ten-gigabitethernet 1/1/5 [SwitchD-Vfc1] port trunk vsan 1 [SwitchD-Vfc1] quit # Assign interface Ten-GigabitEthernet 1/1/5 to VLAN 10 as a trunk port. [SwitchD] interface ten-gigabitethernet 1/1/5 [SwitchD-Ten-GigabitEthernet1/1/5] port link-type trunk [SwitchD-Ten-GigabitEthernet1/1/5] port trunk permit vlan 10 [SwitchD-Ten-GigabitEthernet1/1/5] 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/1/6, and assign it to VSAN 1 as a trunk port. [SwitchD-Vfc2] bind interface ten-gigabitethernet 1/1/6 [SwitchD-Vfc2] port trunk vsan 1 [SwitchD-Vfc2] quit 44

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127

44
# 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/1/6.
[SwitchD] interface ten-gigabitethernet 1/1/6
[SwitchD-Ten-GigabitEthernet1/1/6] qos apply policy plcy outbound
[SwitchD-Ten-GigabitEthernet1/1/6] quit
# Configure the mapping from 802.1p priority 3 to local precedence 3 in the outbound direction.
(This is the default, 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/1/6, and configure queue 3 to use
SP queuing.
[SwitchD] interface ten-gigabitethernet 1/1/6
[SwitchD-Ten-GigabitEthernet1/1/6] qos wrr byte-count
[SwitchD-Ten-GigabitEthernet1/1/6] qos wrr 3 group sp
# Enable interface Ten-GigabitEthernet 1/1/6 to automatically negotiate with its peer to decide
whether to enable PFC, enable PFC for 802.1p priority 3, and configure Ten-GigabitEthernet
1/1/6 to trust the 802.1p priority carried in packets.
[SwitchD-Ten-GigabitEthernet1/1/6] priority-flow-control auto
[SwitchD-Ten-GigabitEthernet1/1/6] priority-flow-control no-drop dot1p 3
[SwitchD-Ten-GigabitEthernet1/1/6] qos trust dot1p
[SwitchD-Ten-GigabitEthernet1/1/6] 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/1/5, and assign it to VSAN 1 as a trunk
port.
[SwitchD-Vfc1] bind interface ten-gigabitethernet 1/1/5
[SwitchD-Vfc1] port trunk vsan 1
[SwitchD-Vfc1] quit
# Assign interface Ten-GigabitEthernet 1/1/5 to VLAN 10 as a trunk port.
[SwitchD] interface ten-gigabitethernet 1/1/5
[SwitchD-Ten-GigabitEthernet1/1/5] port link-type trunk
[SwitchD-Ten-GigabitEthernet1/1/5] port trunk permit vlan 10
[SwitchD-Ten-GigabitEthernet1/1/5] 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/1/6, and assign it to VSAN 1 as a trunk
port.
[SwitchD-Vfc2] bind interface ten-gigabitethernet 1/1/6
[SwitchD-Vfc2] port trunk vsan 1
[SwitchD-Vfc2] quit