H3C Technologies H3C S10500 Series Switches User Manual

Page 58

Advertising
background image

47

<SwitchB> system-view

[SwitchB] fcoe-mode fcf

[SwitchB] vsan 1

[SwitchB-vsan1] undo domain configure enable

# Configure a fabric name.

[SwitchA-vsan1] fabric-name 11:11:11:11:11:11:11:11

# Set the domain ID to 2.

[SwitchB-vsan1] domain-id 2 static

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

[Y/N]:y

[SwitchB-vsan1] quit

# Create interface VFC 1, and configure it to operate in F mode.

[SwitchB] interface vfc 1

[SwitchB-Vfc1] fc mode f

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

[SwitchB-Vfc1] bind interface ten-gigabitethernet1/0/1

[SwitchB-Vfc1] port trunk vsan 1

[SwitchB-Vfc1] quit

# Configure Ten-GigabitEthernet 1/0/1 as a trunk port, and assign the port to VLAN 20.

[SwitchB] vlan 20

[SwitchB-Vlan20] quit

[SwitchB] interface ten-gigabitethernet1/0/1

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

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

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

# Create interface VFC 2, and configure it to operate in E mode.

[SwitchB] interface vfc 2

[SwitchB-Vfc2] fc mode e

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

[SwitchB-Vfc2] bind interface ten-gigabitethernet1/0/2

[SwitchB-Vfc2] port trunk vsan 1

[SwitchB-Vfc2] quit

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

[SwitchB] vlan 20

[SwitchB-Vlan20] quit

[SwitchB] interface ten-gigabitethernet1/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

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

[SwitchB] vlan 20

[SwitchB-vlan20] fcoe enable vsan 1

[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

."

Advertising