beautypg.com

H3C Technologies H3C S5830V2 Series Switches User Manual

Page 215

background image

204

[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

4.

Configure FC and 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

# Change Ethernet interface Ten-GigabitEthernet 1/0/1 into FC interface FC 1/0/1.

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

[SwitchC-Ten-GigabitEthernet1/0/1] port-type fc

# Configure the mode of interface FC 1/0/1 as F.

[SwitchC-Fc1/0/1] fc mode f

# Configure interface FC 1/0/1 to autonegotiate the speed.

[SwitchC-Fc1/0/1] speed auto

# Configure interface FC 1/0/1 to trust the 802.1p priorities carried in incoming packets.

[SwitchC-Fc1/0/1] qos trust dot1p

# Assign interface FC 1/0/1 to VSAN 100 as an access port.

[SwitchC-Fc1/0/1] port access vsan 100

# Enable FSPF for interface FC 1/0/1.

[SwitchC-Fc1/0/1] undo fspf silent vsan 100

[SwitchC-Fc1/0/1] 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.