beautypg.com

H3C Technologies H3C S5830V2 Series Switches User Manual

Page 187

background image

176

[SwitchC] interface ten-gigabitethernet 1/0/8

[SwitchC-Ten-GigabitEthernet1/0/8] priority-flow-control enable

[SwitchC-Ten-GigabitEthernet1/0/8] priority-flow-control no-drop dot1p 3

[SwitchC-Ten-GigabitEthernet1/0/8] qos trust dot1p

[SwitchC-Ten-GigabitEthernet1/0/8] quit

5.

Configure FCoE:
# Configure the switch to operate in FCF mode.

[SwitchC] fcoe-mode fcf

# Enable the fabric configuration function for VSAN 100 (this step is optional because the fabric
configuration function is enabled by default).

[SwitchC] vsan 100

[SwitchC-vsan100] domain configure enable

# Set the priority to 1 for the switch, so the switch can be elected as the principal switch.

[SwitchC-vsan100] priority 1

# Configure the domain ID as 1 for the switch.

[SwitchC-vsan100] domain-id 1 preferred

Non-disruptive reconfiguration or isolating the switch may be performed. Continue?

[Y/N]:y

# Enable FSPF globally.

[SwitchC-vsan100] fspf enable

[SwitchC-vsan100] quit

# Create interface VFC 1.

[SwitchC] interface vfc 1

# Configure the mode of VFC 1 as F.

[SwitchC-Vfc1] fc mode f

# Bind VFC 1 to interface Ten-GigabitEthernet 1/0/1.

[SwitchC-Vfc1] bind interface ten-gigabitethernet 1/0/1

# Assign VFC 1 to VSAN 100 as a trunk port.

[SwitchC-Vfc1] port trunk vsan 100

[SwitchC-Vfc1] quit

# Create interface VFC 10.

[SwitchC] interface vfc 10

# Configure the mode of VFC 10 as E.

[SwitchC-Vfc10] fc mode e

# Bind VFC 10 to Layer 2 aggregate interface 1.

[SwitchC-Vfc10] bind interface bridge-aggregation 1

# Assign VFC 10 to VSAN 100 as a trunk port.

[SwitchC-Vfc10] port trunk vsan 100

# Enable FSPF for VFC 10.

[SwitchC-Vfc10] undo fspf silent vsan 100

[SwitchC-Vfc10] quit

# Enable FCoE for VLAN 4001, and map VLAN 4001 to VSAN 100.

[SwitchC] vlan 4001

[SwitchC-vlan4001] fcoe enable vsan 100

[SwitchC-vlan4001] quit