The initial configuration of the Huawei switch is a novice. When I first came into contact with the switch, I was confused. But I knew that it would be a waste of water or something to learn sooner or later. Chapter 1 describes the simplest configuration of a switch, the most common device in a LAN. The devices in www.2cto.com are all Huawei devices. It is a headache for articles about Cisco switches everywhere on the Internet. First, we recommend a small software: HW-routeSim. My version is 3.0. You can search for the Huawei simulator on 51cto. It is said that it is very mentally retarded. I use it very well anyway. A switch is the most commonly used device in a LAN. The first lesson is to present the configuration of the switch. Think about the initial configuration of the switch. 1. Name it. 2. Design a password with administrator permissions. 3. You must have a password when someone logs on to your vswitch. At the same time, you need several administrators online at the same time. 4. vswitches generally have an initial vlan1, so you need to give it a management address to facilitate remote login to the Management Switch, saving the trouble of getting the root console line to run to the data center. 5. Set up a vlan. Someone may ask what the vlan is. In my current rough understanding, vlan is mainly used to divide user groups and facilitate management. Just like a child, there are several classes in kindergarten. Now, for the above five purposes, we have started to configure the switch, and have been learning c ++ and java, and are used to // commenting. Www.2cto.com // Switch> system [quidway] sysname s2000 // change the name of the Switch to s2000. [s2000] super password 111/* administrator password: 111, super is a keyword of permission. Of course, you can set a password for civilian permission. Please use Baidu keywords on your own. */[S2000] user-interface vty 0 1 // allows two virtual terminals to be online at the same time, several of you guys [s2000-ui-vty0-1] authentication-mode password // password authentication mode [s2000-ui-vty0-1] set authentication-mode password simple 222 // password 222 [s2000-ui-vty0-1] user privilege 3 // virtual terminal permissions, level 3 up to [s2000-ui-vty0-1] quit [s2000] quit <s2000> www.2cto.com login into the switch to enter the password, create vlan2, here mainly involves two methods to merge the port into the specified vlan, the first is to use the port ethernet0/* command after entering vlan2, and the other is to enter the port, that is, interface ethernet0/*, using port access Vlan * command to merge the port into the specified vlanPassword: 111 [s2000] vlan 2 [s2000-vlan2] port ethernet0/2 [s2000-vlan2] port ethernet0/4 to ethernet0/6 [s2000-vlan2] quit [s2000] interface ethernet0/3 [s2000-ethernet0/3] port access vlan 2 [s2000-ethernet0/3] quit/* go to the default vlan1 to set the management ip of the switch, it should be emphasized that a switch is a device working at the link layer. The address category of the link layer is a mac address, while the IP address category is a network layer. The IP address set here is not the IP address configured for the switch port, configure the vlan. */[S2000] interface vlan 1 [s2000-Vlan-interface] ip address 192.168.3.1 255.255.255.0 [s2000-vlan-interface] quit <s2000> system this switch configuration is complete, after doing so, what can we do with this switch? First, we can insert the computer into the vlan port, configure the ip address of the same network segment, and then the computer can communicate with each other on the premise that the same network segment is used. For example, after the above configuration, both the two ports are vlan2 and the three ports are vlan1. when the computer is inserted into vlan1, you can use the telnet command to change the switch configuration. The password is 222.