H3C Technologies H3C S5830V2 Series Switches User Manual
Page 35
24
Now rebooting, please wait...
2.
Configure VLANs and interfaces:
# Create VLAN 10 and 20, which are intended to transmit Ethernet data traffic and storage traffic,
respectively.
[Sysname] vlan 10
[Sysname-vlan10] quit
[Sysname] vlan 20
[Sysname-vlan20] quit
# Configure interface Ten-GigabitEthernet 1/0/1 as a hybrid port.
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] port link-type hybrid
# Assign interface Ten-GigabitEthernet 1/0/1 to VLAN 10 as an untagged member.
[Sysname-Ten-GigabitEthernet1/0/1] port hybrid vlan 10 untagged
# Assign interface Ten-GigabitEthernet 1/0/1 to VLAN 20 as a tagged member.
[Sysname-Ten-GigabitEthernet1/0/1] port hybrid vlan 20 tagged
# Configure VLAN 10 as the PVID of interface Ten-GigabitEthernet 1/0/1.
[Sysname-Ten-GigabitEthernet1/0/1] port hybrid pvid vlan 10
[Sysname-Ten-GigabitEthernet1/0/1] quit
# Configure interface Ten-GigabitEthernet 1/0/3 as a trunk port, and assign the interface to
VLAN 10.
[Sysname] interface ten-gigabitethernet 1/0/3
[Sysname-Ten-GigabitEthernet1/0/3] port link-type trunk
[Sysname-Ten-GigabitEthernet1/0/3] port trunk permit vlan 10
[Sysname-Ten-GigabitEthernet1/0/3] quit
3.
Configure DCBX:
# Enable LLDP globally.
[Sysname] lldp global enable
# Create Ethernet frame header ACL 4000.
[Sysname] 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.
[Sysname-acl-ethernetframe-4000] rule 0 permit type 8906 ffff
[Sysname-acl-ethernetframe-4000] rule 5 permit type 8914 ffff
[Sysname-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.
[Sysname] traffic classifier DCBX operator or
[Sysname-classifier-DCBX] if-match acl 4000
[Sysname-classifier-DCBX] quit
# Create a behavior named DCBX, and configure the behavior to mark packets with 802.1p
priority value 3.
[Sysname] traffic behavior DCBX
[Sysname-behavior-DCBX] remark dot1p 3
[Sysname-behavior-DCBX] quit