41NOTE:For more information about login methods, see theH3C S10500 Switch Series FundamentalsConfiguration Guide.Configuring the basic access functionWhen the switch with the default settings accesses the network, it can perform basic data transmission.To implement more service requirements, you can configure the basic access function on the switch.Table 13 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.