beautypg.com

H3C Technologies H3C S5830V2 Series Switches User Manual

Page 82

background image

71

Start to check configuration with next startup configuration file, please

wait.........DONE!

This command will reboot the device. Continue? [Y/N]:y

Now rebooting, please wait...

# Configure the switch to operate in FCF mode.

system-view

[SwitchB] fcoe-mode fcf

# Enable the fabric configuration function for VSAN 1.

[SwitchB] vsan 1

[SwitchB-vsan1] domain configure enable

# Configure the domain ID as 2.

[SwitchB-vsan1] domain-id 2 static

[SwitchB-vsan1] quit

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

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

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

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

[SwitchB-Fc1/0/1] fc mode e

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

[SwitchB-Fc1/0/1] speed auto

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

[SwitchB-Fc1/0/1] port trunk mode on

[SwitchB-Fc1/0/1] port trunk vsan 1

[SwitchB-Fc1/0/1] quit

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

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

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

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

[SwitchB-Fc1/0/2] fc mode e

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

[SwitchB-Fc1/0/2] speed auto

# Configure the trunk mode of interface FC 1/0/2 as On, and assign interface FC 1/0/2 to
VSAN 1 as a trunk port.

[SwitchB-Fc1/0/2] port trunk mode on

[SwitchB-Fc1/0/2] port trunk vsan 1

[SwitchB-Fc1/0/2] quit

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

[SwitchB] vlan 10

[SwitchB-vlan10] fcoe enable vsan 1

[SwitchB-vlan10] quit

# Configure two static routes.

[SwitchB] vsan 1

[SwitchB-vsan1] fc route-static 010000 8 fc 1/0/1

[SwitchB-vsan1] fc route-static 030000 8 fc 1/0/2

3.

Configure Switch C: