027-8871356813638612366
在思科交换机里面有一个非常有用的命令,开始刚学习的时候不知道,走了不少弯路。这个命令可以用一次改变多个端口的设置。换句话说,如果你需要在cisco交换机的许多个端口上进行相同的操作,不需要一个一个端口的设置,只需要一个命令就可以了。这个命令就是“range”,例如下:
S1(config)#interface range fastEthernet 0/1-24 S1(config-if-range)#no shutdown
//注意:从这儿开始是交换机改变设置时自动显示的端口变化情况 %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/5, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/6, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/7, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/8, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/9, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/10, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/11, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/12, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/13, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/14, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/15, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/16, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/17, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/18, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/19, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/20, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/21, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/22, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/23, changed state to down
%LINK-5-CHANGED: Interface FastEthernet0/24, changed state to down S1(config-if-range)#
还可以用show running...验证下,很好玩。
手机官网
官方微信
客户服务热线027-88713568 88711708业务咨询热线 13638612366 17786357487 地址:武汉市江夏区流芳路52号光谷芯中心二期E15栋201室
Copyright ©2017-2021 武汉市朗联科技有限公司 鄂ICP备案号17020357