华为交换机配置命令大全(HUAWEI switch configuration commands)
华为交换机配置命令大全(HUAWEI switch configuration commands)
HUAWEI switch configuration commands
[???????????????????!
21???? IT?????????? lambda?
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
Cisco??? Que???? from???
????????????????? very?? 100%???
2008-10-7 17:41:33 kept anonymous community recommended to friends in the
Welcome to the HUAWEI community forum, and interact with 2 million technical staff > > Enter
Product profile 1.1
With the Internet (Internet) the rapid development, people's demand for communication has gradually changed from the traditional telephone, fax, telex and other services to the low-speed high-speed Internet access, video phone, video on demand, extending the area of broadband service, the user demand for Internet rate is also increasing. In this condition, the Ethernet access because of its low cost, high speed, simple to use and much market attention. Facing with the rapid
development of broadband network construction, HUAWEI company according to the customer demand of different types, the launch of the Quidway series Ethernet switches.
Quidway S2008B / Quidway S2016B / Quidway S2026B Ethernet switch is HUAWEI self-developed three two line speed Ethernet switch, it can not only provide the traditional Ethernet function, also features for corridor level switches from the software, optimize the design of hardware structure and so on, so it is especially suitable for Ethernet Broadband Access requirements.
Quidway S2008B / Quidway S2016B Ethernet switch for cassette equipment 44mm high, can be wall mounted.S2008B Ethernet switch provides 8 fixed 10/100Base-TX adaptive Ethernet switch ports, S2016B provides 16 fixed 10/100Base-TX adaptive port, in addition provides both 1 10/100Base-TX and 1 adaptive uplink port used to configure the Console port S2016B Ethernet also. The switch also provides 1 expansion module slots, optional plug 100Base-FX multimode fiber interface module or 100Base-FX single-mode optical fiber interface module.
Quidway S2026B for Ethernet switch box type equipment 42mm high, can be wall installation, can also be through the 19 inch rack mount.Quidway S2026B Ethernet switch provides 24 fixed adaptive 10/100Base-TX port, 1 100Base-TX upstream port (actually 1 100Base-TX port multiplexing 1 MDIX ports and 1 MDI ports, at the same time only 1) 1, a port used to configure the Console port and 1 expansion module slots, optional plug 100Base-FX multimode fiber interface module or 100Base-FX single-mode optical fiber interface module.
Quidway S2008B / Quidway S2016B / Quidway S2026B Ethernet switch support:
My broadband cell Ethernet access
I enterprise network and campus network
I multicast services to support multicast audio / video services
In this manual, the Quidway S2008B / Quidway S2016B / Quidway S2026B Ethernet switch is referred to as the S2000B series Ethernet switch.
Functional properties list 1.2
Table 1-1 list of functional features
business
Realization
Line speed two layer switching
All ports support wire speed forwarding
Exchange capacity: 1.8 Gbit / S / 3.6 / 5. Gbit / sec
2 Gbps (S2008B / S2016B / S2026B)
Packet forwarding rate: 1.3 marginal outputs / 2.6 marginal outputs / 3.9 marginal outputs (S2008B / S2016B / S2026B)
Exchange mode
Store and forward mode (storage and forward)
VLAN (virtual LAN)
Maximum support for 32 port based VLAN
Quality (quality service)
Set the forwarding priority by port to support 2 priority settings
trunk
S2016B supports the convergence of two ports of Ethernet0/15 and Ethernet0/16
S2026B supports the convergence of two ports of Ethernet0/23 and Ethernet0/24
Port Mirror
Support port based mirroring to copy port specific traffic to the monitoring port
MAC address table
Address self-learning
Address table specification:
4K unicast MAC addresses are supported at most, and 2 multicast MAC addresses (HGMP start will take up ID multicast address of 0), if that address already exists, it will be covered
Flow control
Support for IEEE 802.3 x flow control (full duplex)
Support backpressure flow control (half duplex)
Loading and upgrading
Support through serial port to achieve XModem protocol loading upgrade
Support for remote loading upgrades through the HUAWEI group management protocol HGMP (HUAWEI group management protocol)
Administration
Support command line interface CLI configuration (command line interface)
Support configuration via Console port
Support HGMP customers
Maintain
Support status query information output
Support for remote maintenance via HGMP
Support upstream port remote feeding (limited to S2008B / S2016B DC device)
The second chapter login Ethernet switch
Command line interface 2.1
S2000B series Ethernet switches provide users with a series of configuration commands and command line interfaces to facilitate user configuration and management. Command line interfaces have the following characteristics:
I configured locally through the Console port.
I configured remotely through HGMP.
I configure command level protection to ensure that unauthorized users are not able to access the switches.
My users can type in at any time to get online help.
I provide extensive and detailed debugging information to help diagnose network failures.
I provide functions similar to Doskey that can perform a history
command.
I ordered the line interpreter to take a search method that does not exactly match the keyword. The user simply type the keyword without conflicts, such as the display command, and type disp.
Command line view 2.1.1
Command line view S2000B series Ethernet switch is configured according to different requirements to achieve, between them the relations and differences, for example, to establish a connection to the user view with the S2000B series, it is only a simple function to view the running state and statistical information, then enter into the System-View system view, in view of the system, can type a different command to enter the corresponding view.
The command line provides the following views:
My user view
My system view
My user interface view
My VLAN view
My Ethernet port view
The view relation diagram is shown in figure 2-1:
Fig. 2-1 diagram of view relation
The command view features, commands for entering each view, as shown in table 2-1.
Table 2-1 list of command view features
view
function
Prompt
Enter command
Exit command
User view
View the simple running state and statistics of the switch
View all the running and statistical information of the switch, file management and system management
< Quidway >
To establish a connection with a switch, that is, to enter
Quit disconnects from the switch
System view
Configuring system parameters
[Quidway]
In the user view, type System-View
Quit returns the user view
Return returns the user view
Ethernet port view
Configuring Ethernet port parameters
[Quidway-Ethernet0/1]
Fixed Ethernet port view: type interface ethernet0/1 in the
system view
Quit returns the system view
Return returns the user view
[Quidway-Ethernet1/1]
Extended Ethernet port view: type interface Ethernet 1/1 in
system view
VLAN view
Configuring the VLAN parameter
[Quidway-vlan1]
In the system view, type VLAN 1
Quit returns the system view
Return returns the user view
User interface view
Configuring user interface parameters
[Quidway-ui-aux0]
In the system view, type user-interface assistance
Quit returns the system view
Return returns the user view
Set the user's hierarchical protection password 2.1.2
In order to prevent the illegal invasion of unauthorized users, S2000B series Ethernet switches will be divided into two levels: user visit level and monitoring level. From the serial port Ethernet switch after the saw log on to visit the user, can only execute a simple query; monitoring level users can perform monitoring, configuration, management and other operations.
In using the super command from the visit level users to switch to user level monitoring, to authenticate users, which need to enter the password switch (if the user has to set the password using the command switch super password password). For security, the user cannot see your password on the screen, if less than three times to enter the correct password then, switch to monitor levels of users, or to maintain the original user level unchanged.
Please configure the following configuration in the system view.
Table 2-2 sets up user protected password, operation, command
Switch user level to monitoring level
super
Set toggle user level password
Super password
Cancel toggle user level password
Undo the super password
The parameter meaning in the command reads as follows:
Password: plaintext string, ranging from 1 characters to 16.
And description:
Password case sensitive (1).
(2) if the user has lost the super password, please contact the agent.
Example: set the toggle user level in the system view, and the password is Quidway.
< Quidway > super!
< Quidway > System-View
[Quidway]Quidway super password
Sets the number of rows displayed on one screen of the terminal screen 2.1.3
When a command displays more lines of information than a screen can display, you can use the following command to set the number of lines displayed on the screen at the user's end, so that the information is divided into several sections for easy viewing.
Please configure the following configuration in the user interface view.
Table 2-3 sets the number of terminal screen lines, operations, commands
Sets the number of rows displayed on a screen at the user terminal
Screen-length screen-length
The number of rows displayed on the screen screen of the user terminal is restored as the default value
Undo screen-length
The parameter meaning in the command reads as follows:
The number of rows displayed on one screen of the screen-length: user terminal, with a range of 0512 ~.
By default, the user terminal screen displays 25 rows on one screen.
And description:
Represents the off screen function screen-length 0.
Example: display terminal line screen screen line number is set to 30.
[Quidway] interface assistance
[Quidway-ui-aux0]screen-length 30
2.1.4 command line online help
The command line interface provides several online help:
I totally help
I partly help
Through these various online help, you can get help information, which are described as follows:
Under any view (1), type all commands under the view and their simple description < < >.
< < Quidway >?
Monitoring command:
Debugging enables system debugging
Display running system information. display
View exiting the current command exit
Reset reset slot
Resets all counters to reset the Ethernet card information
Save current configuration save
Super access monitoring views and assigned priority levels
System-View views on the system
Undo cancel current settings
(2) type a command, followed by spaces, and, if the location is a keyword, list all the keywords and their simple descriptions.
< < Quidway > display?
Current-configuration current configuration
Diagnostic-information system information for the diagnosis and treatment of disease
Hgmp hgmp information
Interface, status, and configuration information
Aggregation model link-aggregation port
Mac-address configure the MAC address
The memory information shows that the rule of law and social welfare
Port of display monitor
Qos-info Qos information display
Saved-configuration save configuration information
Version, system, hardware, and software version information
Virtual LAN VLAN configuration information
(3) type a string, followed by <, >, and list all the commands that begin with the string.
< < Quidway > debugg?
Monitoring command:
Debugging enables system debugging
(4) type a command, followed by a string, next to < >, to list all the keywords that the command starts with the string.
< Quidway > display overwrite?
Version, system, hardware, and software version information
(5) the first few letters input a command, type < tab > button will complement the command string.
< Quidway > < tab > magazine
< Quidway > display
And description:
If the command entered with the input letter is not unique, then the command cannot be associated.
Command line error message "2.1.5" is released
The commands that all users type are executed correctly if they are checked by syntax, otherwise they report error information to the user, and common error information is shown in table 2-4.
Table 2-4 command line common error information table, English error information. Wrong reason
Unknown command
No command was found
No keyword found
Parameter type error
Parameter values cross the bounds
Incomplete command
The input command is incomplete
Too many parameters
Too many input parameters
Ambiguous command
The input parameter is ambiguous
2.1.6 history command
The command line interface provides Doskey like functionality that automatically saves the user's history command,
The user can invoke the command history maintained by the command line interface at any time and execute repeatedly. The command line interface can hold up to 10 historical commands for each user. The operation is shown in table 2-5.
Table 2-5 access history commands, actions, keys, results
Access the cursor key on the previous history command
If there is an earlier history command, take the last history command.
Access the cursor key under the next history command
If there is a later command history, it took the next command in history shows:
With the cursor keys on the history command access in Windows 3. X Terminal is effective, but for the super terminal, windows 9 X up and down the cursor keys invalid, this is because the super terminal Windows 9 X made a different interpretation due to the two key, then you can use the key combination Ctrl + < P + N > > and < Ctrl instead of up, down the cursor keys to achieve the same purpose.
2.1.7 editing features
The command line interface provides the basic command editing capabilities that support multiline editing, with a maximum length of 256 characters per command, as shown in table 2-6.
Table 2-6 edit function key function, general button
If the edit buffer is not full, insert to the current cursor position and move the cursor to the right.
Backspace key, Backspace
Removes the previous character of the cursor position and moves the cursor forward.
2.1.8 display features
A pause function is provided at a time when more than one screen is displayed, when the user can have two choices, as shown in table 2-7.
Table 2-7 shows function keys or command functions
When pause show type < Ctrl + C >
Exit display
When pausing, type another key other than < Ctrl + C >
Continue to display the next screen information
Build the configuration environment through the Console port
2.2
Configure the environment to build 2.2.1
The first step: as shown in Figure 2-2, the local configuration environment is established by connecting the PC's serial port with the Console port of the Ethernet switch through the configuration cable.
The second step: run the terminal simulation program on the microcomputer (such as Windows 3). X Terminal or Windows 9 X super terminal, etc., set the terminal communication parameters for baud rate 9600bit / s, 8 bit data bit, 1 bit stop bit, no checksum and no flow control, and select terminal type VT100,
The third step: the terminal shows the Ethernet switch self checking information. After the self-test, the user is prompted to enter the carriage return until a command line prompt (< < Quidway >) appears.
The fourth step: type the command, configure or view the Ethernet switch running status, need help, you can type at any time. For specific commands, please refer to the following chapters.
Configure Console port transfer rate, 2.2.2
When accessing the S2000B series Ethernet switch through the Console port, the user can configure the transmission rate of the Console port using the following command.
Please configure the following configuration in the user interface view.
Console port transfer rate
Configuring the Console port transfer rate
Speed speed-value
The recovery rate for the Console port is the default
Undo speed
The parameter meaning in the command reads as follows:
Speed-value:Console port transmission rate, support for the transmission rate of 9600 bits / sec, 115200 bits / sec.
By default, the Console port has a transmission rate of 9600bit / sec.
Example: the configured Console port has a transmission rate of 9600bit / sec.
[Quidway] 界面辅助
[Quidway - IU - aux0] 速度9600
2.3通过hgmp搭建配置环境 & 说明:
S2000b系列以太网交换机可以采用该方式进行远程配置和维护管理.
Hgmp 2.3.1
简介
华为组管理协议hgmp (华为集团管理协议) 实现对设备的集中管理.目前hgmp有两个版本: v1和v2, s2000b系列支持hgmp v1.hgmp v1分为hgmp server和hgmp client.hgmp server在管理设备上实现, 主要是提供人机命令输入接口, 控制维护命令的显示, 同时提供一定的数据结构以存储其下挂的多台以太网交换机的相关信息.hgmp client则主要要求根据管理设备下发的维护和查询命令作出相应的处理, 同时保证与管理设备之间的通信.s2000b系列作为hgmp客户, 接受管理设备的管理和维护.
通过管理设备维护和管理s2000b系列的过程可以参见管理设备 (例如s3000系列以太网交换机) 的用户手册中hgmp server配置的描述.
配置环境搭建5555 2.3.2
2.3.3 hgmp协议配置.
注意:
S2000b系列以太网交换机作为hgmp client时, 必须要通过固定的上行端口与管理设备相连.
对于s2008b, 这些上行端口包括ethernet0 / 8, Ethernet0 / 9.
对于s2016b, 这些上行端口包括ethernet0 / 15, Ethernet0 / 16,
Ethernet0 / 17, ethernet1 / 1.
对于s2026b, 这些上行端口包括ethernet0 / 23, Ethernet0 / 24,
Ethernet0 / 25, ethernet1 / 1.
必须先启动hgmp, 才可以通过hgmp协议对s2000b系列以太网交换机进行配置.
可以使用下面的命令在s2000b系列以太网交换机上启动hgmp客户.
请在系统视图下进行下列配置.
开启hgmp
Hgmp使
关闭hgmp
Hgmp禁用
使用命令hgmp enable将开启hgmp协议, 需要重启交换机后才能生效, hgmp disable命令亦然.在hgmp协议开启的情况下, shutdown命令在交换机与管理设备相连的上行端口上无效 (即在上行端口上使用shutdown命令后此端口会自动被hgmp协议重新开启).
Hgmp启动后将占用id为0的组播地址 (若该地址已存在, 则被覆盖), 此时用户只能配置一个组播地址
项, 具体配置组播地址的描述请参见本书6.1.3节.
需要注意的是, 设备启动后的hgmp运行状态由上次的hgmp设置决定.在开启或关闭hgmp协议后, 必须重新启动以太网交换机才能生效.
缺省情况下, hgmp是启动的, 即必须通过hgmp server对设备进行
配置.如果想直接通过命令行进行配置, 则必须使用hgmp disable命
令关闭hgmp功能.
第3章端口配置
以太网端口简介3.1
S2008b以太网交换机提供8个固定的10 / 100base - tx自适应端
口, s2016b以太网交换机提供16个固定的10 / 100base - tx自适
应端口,
In addition, both provide 1 10/100Base-TX adaptive uplink port and 1 used to configure the Console port.S2026B Ethernet switch with 24 fixed adaptive 10/100Base-TX port, 1 100Base-TX upstream port (actually 1 100Base-TX uplink port multiplexing 1 MDIX ports and 1 MDI ports at the same time, there are only 1 ports) and 1 for the configuration of the Console port. In addition S2016B / S2026B Ethernet switch also provides 1 expansion module slots, optional plug 100Base-FX multimode fiber interface module or 100Base-FX single-mode optical fiber interface module.
The Ethernet port features supported by the S2000B series Ethernet switches are as follows:
I 10/100Base-TX Ethernet port can work in half duplex, full duplex, auto negotiation mode in auto negotiation mode. Support MDI / MDIX adaptive, and can determine the consultation with other network equipment working mode and rate, automatically select the most appropriate way of working and rate, which greatly simplifies the configuration and management system.
100 L / Base-FX multimode rate and working mode of single Ethernet port without user configuration, the rate was 100Mbit / s,.100Base-FX in full duplex mode multimode Ethernet port can provide 1 megabytes of multimode optical port for the user; 100 Base-FX Ethernet port mode can provide 1 Gigabit single-mode optical port for the user.
The configuration of several Ethernet ports is basically the same, as described below:
(1) the 100Base-TX upstream port of the S2026B Ethernet switch does not support MDI / MDIX adaptation, and the corresponding upstream ports need to be connected according to the network type.
(2) the working mode of the 100 Base-FX multi-mode / single mode Ethernet port is set by the system to 100Mbit / s, full duplex operation mode, and the working mode is not allowed to be set to 10Mbit / s or half duplex mode.
Ethernet port configuration 3.2
To configure the related features of the Ethernet port, first enter the Ethernet port view, and then configure the relevant parameters.
The Ethernet port configuration includes:
I enter the Ethernet port view
I turn on / off the Ethernet port
I set Ethernet ports as self negotiation
I set Ethernet port speed and duplex status
I set Ethernet port traffic control
Access to Ethernet port view 3.2.1
To configure the Ethernet port, you first enter the Ethernet port view.
Please configure the following configuration in the system view.
Access to Ethernet port view
{interface_type interface_num interface_name} | interface
The parameter meaning in the command reads as follows:
Interface_type: port type, there is only Ethernet in the S2000B series Ethernet switch.
Interface_num: port number, the slot number / format.S2008B Ethernet switch port number of the slot number only 0, the port number range slot number range of 1 ~ 9. ~ 1 S2016B Ethernet switch 0, 0 slot number represents the fixed Ethernet port, the port number value range is 1 ~ 17 years old slot number 1, said the expansion of Fast Ethernet interface, the slot number range
of port number only 1.S2026B Ethernet switch is 0 ~ 1, 0 slot number represents the fixed Ethernet port, the port number range of 1 ~ 25 years old;
The slot number 1 extended Ethernet fast port, the port number only 1.
Interface_name: port name, which means port type + port number (slot number / port number).
Example: enter the Ethernet0/3 Ethernet port view.
[Quidway] interface ethernet0/3
[Quidway-Ethernet0/3]
Turn on / off the Ethernet port 3.2.2
After the start of the Ethernet switch, the user can according to the actual need to use the following command to open or close the Ethernet port. When the port work state is not normal, you can use the shutdown command to shut down the port, then use the undo shutdown command to start the port, this is likely to return to normal port.
Close Ethernet port
Shutdown
Open Ethernet port
Cancel shutdown
Save case, port is open.
Example: turn off the Ethernet port Ethernet0/3 and then open the port.
[Quidway-Ethernet0/3] shutdown
[Quidway-Ethernet0/3] undo closed
Set Ethernet port for self negotiation, chapter 3.2.3
You can use the following command set for Ethernet port auto negotiation mode. When the Ethernet port is set to auto negotiation mode, speed and duplex state by the port of port and port both automatically negotiated.
Set Ethernet ports as self negotiation
Negotiation-auto
It is important to note that when the Ethernet port speed and duplex status are set up, it is automatically closed by negotiation.
Example: port port Ethernet0/3 is set to self negotiation.
[Quidway-Ethernet0/3]negotiation-auto
Set Ethernet port speed and duplex status 3.2.4 chapter
You can set the Ethernet port speed and duplex status using the following commands.
Rate of setting Ethernet ports
The speed of | {10 100}
Sets the duplex state of the Ethernet port
Double half full | {}
The parameter meaning in the command reads as follows:
10: stands for 10Mbit / s rate.
100: stands for 100Mbit / s rate.
Full version: represents full duplex status.
Half: half duplex state.
It is important to note that..,
The speed and duplex status of my Ethernet port must be set at the same time. Only setting one of these will not work.
10 base - 100 Base-TX / T Ethernet port supports 10Mbit L / s, 100 Mbit / s two rate, can according to the needs of its setting; 100 / Base-FX multimode rate single-mode Ethernet port and working mode set by the system of 100Mbit / s, full duplex mode,
the user cannot be set on it. If set then, the system will give tips "can not turn the port mode".
I can't set up duplex ports, rate mode.
I hope at the same time when sending packets can receive data packets, can be set to full duplex port state; when you want to port at the same time can only send or receive data packets, can be set to half duplex port; when you want to port by the end of the duplex state and negotiated the end that can be set to port auto negotiation mode, and does not need the command set.
By default, the port rate is self negotiation, and the duplex status is self negotiation.
Example: set the Ethernet port Ethernet0/1 rate to 10Mbit / s,
The working mode is set to full duplex mode.
10[Quidway-Ethernet0/1] speed
Double mode interface, please,
Now work in the car negotiation model
[Quidway-Ethernet0/1] display interface ethernet0/1
Ethernet0/1 decline
Hardware Fast Ethernet Hardware Address 00 - FC00 E0 - 0010
Auto_negotiation, 100, _BASE_TX
Flow control failure
Ports belong to these vlan.
Vlan 1
This is not a surveillance port
It doesn't belong to a port-aggregation
0 packet output
0 bytes, 0 multicasts, 0 broadcasts, 0 pauses
Enter 0 packs
0 bytes, 0 multicasts, 0 broadcasts, 0 pauses
0 CRC error
0 long frames
[Quidway-Ethernet0/1] full duplex
[Quidway-Ethernet0/1] display interface ethernet0/1
Ethernet0/1 decline
Hardware Fast Ethernet Hardware Address 00 - FC00 E0 - 0010
Full duplex 10 meters 100 _BASE_TX
Flow control failure
Ports belong to these vlan.
Vlan 1
This is not a surveillance port
It doesn't belong to a port-aggregation
0 packet output
0 bytes, 0 multicasts, 0 broadcasts, 0 pauses
Enter 0 packs
0 bytes, 0 multicasts, 0 broadcasts, 0 pauses
0 CRC error
0 long frames
From the above configuration and display system can be seen as the configuration of the rate after the system prompt Please configure duplex mode, is currently in the state of self negotiation "; view port information can also see the port in auto negotiation; after the allocation of duplex state, again
to view the port information, you can see the rate allocation
and the duplex state has the effect