华为交换机、思科交换机限制带宽
交换机命令:华为交换机:
[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退出
注意:本命令使用了短命令,如果想查看全命令,请使用 tab键补全命令...
-------------------------------------------------------------------------------------------------------
思科交换机:
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#
附件下载