H3C Technologies H3C S10500 Series Switches User Manual

Page 41

Advertising
background image

30

[SwitchA-Vfc1] port trunk vsan 10

[SwitchA-Vfc1] quit

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

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

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

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

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

# Create interface VFC 2.

[SwitchA] interface vfc 2

# Configure the mode of VFC 2 as F.

[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

Advertising