62Table 17 Basic access function configurationsFunction DescriptionIP addresses Allows you to remotely manage the switch and use the switch in a network.Static routing Allows the switch to implement routing.VLAN Divides the network into multiple VLANs, and improves data security.MSTP Avoids loops in a network using dual uplinks to provide redundancy.Configuration exampleConfiguring the Telnet login# Enter system view. 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 for the users that log in through user interface VTY 0. Then, all users thatlog in through Telnet can use all commands.[Sysname-ui-vty0] user privilege level 3[Sysname-ui-vty0] quitConfiguring the basic access function• 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 usagein 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 address192.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 2/0/1 to VLAN 10.[Sysname-vlan10] port gigabitethernet 2/0/1[Sysname-vlan10] quit