The typical configurations of Huawei switches in the Huawei manual are collected and summarized. you can master the following typical configurations of Huawei switches. It takes only a few minutes to learn the typical configurations of Huawei switches. As well as VLAN settings, local connections will also be mentioned in this article.
The typical configuration of Huawei switches begins.
In the typical configuration environment of a Huawei switch, the serial port of the host is connected to the Console port of the Ethernet switch through the configuration cable. Run terminal simulation programs such as Windows super terminals on the host) and set the communication parameters of the terminal: the baud rate is 96 00bit/s, 8-Bit Data bit, 1-bit stop bit, no checksum and no traffic control, and the terminal type is VT100.
When the Ethernet switch is powered on, the terminal displays the self-check information of the Ethernet switch. After the self-check is completed, the user is prompted to press Enter. a command line prompt will appear, as shown in <Quidway> ). Type a command to configure the Ethernet switch or view the running status of the Ethernet switch. You can enter "? "
Typical configuration command view of Huawei Switches
◆ User view (view the simple operation status and statistical information of a vswitch) <Quidway>
◆ System view (configure system parameters) [Quidway]: In the user view, type system-view
◆ Ethernet port view (configuring ethernet port parameters) [Quidway-Ethernet0/1]: type interface ethernet 0/1 in System View
◆ VLAN view (configuration VLAN parameters) [Quidway-Vlan1]: in the System View, type vlan 1
◆ VLAN interface view (configure VLAN and VLAN convergence corresponding IP interface parameters) [Quidway-Vlan-interface1]: in the System View, type interface vlan-interface 1
◆ Local user view (configure local user parameters) [Quidway-luser-user1]: Type local-useruser1 under System View
◆ User interface view (configure user interface parameters) [Quidway-ui0]: type user-interface in System View
Other commands for typical configuration of Huawei Switches
Set the system time and time zone <Quidway> clock time Beijing? Add 8
<Quidway> clock datetime 12:00:00 2005/01/23
Set the vswitch name [Quidway] sysname TRAIN-3026-1 [TRAIN-3026-1]
Configure user logon to [Quidway] user-interface vty 0 4
[Quidway-ui-vty0] authentication-mode scheme
Create a local user [Quidway] local-user huawei
[Quidway-luser-huawei] password simple huawei
[Quidway-luser-huawei] service-type telnet level 3
VLAN configuration for Huawei Switches
"Configure Environment Parameters 』
SwitchA port E0/1 belongs to VLAN2, and E0/2 belongs to VLAN3
"Networking requirements 』
Add vswitch ports E0/1 to VLAN2 and E0/2 To VLAN3
Data configuration steps
"VLAN configuration process 』
◆ By default, all ports belong to VLAN 1 and the port is an access port. Only one access port can belong to one vlan;
◆ If the port is an access port, when the port is added to another vlan, the system automatically deletes the port from the original vlan;
◆ Except for VLAN1, if vlan xx does not exist, type vlan xx in the System View to create vlan xx and enter the VLAN view. If vlan xx already exists, enter the VLAN view.
SwitchA configurations]
◆ Create and enter) vlan2 [SwitchA] vlan 2
◆ Add port E0/1 to vlan2 [SwitchA-vlan2] port ethernet 0/1
◆ Create into) vlan3 [SwitchA-vlan2] vlan 3
◆ Add port E0/2 To vlan3 [SwitchA-vlan3] port ethernet 0/2