Configuring switch a – H3C Technologies H3C S10500 Series Switches User Manual
Page 157
![background image](https://www.manualsdir.com/files/812733/content/doc157.png)
146
Configuring Switch A
1.
Configure the switch to operate in advanced mode, save the configuration, and reboot the switch.
(Skip this step if the switch is operating in advanced mode.)
[SwitchA] system-working-mode advance
Do you want to change the system working mode? [Y/N]:y
The system working mode is changed, please save the configuration and reboot the system
to make it effective.
[SwitchA] save
The current configuration will be written to the device. Are you sure? [Y/N]:y
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.
Slot 1:
Save next configuration file successfully.
[SwitchA] quit
Start to check configuration with next startup configuration file, please
wait.........DONE!
Current configuration will be lost after the reboot, save current configuration?
[Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait...
Configuration is saved to flash successfully.
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
2.
Configure VLANs and interfaces:
# Create VLAN 1001, 4001, and 4002 which are intended to transmit Ethernet traffic, storage
traffic, and storage traffic, respectively.
[SwitchA] vlan 1001
[SwitchA-vlan1001] description ToLAN
[SwitchA-vlan1001] quit
[SwitchA] vlan 4001
[SwitchA-vlan4001] description ToSAN_A
[SwitchA-vlan4001] quit
[SwitchA] vlan 4002
[SwitchA-vlan4002] description ToSAN_B
[SwitchA-vlan4002] quit
# Enable STP globally.
[SwitchA] stp global enable
# Configure interface Ten-GigabitEthernet 1/0/1 as a hybrid port.
[SwitchA] interface ten-gigabitethernet 1/0/1
[SwitchA-Ten-GigabitEthernet1/0/1] port link-type hybrid