配置一组端口
命令 【程序编程相关:IBM入门级服务器x206】【推荐阅读:DFL-800/1600/2500防火墙】
step 1 【扩展信息:DSP-4000系列数字式电缆测试仪(1】
目的configure terminal
进入配置状态
step 2
interface range {port-range}
进入组配置状态
step 3
可以使用平时的端口配置命令进行配置
step 4
end
退回
step 5
show interfaces [interface-id]
验证配置
step 6
copy running-config startup-config
保存
当使用interface range命令时有如下的规则:
有效的组范围: vlan从1 到4094 fastethernet 槽位/{first port} - {last port}, 槽位为0 gigabitethernet槽位/{first port} - {last port},槽位为0 port-channel port-channel-number - port-channel-number, port-channel号从1到64 端口号之间需要加入空格,如:interface range fastethernet 0/1 – 5 是有效的,而interface range fastethernet 0/1-5 是无效的. interface range 命令只能配置已经存在的interface vlan 所有在同一组的端口必须是相同类别的.见以下例子:
switch# configure terminalswitch(config)# interface range fastethernet0/1 - 5 switch(config-if-range)# no shutdown switch(config-if-range)#以下的例子显示使用句号来配置不同类型端口的组:switch# configure terminalswitch(config)# interface range fastethernet0/1 - 3, gigabitethernet0/1 - 2 switch(config-if-range)# no shutdown switch(config-if-range)# 配置二层端口2950的所有端口缺省的端口都是二层口,如果此端口已经配置成三层端口的话,则需要用switchport来使其成为二层端口.
配置端口速率及双工模式 可以配置快速以太口的速率为10/100mbps及千兆以太口的速率为10/100/1000-mbps; 但对于gbic端口则不能配置速率及双工模式,有时可以配置nonegotiate,当需要联接不支持自适应的其它千兆端口时... 下一页