R211x-HP Flexfabric 11900 FCoE Configuration Guide

50
# Configure the switch to operate in advanced mode, save the configuration, and reboot the
switch. (Skip this step if the switch is operating in advanced mode.)
<SwitchC> system-view
[SwitchC] system-working-mode advance
Do you want to change the system working mode? [Y/N]:y
The system working mode is changed, please save the configuration and reboot the
system to make it effective.
# Configure the switch to operate in FCF mode, and enable the fabric configuration function in
VSAN 1. By default, the fabric configuration function is enabled.
<SwitchC> system-view
[SwitchC] fcoe-mode fcf
[SwitchC] vsan 1
[SwitchC-vsan1] domain configure enable
# Configure the domain ID as 13.
[SwitchC-vsan1] domain-id 13 preferred
Non-disruptive reconfiguration or isolating the switch may be performed. Continu
e? [Y/N]:y
[SwitchC-vsan1] quit
# Enable LLDP globally.
[SwitchC] lldp global enable
# Enable LLDP on interface Ten-GigabitEthernet 1/0/3, and enable the interface to advertise
DCBX TLVs.
[SwitchC] interface ten-gigabitethernet 1/0/3
[SwitchC-Ten-GigabitEthernet1/0/3] lldp enable
[SwitchC-Ten-GigabitEthernet1/0/3] lldp tlv-enable dot1-tlv dcbx
[SwitchC-Ten-GigabitEthernet1/0/3] quit
# Create an Ethernet frame header ACL numbered 4000, and configure two rules in the ACL to
match FCoE frames (protocol type 0x8906) and FIP frames (protocol type 0x8914).
[SwitchC] acl number 4000
[SwitchC-acl-ethernetframe-4000] rule permit type 8906 ffff
[SwitchC-acl-ethernetframe-4000] rule permit type 8914 ffff
[SwitchC-acl-ethernetframe-4000] quit
# Create a class named app_c with the logic OR operator, and specify ACL 4000 as the match
criterion.
[SwitchC] traffic classifier app_c operator or
[SwitchC-classifier-app_c] if-match acl 4000
[SwitchC-classifier-app_c] quit
# Create a behavior named app_b, and configure the action of marking packets with 802.1p
priority 3.
[SwitchC] traffic behavior app_b
[SwitchC-behavior-app_b] remark dot1p 3
[SwitchC-behavior-app_b] quit
# 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.
[SwitchC] qos policy plcy
[SwitchC-qospolicy-plcy] classifier app_c behavior app_b mode dcbx
[SwitchC-qospolicy-plcy] quit