常见交换机术语
1.1 以太网端口配置命令 1.1.1 broadcast-suppression 【命令】 broadcast-suppression pct undo broadcast-suppression 【视图】 以太网端口视图 【参数】 pct :指定以太网端口最大广播流量的线速度百分比,取值范围为 5 ~ 100 ,缺省值为 100 ,步长为 5
1.1 以太网端口配置命令
1.1.1 broadcast-suppression
【命令】
broadcast-suppression pct
undo broadcast-suppression
【视图】
以太网端口视图
【参数】
pct:指定以太网端口最大广播流量的线速度百分比,取值范围为5~100,缺省值为100,步长为5。百分比越小,则允许通过的广播流量也越小。
【描述】
broadcast-suppression命令用来限制端口上允许通过的广播流量的大小,当广播流量超过用户设置的值后,系统将广播流量作丢弃处理,从而使广播所占的流量比例降低到合理的范围,保证网络业务的正常运行。undo broadcast-suppression命令用来恢复端口上允许通过的广播流量为缺省值100,即端口上允许通过的广播流量为100%,不对广播流量进行抑制。
【举例】
# 允许20%的广播报文通过,即对端口的广播流量作80%的广播风暴抑制。
[Quidway-Ethernet0/1] broadcast-suppression 20
1.1.2 description
【命令】
description text
undo description
【视图】
以太网端口视图
【参数】
text:端口描述字符串,最多为80个字符。
【描述】
description命令用来设置端口的描述字符串,undo description命令用来取消端口描述字符串。
缺省情况下,端口描述字符串为空。
【举例】
# 设置以太网端口Ethernet0/1的描述字符串为lanswitch-interface。
[Quidway-Ethernet0/1] description lanswitch-interface
1.1.3 display interface
【命令】
display interface [ interface_type | interface_type interface_num | interface_name ]
【视图】
所有视图
【参数】
interface_type:端口类型。
interface_num:端口号。
interface_name:端口名,表示方法为interface_name=interface_type interface_num。
参数的具体说明请参见interface命令中的参数说明。
【描述】
display interface命令用来显示端口的配置信息。
在显示端口信息时,如果不指定端口类型和端口号,则显示交换机上所有的端口信息;如果仅指定端口类型,则显示该类型端口的所有端口信息;如果同时指定端口类型和端口号,则显示指定的端口信息。
【举例】
# 显示以太网端口Ethernet0/1的配置信息。
Ethernet0/1 current state : UP
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc00-0010
Description : aaa
The Maximum Transmit Unit is 1500
Media type is twisted pair, loopback not set
Port hardware type is 100_BASE_TX
100Mbps-speed mode, full-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
Flow-control is not supported
The Maximum Frame Length is 1536
Broadcast MAX-ratio: 100%
PVID: 1
Mdi type: auto
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 1
Last 5 minutes input: 0 packets/sec 0 bytes/sec
Last 5 minutes output: 0 packets/sec 0 bytes/sec
input(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts
input(normal): - packets, - bytes
- broadcasts, - multicasts
input: 0 input errors, 0 runts, 0 giants, - throttles, 0 CRC
0 frame, - overruns, 0 aborts, 0 ignored, - parity errors
Output(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts, 0 pauses
Output(normal): - packets, - bytes
- broadcasts, - multicasts, - pauses
Output: 0 output errors, 0 underruns, - buffer failures
- aborts, 0 deferred, 0 collisions, 0 late collisions
- lost carrier, - no carrier
表1-1 端口配置信息描述表
域名 |
描述 |
Ethernet0/1 current state |
以太网端口当前开启或关闭状态 |
IP Sending Frames' Format |
以太网帧格式 |
Hardware address |
端口硬件地址 |
Description |
端口描述字符串 |
The Maximum Transmit Unit |
最大传输单元 |
Media type |
介质类型 |
loopback not set |
端口环回测试状态 |
Port hardware type |
端口硬件类型 |
100Mbps-speed mode, full-duplex mode Link speed type is autonegotiation, link duplex type is autonegotiation |
端口的双工状态和速率均设置为自协商状态,与对端协商的实际结果是100Mbit/s速率和全双工模式 |
Flow-control is not supported |
端口流控状态 |
The Maximum Frame Length |
端口允许通过的最大以太网帧长度 |
Broadcast MAX-ratio |
端口广播风暴抑制比 |
PVID |
端口缺省VLAN ID |
Mdi type |
网线类型 |
Port link-type |
端口链路类型 |
Tagged VLAN ID |
标识在该端口有哪些VLAN的报文需要打Tag标记 |
Untagged VLAN ID |
标识在该端口有哪些VLAN的报文不需要打Tag标记 |
Last 5 minutes output: 0 packets/sec 0 bytes/sec Last 5 minutes input: 0 packets/sec 0 bytes/sec |
端口最近五分钟输入和输出速率和报文数 |
input(total): 0 packets, 0 bytes 0 broadcasts, 0 multicasts input(normal): - packets, - bytes - broadcasts, - multicasts input: 0 input errors, 0 runts, 0 giants, - throttles, 0 CRC 0 frame, - overruns, 0 aborts, 0 ignored, - parity errors Output(total): 0 packets, 0 bytes 0 broadcasts, 0 multicasts, 0 pauses Output(normal): - packets, - bytes - broadcasts, - multicasts, - pauses Output: 0 output errors, 0 underruns, - buffer failures - aborts, 0 deferred, 0 collisions, 0 late collisions - lost carrier, - no carrier |
端口输入/输出报文和错误信息统计 |
1.1.4 display port
【命令】
display port { hybrid | trunk }
【视图】
所有视图
【参数】
hybrid:显示Hybrid端口。
Trunk:显示Trunk端口。
【描述】
display port命令用来显示当前系统是否有链路类型为Hybrid或者Trunk的端口,如果有,则显示出对应的端口名。
【举例】
# 显示当前系统存在的Hybrid端口。
Now, the following hybrid ports exist:
Ethernet0/1 Ethernet0/2
以上信息表示当前系统有两个Hybrid端口,分别为Ethernet0/1和Ethernet0/2。
1.1.5 duplex
【命令】
duplex { auto | full | half }
undo duplex
【视图】
以太网端口视图
【参数】
auto:端口处于自协商状态。
full:端口处于全双工状态。
half:端口处于半双工状态。
【描述】
duplex命令用来设置以太网端口的全双工/半双工属性,undo duplex命令用来将端口的双工状态恢复为缺省的自协商状态。
缺省情况下,端口处于自协商状态。
相关配置可参考命令speed。
【举例】
# 将以太网端口Ethernet0/1端口设置为自协商状态。
[Quidway-Ethernet0/1] duplex auto
1.1.6 flow-control
【命令】
flow-control
undo flow-control
【视图】
以太网端口视图
【参数】
无
【描述】
flow-control命令用来开启以太网端口的流量控制特性,以避免拥塞发生时丢失数据包,undo flow-control命令用来关闭以太网端口流量控制特性。
缺省情况下,关闭以太网端口的流量控制。
【举例】
# 开启以太网端口Ethernet0/1的流量控制。
[Quidway-Ethernet0/1] flow-control
1.1.7 interface
【命令】
interface { interface_type interface_num | interface_name }
【视图】
系统视图
【参数】
interface_type:端口类型,取值为Ethernet或GigabitEthernet。
interface_num:端口号,采用槽位编号/端口编号的格式。对于S3526、S3526E、S3526C以太网交换机,槽号取值范围为0~2:槽号取0表示交换机提供的固定以太网端口,端口号取值范围为1~24;槽号取1或2分别表示后面板上两个扩展模块提供的以太网端口,端口号只能取1。对于S3526 FM、S3526 FS、S3526E FM、S3526E FS以太网交换机,槽号取值范围为0~4:槽号取0表示交换机提供的固定以太网端口,端口号取值范围为1~12;槽号取1或2分别表示前面板上两个扩展模块提供的以太网端口,端口号取值范围均为1~6;槽号取3或4分别表示后面板上两个扩展模块提供的以太网端口,端口号只能取1。对于S3552G、S3552P以太网交换机,槽号取值范围为0、1:槽号取0表示交换机提供的百兆以太网端口,端口号取值范围为1~48;槽号取1表示交换机提供的千兆以太网端口,端口号只能取1~4。对于S3528G、S3528P以太网交换机,槽号取值范围为0、1:槽号取0表示交换机提供的百兆以太网端口,端口号取值范围为1~24;槽号取1表示交换机提供的千兆以太网端口,端口号只能取1~4。
interface_name:端口名,表示方法为interface_name= interface_type interface_num。
【描述】
interface命令用来进入以太网端口视图。用户要配置以太网端口的相关参数,必须先使用该命令进入以太网端口视图。
【举例】
# 进入Ethernet0/1以太网端口视图。
[Quidway] interface ethernet0/1
1.1.8 loopback
【命令】
loopback { external | internal }
【视图】
以太网端口视图
【参数】
external:外环测试。
internal:内环测试。
【描述】
loopback命令用来设置以太网端口进行环回测试,以检验以太网端口工作是否正常,环回测试执行一定时间后将自动结束。
缺省情况下,以太网端口不进行环回测试。
【举例】
# 对以太网端口Ethernet0/1进行内环测试。
[Quidway-Ethernet0/1] loopback internal
1.1.9 mdi
【命令】
mdi { across | auto | normal }
undo mdi
【视图】
以太网端口视图
【参数】
across:连接网线类型为交叉网线。
auto:自动识别是平行网线还是交叉网线。
normal:连接网线类型为平行网线。
【描述】
mdi命令用来设置以太网端口的网线类型,undo mdi命令用来恢复以太网端口网线类型的缺省值。
缺省情况下,以太网交换机自动识别所连接的网线类型。
需要注意的是,该命令只对10/100Base-TX、1000Base-T端口有效。
【举例】
# 将以太网端口Ethernet0/1的网线类型设置为自动识别。
[Quidway-Ethernet0/1] mdi auto
1.1.10 port access vlan
【命令】
port access vlan vlan_id
undo port access vlan
【视图】
以太网端口视图
【参数】
vlan_id:IEEE802.1Q中定义的VLAN ID,取值范围为2~4094。
【描述】
port access vlan命令用来把Access端口加入到指定的VLAN中,undo port access vlan命令用来把Access端口从指定VLAN中删除。
此命令使用的条件是vlan_id所指的VLAN必须存在。
【举例】
# 将Ethernet0/1端口加入到VLAN3中(VLAN3已经存在)。
[Quidway-Ethernet0/1] port access vlan 3
1.1.11 port hybrid pvid vlan
【命令】
port hybrid pvid vlan vlan_id
undoport hybrid pvid
【视图】
以太网端口视图
【参数】
vlan_id:IEEE802.1Q中定义的VLAN ID,取值范围为1~4094。缺省值为1。
【描述】
port hybrid pvid vlan命令用来设置Hybrid端口的缺省VLAN ID,undoport hybrid pvid命令用来恢复端口的缺省VLAN ID。
Hybrid端口可以和isolate-user-vlan同时配置。但如果缺省VLAN是在isolate-user-vlan中建立了映射的VLAN,则不允许修改缺省VLAN ID,只有在解除映射后才能进行修改。
本Hybrid端口的缺省VLAN ID和相连的对端交换机的Hybrid端口的缺省VLAN ID必须一致,否则报文将不能正确传输。
相关配置可参考命令port link-type。
【举例】
# 将Hybrid端口Ethernet0/1的缺省VLAN设为100。
[Quidway-Ethernet0/1] port hybrid pvid vlan 100
1.1.12 port hybrid vlan
【命令】
port hybrid vlan vlan_id_list { tagged | untagged }
undo port hybrid vlan vlan_id_list
【视图】
以太网端口视图
【参数】
vlan_id_list:vlan_id_list = [ vlan_id1 [ to vlan_id2 ] ]&,Hybrid端口要加入的VLAN的范围,可以是离散的,vlan_id取值范围为1~4094。&表示前面的参数最多可以重复输10次。
tagged:所指定VLAN的报文将带有标签。
untagged:所指定VLAN的报文不带标签。
【描述】
port hybrid vlan命令用来将Hybrid端口加入到指定的已经存在的VLAN,undo port hybrid vlan命令用来将Hybrid端口从指定的VLAN中删除。
Hybrid端口可以属于多个VLAN。如果多次使用port hybrid vlan vlan_id_list { tagged | untagged }命令,那么Hybrid端口上允许通过的VLAN是这些vlan_id_list的合集。
此命令使用的条件是:vlan_id所指的VLAN必须存在。
相关配置可参考命令port link-type。
【举例】
# 将Hybrid端口Ethernet0/1加入到2、4、50~100 VLAN中,并且这些VLAN的报文将带有标签。
[Quidway-Ethernet0/1] port hybrid vlan 2 4 50 to 100 tagged
1.1.13 port link-type
【命令】
port link-type { access | hybrid | trunk }
undo port link-type
【视图】
以太网端口视图
【参数】
access:设置端口为Access端口。
hybrid:设置端口为Hybrid端口。
trunk:设置端口为Trunk端口。
【描述】
port link-type命令用来设置以太网端口的链路类型,undo port link-type命令用来恢复端口的链路类型为缺省状态,即为Access端口。
在一台以太网交换机上,Trunk端口和Hybrid端口不能同时被设置。
缺省情况下,端口为Access端口。
【举例】
# 将以太网端口Ethernet0/1设置为Trunk端口。
[Quidway-Ethernet0/1] port link-type trunk
1.1.14 port trunk permit vlan
【命令】
port trunk permit vlan { vlan_id_list | all }
undo port trunk permit vlan { vlan_id_list | all }
【视图】
以太网端口视图
【参数】
vlan_id_list:vlan_id_list = [ vlan_id1 [ to vlan_id2 ] ]&,为此Trunk端口加入的VLAN的范围,可以是离散的,vlan_id取值范围为2~4094。&表示前面的参数最多可以重复输10次。
all:将Trunk端口加入到所有VLAN中。
【描述】
port trunk permit vlan命令用来将Trunk端口加入到指定的VLAN,undo port trunk permit vlan命令用来将Trunk端口从指定的VLAN中删除。
Trunk端口可以属于多个VLAN。如果多次使用port trunk permit vlan命令,那么Trunk端口上允许通过的VLAN是这些vlan_id_list的集合。
此命令使用的条件是:vlan_id所指的VLAN不是缺省VLAN。
相关配置可参考命令port link-type。
【举例】
# 将Trunk端口Ethernet0/1加入到2、4、50~100 VLAN中。
[Quidway-Ethernet0/1] port trunk permit vlan 2 4 50 to 100
1.1.15 port trunk pvid vlan
【命令】
port trunk pvid vlan vlan_id
undo port trunk pvid
【视图】
以太网端口视图
【参数】
vlan_id:IEEE802.1Q中定义的VLAN ID,取值范围为1~4094。缺省值为1。
【描述】
port trunk pvid vlan命令用来设置Trunk端口的缺省VLAN ID,undo port trunk pvid命令用来恢复端口的缺省VLAN ID。
Trunk端口不能和isolate-user-vlan同时配置。
本Trunk端口的缺省VLAN ID和相连的对端交换机的Trunk端口的缺省VLAN ID必须一致,否则报文将不能正确传输。
相关配置可参考命令port link-type。
【举例】
# 将Trunk端口Ethernet0/1的缺省VLAN设为100。
[Quidway-Ethernet0/1] port trunk pvid vlan 100
1.1.16 reset counters interface
【命令】
reset counters interface[ interface_type | interface_type interface_num | interface_name ]
【视图】
用户视图
【参数】
interface_type:端口类型。
interface_num:端口号。
interface_name:端口名,表示方法为interface_name= interface_type interface_num。
参数的具体说明请参见interface命令中的参数说明。
【描述】
reset counters interface命令用来清除端口的统计信息,以便重新对端口进行相关信息的统计。
在清除端口信息时,如果不指定端口类型和端口号,则清除交换机上所有的端口信息;如果仅指定端口类型,则清除该类型端口的所有端口信息;如果同时指定端口类型和端口号,则清除指定的端口信息。
当802.1X使能后,端口信息不能被清除。
【举例】
# 清除以太网端口Ethernet0/1端口统计信息。
1.1.17 shutdown
【命令】
shutdown
undo shutdown
【视图】
以太网端口视图
【参数】
无
【描述】
shutdown命令用来关闭以太网端口,undo shutdown命令用来打开以太网端口。
缺省情况下,以太网端口为打开状态。
需要注意的是,堆叠模块的端口不支持该命令。
【举例】
# 打开以太网端口Ethernet0/1。
[Quidway-Ethernet0/1] undo shutdown
1.1.18 speed
【命令】
l 在100Mbit/s以太网端口下命令形式为:
speed { 10 | 100 | auto }
l 在1000Mbit/s以太网端口下命令的形式为:
speed { 10 | 100 | 1000 | auto }
l 命令的undo形式为:
undo speed
【视图】
以太网端口视图
【参数】
10:表示端口速率为10Mbit/s。
100:表示端口速率为100Mbit/s。
1000:表示端口速率为1000Mbit/s。
auto:表示端口速率处于双方自协商状态。
【描述】
speed命令用来设置端口的速率,undo speed命令用来恢复端口的速率为缺省值。
缺省情况下,端口速率处于双方自协商状态。
相关配置可参考命令duplex。
【举例】
# 将以太网端口Ethernet0/1的端口速率设置为10Mbit/s。
[Quidway-Ethernet0/1] speed 10
第2章 以太网端口汇聚配置命令
2.1 以太网端口汇聚配置命令
2.1.1 display link-aggregation
【命令】
display link-aggregation [ master_interface_name ]
【视图】
所有视图
【参数】
master_interface_name:汇聚端口组的主端口名,表示方式为master_interface_name= { interface_type interface_num | interface_name }。其中interface_type为端口类型,interface_num为端口编号,interface_name为端口名。
【描述】
display link-aggregation命令用来显示汇聚端口的相关信息。
如果指定了汇聚端口组的主端口,则显示相关汇聚端口组的信息;如果不指定汇聚端口组的主端口,则显示所有的汇聚端口的相关信息。
相关配置可参考命令link-aggregation。
【举例】
# 显示主端口为Ethernet0/1的汇聚端口组的相关信息。
Master port: Ethernet0/1
Other sub-ports:
Ethernet0/2
Mode: both
表2-1 端口汇聚信息描述表
域名 |
描述 |
Master port |
主端口 |
Other sub-ports |
其他成员端口 |
Mode |
汇聚模式 |
2.1.2 link-aggregation
【命令】
link-aggregation interface_name1 to interface_name2 { both | ingress }
undo link-aggregation { master_interface_name | all }
【视图】
系统视图
【参数】
interface_name1:用来表示加入汇聚的起始以太网端口。
interface_name2:用来表示加入汇聚的终止以太网端口。
both:表示汇聚组中各成员端口根据源MAC地址和目的MAC地址对出端口方向的数据流进行负荷分担。
ingress:表示汇聚组中各成员端口仅根据源MAC地址对出端口方向的数据流进行负荷分担。
master_interface_name:端口汇聚的主端口。
all:所有汇聚端口。
【描述】
link-aggregation命令用来将一组端口设置为汇聚端口,并把端口中端口号最小的作为主端口,undo link-aggregation命令用来删除以太网端口汇聚。
需要注意的是,进行汇聚的以太网端口必须同为10M_FULL(10Mbit/s速率,全双工模式)或100M_FULL(100Mbit/s速率,全双工模式)或1000M_FULL(1000Mbit/s速率,全双工模式),否则无法实现汇聚。
相关配置可参考命令display link-aggregation。
【举例】
# 根据源MAC地址和目的MAC地址对出端口方向的数据流进行负荷分担。
[Quidway] link-aggregation ethernet0/1 to ethernet0/2 both

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The sudo command allows users to run commands in elevated privilege mode without switching to superuser mode. This article will introduce how to simulate functions similar to sudo commands in Windows systems. What is the Shudao Command? Sudo (short for "superuser do") is a command-line tool that allows users of Unix-based operating systems such as Linux and MacOS to execute commands with elevated privileges typically held by administrators. Running SUDO commands in Windows 11/10 However, with the launch of the latest Windows 11 Insider preview version, Windows users can now experience this feature. This new feature enables users to

Title: The working principle and configuration method of GDM in Linux systems In Linux operating systems, GDM (GNOMEDisplayManager) is a common display manager used to control graphical user interface (GUI) login and user session management. This article will introduce the working principle and configuration method of GDM, as well as provide specific code examples. 1. Working principle of GDM GDM is the display manager in the GNOME desktop environment. It is responsible for starting the X server and providing the login interface. The user enters

This article will introduce readers to how to use the command prompt (CommandPrompt) to find the physical address (MAC address) of the network adapter in Win11 system. A MAC address is a unique identifier for a network interface card (NIC), which plays an important role in network communications. Through the command prompt, users can easily obtain the MAC address information of all network adapters on the current computer, which is very helpful for network troubleshooting, configuring network settings and other tasks. Method 1: Use "Command Prompt" 1. Press the [Win+X] key combination, or [right-click] click the [Windows logo] on the taskbar, and in the menu item that opens, select [Run]; 2. Run the window , enter the [cmd] command, and then

1. Overview The sar command displays system usage reports through data collected from system activities. These reports are made up of different sections, each containing the type of data and when the data was collected. The default mode of the sar command displays the CPU usage at different time increments for various resources accessing the CPU (such as users, systems, I/O schedulers, etc.). Additionally, it displays the percentage of idle CPU for a given time period. The average value for each data point is listed at the bottom of the report. sar reports collected data every 10 minutes by default, but you can use various options to filter and adjust these reports. Similar to the uptime command, the sar command can also help you monitor the CPU load. Through sar, you can understand the occurrence of excessive load

In Win11 system, you can enable or disable Hyper-V enhanced session mode through commands. This article will introduce how to use commands to operate and help users better manage and control Hyper-V functions in the system. Hyper-V is a virtualization technology provided by Microsoft. It is built into Windows Server and Windows 10 and 11 (except Home Edition), allowing users to run virtual operating systems in Windows systems. Although virtual machines are isolated from the host operating system, they can still use the host's resources, such as sound cards and storage devices, through settings. One of the key settings is to enable Enhanced Session Mode. Enhanced session mode is Hyper

Understanding Linux Bashrc: Function, Configuration and Usage In Linux systems, Bashrc (BourneAgainShellruncommands) is a very important configuration file, which contains various commands and settings that are automatically run when the system starts. The Bashrc file is usually located in the user's home directory and is a hidden file. Its function is to customize the Bashshell environment for the user. 1. Bashrc function setting environment

What is the correct way to restart a service in Linux? When using a Linux system, we often encounter situations where we need to restart a certain service, but sometimes we may encounter some problems when restarting the service, such as the service not actually stopping or starting. Therefore, it is very important to master the correct way to restart services. In Linux, you can usually use the systemctl command to manage system services. The systemctl command is part of the systemd system manager

LSOF (ListOpenFiles) is a command line tool mainly used to monitor system resources similar to Linux/Unix operating systems. Through the LSOF command, users can get detailed information about the active files in the system and the processes that are accessing these files. LSOF can help users identify the processes currently occupying file resources, thereby better managing system resources and troubleshooting possible problems. LSOF is powerful and flexible, and can help system administrators quickly locate file-related problems, such as file leaks, unclosed file descriptors, etc. Via LSOF Command The LSOF command line tool allows system administrators and developers to: Determine which processes are currently using a specific file or port, in the event of a port conflict
