H3C Technologies H3C S10500 Series Switches User Manual

Page 36

Advertising
background image

25

# Create VLAN 20, which is intended to transmit storage traffic.

<SwitchB> system-view

[SwitchB] vlan 20

[SwitchB-vlan20] quit

# Configure interface Ten-GigabitEthernet 1/0/2 as a trunk port, and assign the interface to

VLAN 20.

[SwitchB] interface ten-gigabitethernet 1/0/2

[SwitchB-Ten-GigabitEthernet1/0/2] port link-type trunk

[SwitchB-Ten-GigabitEthernet1/0/2] port trunk permit vlan 20

[SwitchB-Ten-GigabitEthernet1/0/2] quit

c.

Configure PFC:
# Forcibly enable PFC on interface Ten-GigabitEthernet 1/0/2.

[SwitchB] interface ten-gigabitethernet 1/0/2

[SwitchB-Ten-GigabitEthernet1/0/2] priority-flow-control enable

# Enable PFC for 802.1p priority 3 on the interface.

[SwitchB-Ten-GigabitEthernet1/0/2] priority-flow-control no-drop dot1p 3

# Configure the interface to trust the 802.1p priority carried in incoming packets.

[SwitchB-Ten-GigabitEthernet1/0/2] qos trust dot1p

[SwitchB-Ten-GigabitEthernet1/0/2] quit

d.

Configure FCoE:
# Configure the switch to operate in FCF mode and create VSAN 10.

<SwitchB> system-view

[SwitchB] fcoe-mode fcf

[SwitchB] vsan 10

[SwitchB-vsan10] quit

# Create interface VFC 2, and configure the mode of VFC 2 as E.

[SwitchB] interface vfc 2

[SwitchB-Vfc2] fc mode e

# Bind VFC 2 to interface Ten-GigabitEthernet 1/0/2, and assign VFC 2 to VSAN 10 as a
trunk port.

[SwitchB-Vfc2] bind interface ten-gigabitethernet 1/0/2

[SwitchB-Vfc2] port trunk vsan 10

[SwitchB-Vfc2] quit

# Enable FCoE for VLAN 20 and map VLAN 20 to VSAN 10.

[SwitchB] vlan 20

[SwitchB-vlan20] fcoe enable vsan 10

[SwitchB-vlan20] quit

# Permit members in the default zone to access each other. By default, the server and disk
belong to the default zone and members in the default zone are not permitted to access each

other. For more information about zones, see "

Configuring FC zones

."

[SwitchB] vsan 10

[SwitchB-vsan10] zone default-zone permit

[SwitchB-vsan10] quit

Advertising