beautypg.com

Verifying the configuration – H3C Technologies H3C S5830V2 Series Switches User Manual

Page 49

background image

38

[SwitchA-Vfc2] fc mode f

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

[SwitchA-Vfc2] bind interface

ten-gigabitethernet 1/0/2

# Assign VFC 2 to VSAN 20 as a trunk port.

[SwitchA-Vfc2] port trunk vsan 20

[SwitchA-Vfc2] quit

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

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

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

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

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

# Create interface VFC 4.

[SwitchA] interface vfc 4

# Configure the mode of VFC 4 as E.

[SwitchA-Vfc4] fc mode e

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

[SwitchA-Vfc4] bind interface

ten-gigabitethernet 1/0/4

# Assign VFC 4 to VSANs 10 and 20 as a trunk port.

[SwitchA-Vfc4] port trunk vsan 10 20

[SwitchA-Vfc4] quit

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

[SwitchA] interface ten-gigabitethernet 1/0/4

[SwitchA-Ten-GigabitEthernet1/0/4] port link-type trunk

[SwitchA-Ten-GigabitEthernet1/0/4] port trunk permit vlan 10 20

[SwitchA-Ten-GigabitEthernet1/0/4] quit

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

[SwitchA] vlan 10

[SwitchA-vlan10] fcoe enable vsan 10

[SwitchA-vlan10] quit

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

[SwitchA] vlan 20

[SwitchA-vlan20] fcoe enable vsan 20

[SwitchA-vlan20] quit

2.

Configure Switch B in the same way Switch A is configured.

Verifying the configuration

# Display member interfaces of each VSAN on switches, for example, Switch A.

[SwitchA] display vsan port-member

VSAN 1:

Access Ports:

Trunk Ports:

VSAN 10:

Access Ports:

Trunk Ports:

Vfc1