6-5
[Sysname-line-vty0] user-role network-admin
[Sysname-line-vty0] quit
Configuring the basic network settings
•
Configure IP addresses
# Create VLAN-interface 1.
[Sysname] interface vlan-interface 1
# Assign an IP address, for example, 192.168.0.1, to VLAN-interface 1.
[Sysname-Vlan-interface1] ip address 192.168.0.1 24
[Sysname-Vlan-interface1] quit
•
Configure static routes
# Configure a static route, with the destination IP address 172.16.1.0 and the next hop IP
address 192.168.0.2.
[Sysname] ip route-static 172.16.1.0 255.255.255.0 192.168.0.2
•
Configure VLANs
# Create VLAN 10 and enter its view.
[Sysname] vlan 10
[Sysname-vlan10]
# Assign port Ten-GigabitEthernet 3/0/1 to VLAN 10.
[Sysname-vlan10] port ten-gigabitethernet 3/0/1
[Sysname-vlan10] quit
•
Configure MSTP
# Create an MST region named
example
, map VLAN 10 to instance 1, and set the MSTP
revision level to 0.
[Sysname] stp region-configuration
[Sysname-mst-region] region-name example
[Sysname-mst-region] instance 1 vlan 10
[Sysname-mst-region] revision-level 0
# Activate the MST region configuration.
[Sysname-mst-region] active region-configuration
[Sysname-mst-region] quit
# Configure the switch as the primary root bridge of instance 1.
[Sysname] stp instance 1 root primary
# Enable MSTP globally.
[Sysname] stp global enable
For more information about these features, see
H3C S12500G-AF Switch Series Configuration
Guides
.
Verifying the network configuration
To verify the software version and network configuration, execute
display
commands in any view.
Task
Command
Display the name, model, and system software version of the
switch
display version
Display the current configuration of the switch
display
current-configuration
Summary of Contents for S12500G-AF Series
Page 32: ...3 15 Figure3 16 Connecting the grounding cable to a grounding strip 1 2 4 3 6 5 ...
Page 49: ...4 16 Figure4 16 Connecting an SFP DAC cable 1 Pull latch 2 Connector 1 2 ...
Page 92: ...A 12 FigureA 14 Example of a device label ...
Page 104: ...C 6 FigureC 5 Securing the chassis to the pallet base S12504G AF switch 1 1 2 2 1 ...