H3C Technologies H3C S10500 Series Switches User Manual
Page 33
![background image](https://www.manualsdir.com/files/812733/content/doc033.png)
22
[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 interface Ten-GigabitEthernet 1/0/1 to VLAN 10 as an untagged member.
[SwitchA-Ten-GigabitEthernet1/0/1] port hybrid vlan 10 untagged
# Assign interface 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 interface 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, and assign the interface to
VLAN 20.
[SwitchA] interface ten-gigabitethernet 1/0/2
[SwitchA-Ten-GigabitEthernet1/0/2] port link-type trunk
[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, and assign the interface to
VLAN 10.
[SwitchA] interface ten-gigabitethernet 1/0/3
[SwitchA-Ten-GigabitEthernet1/0/3] port link-type trunk
[SwitchA-Ten-GigabitEthernet1/0/3] port trunk permit vlan 10
[SwitchA-Ten-GigabitEthernet1/0/3] quit
c.
Configure DCBX:
# Enable LLDP globally.
[SwitchA] lldp global enable
# Create Ethernet frame header ACL 4000.
[SwitchA] acl number 4000 name DCBX
# Configure ACL 4000 to permit FCoE packets (whose protocol number is 0x8906) and FIP
protocol packets (whose protocol number is 0x8914) to pass through.
[SwitchA-acl-ethernetframe-4000] rule 0 permit type 8906 ffff
[SwitchA-acl-ethernetframe-4000] rule 5 permit type 8914 ffff
[SwitchA-acl-ethernetframe-4000] quit
# Create a class named DCBX, specify the operator of the class as OR, and use ACL 4000 as
the match criterion of the class.
[SwitchA] traffic classifier DCBX operator or
[SwitchA-classifier-DCBX] if-match acl 4000
[SwitchA-classifier-DCBX] quit
# Create a behavior named DCBX, and configure the behavior to mark packets with 802.1p
priority value 3.
[SwitchA] traffic behavior DCBX
[SwitchA-behavior-DCBX] remark dot1p 3
[SwitchA-behavior-DCBX] quit
# Create a QoS policy named DCBX, associate class DCBX with traffic behavior DCBX in the
QoS policy, and specify that the association apply to DCBX.