beautypg.com

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

Page 46

background image

35

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

[SwitchA-Ten-GigabitEthernet1/0/2] port-type fc

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

[SwitchA-Fc1/0/2] fc mode f

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

[SwitchA-Fc1/0/2] speed auto

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

[SwitchA-Fc1/0/2] port access vsan 20

[SwitchA-Fc1/0/2] quit

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

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

[SwitchA-Ten-GigabitEthernet1/0/4] port-type fc

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

[SwitchA-Fc1/0/4] fc mode e

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

[SwitchA-Fc1/0/4] speed auto

# Configure the trunk mode of interface FC 1/0/4 as On, and assign interface FC 1/0/4 to
VSANs 10 and 20 as a trunk port.

[SwitchA-Fc1/0/4] port trunk mode on

[SwitchA-Fc1/0/4] port trunk vsan 10 20

[SwitchA-Fc1/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

# Enable FCoE for VLAN 30, and map VLAN 30 to VSAN 1.

[SwitchA] vlan 30

[SwitchA-vlan30] fcoe enable vsan 1

[SwitchA-vlan30] quit

2.

Configure Switch B in the same way Switch A is configured. (Details not shown.)

Verifying the configurations

# 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:

Fc1/0/1

Trunk Ports: