H3C S7508E-X Installation Manual page 47

Hide thumbs Also See for S7508E-X:
Table of Contents

Advertisement

<Sysname> system-view
# Enter user interface view of VTY 0.
[Sysname] user-interface vty 0
# Configure the authentication mode as password for users logging in through user interface VTY 0.
[Sysname-ui-vty0] authentication-mode password
# Configure the password as hello for users logging in through user interface VTY 0.
[Sysname-ui-vty0] set authentication password cipher hello
# Set the user privilege level to 3 so all Telnet users access VTY 0 can use all commands.
[Sysname-ui-vty0] user privilege level 3
[Sysname-ui-vty0] quit
Configuring the basic network settings
Configure IP addresses.
# Create VLAN-interface 1.
[Sysname] interface vlan-interface 1
# Assign an IP address to VLAN-interface 1 according to the IP network segment distribution and
usage in the current network. 192.168.0.1 is used as an example.
[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 GigabitEthernet 1/0/1 to VLAN 10.
[Sysname-vlan10] port gigabitethernet 1/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 enable
39

Advertisement

Table of Contents
loading

Table of Contents