beautypg.com

H3C Technologies H3C S5830V2 Series Switches User Manual

Page 91

background image

80

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

[SwitchA] quit

# Reboot the switch.

reboot

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

[SwitchA] fcoe-mode fcf

# Enable the fabric configuration function for VSAN 1.

[SwitchA] vsan 1

[SwitchA-vsan1] domain configure enable

# Configure the domain ID as 1.

[SwitchA-vsan1] domain-id 1 static

# Enable FSPF globally.

[SwitchA-vsan1] fspf enable

[SwitchA-vsan1] quit

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

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

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

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

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

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

[SwitchA-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.

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

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

# Enable FSPF on interface FC 1/0/1.

[SwitchA-Fc1/0/1] undo fspf silent vsan 1

[SwitchA-Fc1/0/1] quit

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

[SwitchA] vlan 10

[SwitchA-vlan10] fcoe enable vsan 1

[SwitchA-vlan10] quit

2.

Configure Switch B:
# Configure the switch to operate in advanced mode. (Skip this step if the switch is operating in
advanced mode.)

system-view

[SwitchB] system-working-mode advance

Do you want to change the system working mode? [Y/N]:y