Chinaunix首页 | 论坛 | 博客
  • 博客访问: 680249
  • 博文数量: 740
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 4910
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-17 15:16
文章分类

全部博文(740)

文章存档

2011年(1)

2008年(739)

我的朋友

分类:

2008-10-17 15:20:59


  第2章 : 连接区块
  Switch(config)# enable password level {1-15 password 定义IOS命令集机密码Level 关键字后跟1-15,表示级别,1最小,15最大;password是自己定义的密码
  
  Switch(enable) set password
  Enable old password : old password
  Enter new password: new password
  Retype new password: new password
  定义SET命令集交换机登陆密码
  
  Switch(enable) set enablepass
  Enable old password : old password
  Enenter new password: new password
  Retype new password: new password
  定义SET命令集交换机使能密码
  
  Switch(config)# hostname name
  定义IOS命令集交换机主机名
  
  Switch(enable) set prompt name
  定义SET命令集交换机主机名
  
  Switch(config)# ip address ip address netmask
  定义IOS命令集交换机管理用途的IP地址
  
  Switch(enable) set interface sc0 ip address netmask broadcast address
  Switch(enable)set interface sc0 vlan_num
  定义SET命令集交换机管理用途的IP地址并将它与某个VLAN相关联
  
  Switch(config-if)# descriptioin descriptioin-string
  定义IOS命令集交换机进行接口描述,如果描述语句中含有空格,则要加双引号。
  
  Switch(enable) set port name module/number descriptioin
  定义SET命令集交换机进行接口描述
  Switch(enable) set port name module/number
  清除SET命令集交换机进行接口描述
  
  Switch(enable) set port speed module/number [10|100|auto]
  定义SET命令集交换机端口速率
  
  Switch(config-if)# duplex {auto | full | full-fiow-control | half}
  定义IOS命令集交换机双工模式,其中"full-fiow-control"为强迫进入流控全双工模式,端口必须为100M模式
  
  Switch(enable) set port duplex module/number {full | half}
  定义SET命令集交换机双工模式
  
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  第3章 : 通过VLAN定义共同工作组
  
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  Switch(enable) set vlan vlan_num mod_num/port_list
  建立基于SET命令集交换机的一个vlan(一个vlan不影射到相应端口前不会被使用)
  
  Switch(enable) show vlan
  查看基于SET命令集交换机的VLAN设置
  
  Switch(enable) clear vlan vlan_num
  清除基于SET命令集交换机的一个vlan
  
  Switch(enable) show port capabilities
  判断一个基于SET命令集交换机是否支持干道以及干道标识技术:ISL或IEEE 802.Q
  
  Switch(enable) set trunk mod_num/port_list [on | off | desirable | auto | nonegotiate ] vlan_range [ isl | dotlq | lang negotiate ]
  开启基于SET命令集交换机的干道(trunk)
  
  Switch(enable) clear trunk mod_num/port_list vlan_range
  清除不必要在trunk干道上要传输的vlan范围,减小广播风暴
  
  Switch(enable) clear config all
  清除一个新的要加入拓扑的交换机所有配置,以便在拓扑中加入新交换机时,不影响已有VTP版本号(加入新拓扑前,这个新交换机还要重新上电并确定VTP模式)
  
  Switch(enable) set vtp v2 enable
  定义SET命令集交换机的VTP版本号(1或2)
  
  Switch(enable) set vtp domain domain_name password pasword
  设置一个基于SET命令集交换机的VTP管理域(网络拓扑中第一台交换机)
  
  Switch(enable) set vtp domain domain_name mode [ server | client | transparent ]
  设置VTP管理域模式
  
  Switch(enable) show vtp domain
  查看VTP域
  
  Switch(enable) show vtp statistics
  查看VTP汇总信息
  
  Switch(enable) set vtp pruneeligible vlan_range
  设置VTP修剪的VLAN的范围
  
  Switch(enable) clear vtp pruneeligible vlan_range
  清除VTP修剪的VLAN的范围
  
  Switch(enable) show trunk
  查看VTP修剪信息
  
  
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  第4章 : 管理冗余链路
  
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  
  Switch(enable) set spantree enable mod_num/port_list
  启用某个端口的生成树
  
  Switch(enable) set spantreee disable mod_num/port_list
  禁用某个端口的生成树
  
  Switch(enable) set spantree enable all
  启用所有vlan的生成树
  
  Switch(enable) show spantree vlan_num
  查看当前某个vlan生成树的配置情况show spantree查看缺省vlan1生成树配置
  
  Switch(enable) set spantree root vlan_list [dia network_diameter] [hello hello_time]
  设置根交换机,network_diameter: 意思是拓扑中末端站点任意2个连接点之间网桥最大数量(2-7个);hello_time:根交换机生成配置消息间隔时间(1-10)
  
  Switch(enable) set spantree secondary vlan_list [dia network_diameter] [hello hello_time]
  设置从根交换机,其他同上
  
  Switch(enable) set spantree portcost mod_num/port_num cost
  手工修改一个交换机与根之间的路径开销,开销低的容易被选为负责转发的端口,可能取值范围为1-65535
  
  Switch(enable) set spantree portpri mod_num/port_num priority [ vlans]
  手工修改交换机端口优先级,有最低优先级别的端口将为所有vlan转发数据帧
  
  Switch(enable) set spantree portvlanpri mod_num/port_num priority [ vlans]
  按vlan修改端口优先级,对于某个vlan内有最低优先级别的端口将为那个vlan转发数据帧,如果那个vlan内所有端口优先级相同,则有最低端口号的端口为这个vlan转发数据帧。这个功能对于汇接层的平行链路很有用,它可以实现负载均衡与线路冗余
  
  修改生成树计时器:
  (一)Switch(enable) set spantree fwddelay delay [vlan]
  为vlan设置网桥转发延时 端口由倾听到学习,由学习到转发时间,却省15秒,取值范围4-30(delay是延迟的意思)
  
  
  (二)Switch(enable) set spantree hello interval
  为vlan设置网桥hello间隔 却省2,范围1-2(interva是间隔的意思)
  
  (三)Switch(enable) set spantree maxage agingtime [ vlan ]
  为vlan设置网桥最大寿命,对于物理上不能检测的故障很有用,却省为20秒,取值为4到~ (agingtime是寿命的意思)
  
  Switch(enable) show port capabilities [mod_num/port_num]
  检测catalyst5xxx系列的线路卡(即端口)能否形成通道
  
  Switch(enable) set port channel mod_num/port_num [on | off | auto | desirable]
  启用以太网通道(用在接入层与汇接层之间),增加带宽与冗余!
  
  Switch(config)# port-channel mode [on | off | auto | desirable]
  在IOS命令集的交换机下启用以太网通道的命令
  
  Switch(enable) show port chennel 1
  检验以太网通道配置
  
  Switch(config)# show interface port-channel port-channel-group-number
  在IOS命令集的交换机下检验以太网通道的配置
  
  Switch(enable) set spantree uplinkfast enable [ rate station-update-rate ] [ all-protocols off|on ]
  SET命令集下启用上行速链路功能uplinkfast上行速链根端口(进行转发的端口)与一组除自环端口外的曾阻断状态的端口组成。主要应用于接入层交换机。作用是:生成树拓扑变化后的快速收敛,并通过上行组在冗余链路实现负载均衡
  
  Switch(config)# uplink-fast
  IOS命令集的配置uplinkfast上行速链路语句
  Switch(enable) show spantree uplingkfastSwitch(config)# show uplink-fast
  检验Set与IOS命令集的上行速链路运行
  
  Switch(enable) set spantree portfast mod_num/port_num
  启用set命令集的Portfast速端口Portfast速端口一般用在接驳与工作站的接入层交换机端口,作用为:大大减少倾听与学习状态时间,使得端口迅速转入转发或阻断状态
  
  Switch(config)# spantree start-forwarding
  启用IOS命令集的Portfast速端口
  
  Switch(enable) show spantree mod_num/port_num
  检验Set命令集的Portfast速端口运行
  
  Switch(enable) set spantree backbonefast
  在Set命令集的交换机下启用速骨干backbonefast的命令。
  
  Switch(enable) show spantree backbonefast
  检验Set命令集的速骨干backbonefast的运行
  
  
  
  
  
  
【责编:admin】

--------------------next---------------------

阅读(302) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~