22
Now rebooting, please wait...
2. Configure VLANs and interfaces:
# Create VLAN 10 and VLAN 20, which are intended to transmit Ethernet data traffic and storage
data traffic, respectively.
<SwitchA> system-view
[SwitchA] vlan 10
[SwitchA-vlan10] quit
[SwitchA] vlan 20
[SwitchA-vlan20] quit
# Configure interface Ten-GigabitEthernet 1/0/1 as a hybrid port.
[SwitchA] interface ten-gigabitethernet 1/0/1
[SwitchA-Ten-GigabitEthernet1/0/1] port link-type hybrid
# Assign Ten-GigabitEthernet 1/0/1 to VLAN 10 as an untagged member.
[SwitchA-Ten-GigabitEthernet1/0/1] port hybrid vlan 10 untagged
# Assign Ten-GigabitEthernet 1/0/1 to VLAN 20 as a tagged member.
[SwitchA-Ten-GigabitEthernet1/0/1] port hybrid vlan 20 tagged
# Set the PVID to VLAN 10 for Ten-GigabitEthernet 1/0/1.
[SwitchA-Ten-GigabitEthernet1/0/1] port hybrid pvid vlan 10
[SwitchA-Ten-GigabitEthernet1/0/1] quit
# Configure interface Ten-GigabitEthernet 1/0/2 as a trunk port.
[SwitchA] interface ten-gigabitethernet 1/0/2
[SwitchA-Ten-GigabitEthernet1/0/2] port link-type trunk
# Assign Ten-GigabitEthernet 1/0/2 to VLAN 20
[SwitchA-Ten-GigabitEthernet1/0/2] port trunk permit vlan 20
[SwitchA-Ten-GigabitEthernet1/0/2] quit
# Configure interface Ten-GigabitEthernet 1/0/3 as a trunk port.
[SwitchA] interface ten-gigabitethernet 1/0/3
[SwitchA-Ten-GigabitEthernet1/0/3] port link-type trunk
# Assign Ten-GigabitEthernet 1/0/3 to VLAN 10.
[SwitchA-Ten-GigabitEthernet1/0/3] port trunk permit vlan 10
[SwitchA-Ten-GigabitEthernet1/0/3] quit
3. Configure DCBX:
# Enable LLDP globally.
[SwitchA] lldp global enable
# Create Ethernet frame header ACL 4000.
[SwitchA] acl number 4000 name DCBX
# Configure the ACL to permit FCoE frames (protocol number is 0x8906).
[SwitchA-acl-ethernetframe-4000] rule 0 permit type 8906 ffff
# Configure the ACL to permit FIP protocol packets (protocol number is 0x8906) (protocol number
is 0x8914) to pass through.
[SwitchA-acl-ethernetframe-4000] rule 5 permit type 8914 ffff
[SwitchA-acl-ethernetframe-4000] quit
# Create a class named DCBX, with the operator of the class as OR.
[SwitchA] traffic classifier DCBX operator or
# Use ACL 4000 as the match criterion of the class.