H3C Technologies H3C S5830V2 Series Switches User Manual
Page 193

182
# Save the configuration.
[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.
[SwitchA] quit
# Reboot the switch.
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...
2.
Configure VLANs and interfaces:
# Create VLAN 1001 and 4001, which are intended to transmit Ethernet traffic and storage traffic,
respectively.
[SwitchA] vlan 1001
[SwitchA-vlan1001] description ToLAN
[SwitchA-vlan1001] quit
[SwitchA] vlan 4001
[SwitchA-vlan4001] description ToSAN
[SwitchA-vlan4001] 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
# Assign Ten-GigabitEthernet 1/0/1 to VLAN 1001 as an untagged member.
[SwitchA-Ten-GigabitEthernet1/0/1] port hybrid vlan 1001 untagged
# Assign Ten-GigabitEthernet 1/0/1 to VLAN 4001 as a tagged member.
[SwitchA-Ten-GigabitEthernet1/0/1] port hybrid vlan 4001 tagged
# Configure VLAN 1001 as the PVID of Ten-GigabitEthernet 1/0/1.
[SwitchA-Ten-GigabitEthernet1/0/1] port hybrid pvid vlan 1001
# Enable STP on Ten-GigabitEthernet 1/0/1.
[SwitchA-Ten-GigabitEthernet1/0/1] stp enable
[SwitchA-Ten-GigabitEthernet1/0/1] quit
# Configure interface Ten-GigabitEthernet 1/0/10 as a trunk port, and assign the interface to
VLAN 1001.
[SwitchA] interface ten-gigabitethernet 1/0/10
[SwitchA-Ten-GigabitEthernet1/0/10] port link-type trunk
[SwitchA-Ten-GigabitEthernet1/0/10] port trunk permit vlan 1001
# Enable STP on Ten-GigabitEthernet 1/0/10.
[SwitchA-Ten-GigabitEthernet1/0/10] stp enable
[SwitchA-Ten-GigabitEthernet1/0/10] quit