首页 > 系统 > windows

华为交换机、思科交换机限制带宽
时间:2014-06-11 11:06:24  点击: 来源:  作者:

华为交换机、思科交换机限制带宽交换机命令:华为交换机:sys //进入系统
[LinkIDC-LF-J5]di cu //系统
[LinkIDC-LF-J5]int e1/0/2 //进入端口
[LinkIDC-LF-J5-Ethernet1/0/2]int e1/0/3 //更换成3端口
[Link ...

华为交换机、思科交换机限制带宽

交换机命令:
华为交换机:
sys   //进入系统
[LinkIDC-LF-J5]di cu //系统
[LinkIDC-LF-J5]int e1/0/2  //进入端口
[LinkIDC-LF-J5-Ethernet1/0/2]int e1/0/3  //更换成3端口
[LinkIDC-LF-J5-Ethernet1/0/3]line i 5120 //进的带宽为 5120K
[LinkIDC-LF-J5-Ethernet1/0/3]line o 5120 //出的带宽为 5120K
[LinkIDC-LF-J5-Ethernet1/0/3]q  //quit 退出
[LinkIDC-LF-J5]q //quit退出
sa //save 保存,如不保存,重启交换机后,将恢复原始设置
 
注意:本命令使用了短命令,如果想查看全命令,请使用 tab键补全命令...

/
-------------------------------------------------------------------------------------------------------
思科交换机:
enable //进入特权模式
s1#show run //显示系统配置
s1#conf t  //进入配置终端模式
[s1-config]? //可以通过打问号提示所要找的命令

Switch#conf t  //进入配置模式
Switch(config)#interface fastEthernet 0/22  //进入端口
Switch(config-if)#storm-control unicast level 2  //限制单播风暴为 2%,如果100Mb带宽则为2Mb
Switch(config-if)#exit  //退出端口管理
Switch(config)#exit  //退出配置模式
Switch#write //保存
------------------------------------------------------------------------------------------------------
 
思科交换机实例操作:
PC>telnet 10.0.0.60
Trying 10.0.0.60 ...Open
 
 
User Access Verification
 
Password:
Switch>en
Password:
Switch#sh ru
Building configuration...
 
Current configuration : 1157 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
enable password 123321
!
!
!
interface FastEthernet0/1
 storm-control broadcast level 1
!
interface FastEthernet0/2
 storm-control broadcast level 1
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet1/1
!
interface GigabitEthernet1/2
!
interface Vlan1
 ip address 10.0.0.60 255.255.0.0
!
ip default-gateway 10.0.0.60
!
!
line con 0
!
line vty 0 4
 password 123321
 login
line vty 5 15
 login
!
!
end
 
 
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#inter
Switch(config)#interface fa
Switch(config)#interface fastEthernet0/1
Switch(config-if)#sto
Switch(config-if)#storm-control unicast level 2  
Switch(config-if)#exit
Switch(config)#exit
Switch#write
Building configuration...
[OK]
Switch#

附件下载
”您可通过以下微信二维码,赞赏作者“
 
 
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
推荐资讯
linux服务器同步互联网时间
linux服务器同步互联
亚马逊云lightsail服务器使用教程 | 亚马逊云lightsail使用指南
亚马逊云lightsail服
hostdare 4折优惠,直接降价60% 美国洛杉矶低至 $10.4/年 768M内存/1核/10gNVMe/500g流量
hostdare 4折优惠,直接
六类网线cat6a和cat6e的区别
六类网线cat6a和cat6e
相关文章
栏目更新
栏目热门

关于我们 | 广告服务 | 联系我们 | 网站地图 | 免责声明 | WAP | RSS


Copyright © 运维之家 2013-2023