华为
s2300 s5000 s5700
s5120
s3900
1
.
华为
s2300
交换机如何配置端口限速
使用
QOS
命令来配置
(
网络带宽的
10M
、
100M
和
1000M
的单位是
bps
(即
bit/s
,位
/
秒)
,
而我们通常所说的
100M
大
小的文件,这里的单位是
Byte
,而
1Byte=8bit
,显然
100M bit=
(
100/8
)
M Byte=12.5M Byte)
qos lr
命令用来在接口出方向上实施限速。
undo qos lr
命令用来禁止接口出方向上的限速。
命令格式
qos lr cir cir cbs cbs
undo qos lr
cir cir
表示承诺信息速率。
整数形式,
取值范围是
64
~接口自身带宽
(例如
Ethernet
接口带宽为
100000
,
GE
接口带宽为
1000000
)
,单位是
kbit/s
。
cbs
cbs
表
示
承
诺
突
发
尺
寸
。
整
数
形
式
,
取
值
范
围
是
8192
~
1040384
,
单
位
是
byte
。
8192Kbps=1M=1024Kbit.
使用实例
1
:
在接口
GET 0/0/1
上带宽限制为
20M
system-view
Interface gigabitethernet 0/0/1
qos
lr
inbound
cir
20480
cbs
1040384
qos
lr
outbound
cir
20480
cbs
1040384
display cur
save
2.
华为
s5000
设置端口限速后,可以对进出端口的报文的速率进行限制,以维持网络的有序运行。
配置命令说明:
Inbound
:对入端口报文进行限速
Outbound
:对出端口报文进行限速
Rate-level
:速率级别,取值范围是
1-32
的整数,设置后的速率为:粒度
*
速率级别。若级别为
3
,那么速率为
25Mbit/s * 3=75Mbit/s
Undo line-rate inbound|outbound
:
取消端口限速
配置实例:
配置端口
Gigabitethernet 0/0/1
入端口限速为
25Mbit/s
system-view
//
进入系统试图
[Quidway]
interface
gigabitethernet
0/0/1
//
进入以太网端口视图
[Quidway-GigabitEthernet0/0/1]
line-rate
inbound 1
3.
华为
s3900
华为
s3900
配置端口
Gigabitethernet 0/0/1
最低速率为
2M
[Quidway]interface
gigabitethernet 0/0/1
[Quidway-GigabitEthernet0/0/1]line-rate inbound 16384
端口限速
in
方向
单位:
Kbps
[Quidway-GigabitEthernet0/0/1] line-rate outbound 16384
端口限速
ou
方向
单位:
Kbps
8192Kbps=1M=1024KB
10M
带宽写成
Line-rate inbound 8192
0 Line-rate outbound 81920
4.
华为
s5120
Qos
端口限速
[S5120] interface gigabitethernet 1/0/1
本文介绍华为多款交换机端口限速配置方法。如S2300使用QOS命令配置,qos lr用于限速,undo qos lr禁止限速;S5000可对进出端口报文限速,有速率级别设置;S3900能配置端口最低速率;S5120可进行Qos端口限速。
3894

被折叠的 条评论
为什么被折叠?



