51CTO下载-cisco4006配置手册(3)
Step 6 end Step 7 show interfaces [interface-id] show ip interface [interface-id] show running-config interface [interface-id] Step 8 copy running-config startup-config 退出 验证配置 保存配置
配置举例如下:
4006# configure terminal
Enter configuration commands, one per line. End with CNTL/Z. 4006(config)# interface gigabitethernet3/2
4006(config-if)# no switchport
4006(config-if)# ip address 192.20.135.21 255.255.255.0
4006(config-if)# no shutdown
4006(config-if)# end
show ip interface命令:
4006# show ip interface gigabitethernet3/2
GigabitEthernet3/2 is up, line protocol is up Internet address is 192.20.135.21/24 Broadcast address is 255.255.255.255 Address determined by setup command MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
监控及维护端口
监控端口和控制器的状态
主要命令见下表:
Show Commands for Interfaces Command show interfaces [type slot/interface] 目的 显示所有端口或某一端口的状态和配置. 显示一系列端口的状态或错误-关闭的状态 显示二层端口的状态,可以用来决定此口是否为二层或三层口。 显示端口描述 show interfaces interface-id status [err-disabled] show interfaces [interface-id] switchport show interfaces [interface-id] description show protocols [type slot/interface] 显示在任何已配置协议下全局和接口的状态 显示当前配置中的端口配置情况 show running-config interface [interface-id] show version
举例如下:
Switch#show interfaces status
显示软硬件等情况 Port Name Status Vlan Duplex Speed Type Gi1/1 notconnect 1 auto auto No Gbic Gi1/2 notconnect 1 auto auto No Gbic
Gi5/1 notconnect 1 auto auto 10/100/1000-TX Gi5/2 notconnect 1 auto auto 10/100/1000-TX Gi5/3 notconnect 1 auto auto 10/100/1000-TX Gi5/4 notconnect 1 auto auto 10/100/1000-TX
Fa6/1 connected 1 a-full a-100 10/100BaseTX Fa6/2 connected 2 a-full a-100 10/100BaseTX Fa6/3 notconnect 1 auto auto 10/100BaseTX Fa6/4 notconnect 1 auto auto 10/100BaseTX Switch#
This example shows how to display the status of interfaces in error-disabled state: Switch# show interfaces status err-disabled Port Name Status Reason Fa9/4 err-disabled link-flap
informational error message when the timer expires on a cause -------------------------------------------------------------- 5d04h:%PM-SP-4-ERR_RECOVER:Attempting to recover from link-flap err-disable state on Fa9/4 Switch#
Switch# show protocols fastethernet 5/5
FastEthernet5/5 is up, line protocol is up Switch#
刷新、重置端口及计数器
Clear命令 clear counters {type slot/interface} clear interface {type slot/interface} 目的 清除端口计数器. 重置某一端口的硬件逻辑 重置异步串口的硬件逻辑 clear line [number | console 0 | vty number]
Note clear counters 命令只清除用show interface所显示的计数,不影响用snmp得到
的计数
举例如下:
Switch# clear counters fastethernet 5/5
Clear \y Switch#
*Sep 30 08:42:55: %CLEAR-5-COUNTERS: Clear counter on interface FastEthernet5/5
by vty1 (171.69.115.10) Switch#
可使用clear interface 或 clear line 命令来清除或重置某一端口或串口,在大部分情况下并不需要这样做:
Switch# clear interface fastethernet0/5
关闭和打开端口
命令 目的 Step 1 configure terminal 进入配置状态 选择要关闭的端口 关闭 退出 验证 Step 2 interface {vlan vlan-id} | {{fastethernet | gigabitethernet} slot/port} | {port-channel port-channel-number} Step 3 shutdown Step 4 end Step 5 show running-config
使用 no shutdown 命令重新打开端口. 举例如下:
Switch# configure terminal
Switch(config)# interface fastethernet2/5 Switch(config-if)# shutdown Switch(config-if)#
*Sep 30 08:33:47: %LINK-5-CHANGED: Interface FastEthernet2/5, changed state to a administratively down
Switch# configure terminal
Switch(config)# interface fastethernet2/5 Switch(config-if)# no shutdown Switch(config-if)#
*Sep 30 08:36:00: %LINK-3-UPDOWN: Interface FastEthernet2/5, changed state to up
配置VLAN
理解VLAN
一个VLAN就是一个交换网,其逻辑上按功能、项目、应用来分而不必考虑用户的物理位置。任何交换口都可以属于某一VLAN, IP包、广播包及组播包均可以发送或广播给在此VLAN内的最终用户。每一个VLAN均可看成是一个逻辑网络,发往另一VLAN的数据包必须由路由器或网桥转发(如下图)。由于VLAN被看成是一个逻辑网络,其具有自己的网桥管理信息庫 (MIB) 并可支持自己的生成树
VLAN作为逻辑定义的网络示意图
VLAN常常与IP子网相联系,同一IP子网属于同一VLAN。在3550上VLAN之间的数据包可以由VLAN端口进行转发。
可支持的VLAN
Catalyst 4006交换机将来的版本可支持4096个VLAN,可以分别是VTP client, server, 及 transparent modes. VLAN号可以从1到4094. VLAN号1002到1005
…… 此处隐藏:1972字,全部文档内容请下载后查看。喜欢就下载吧 ……相关推荐:
- [实用模板]第八章:法国“新浪潮”与“左岸派”
- [实用模板]2021年北京上半年临床医学检验技师生物
- [实用模板]SAP GUI 7.10客户端安装配置文档
- [实用模板]2001年临床执业医师资格考试综合笔试试
- [实用模板]36机场工作实用英语词汇总结
- [实用模板](一)社会保险稽核通知书
- [实用模板]安全教育主题班会材料
- [实用模板]濉溪县春季呼吸道传染病防控应急演练方
- [实用模板]长沙房地产市场周报(1.30-2.3)
- [实用模板]六年级数学上册典中点 - 图文
- [实用模板]C程序设计(红皮书)习题官方参考答案
- [实用模板]中国证监会第一届创业板发行审核委员会
- [实用模板]桥梁工程复习题
- [实用模板]2011学而思数学及答案
- [实用模板]初中病句修改专项练习
- [实用模板]监理学习知识1 - 图文
- [实用模板]小机灵杯四年级试题
- [实用模板]国贸专业毕业论文模板
- [实用模板]教育学概论考试练习题-判断题4
- [实用模板]2015届高考英语一轮复习精品资料(译林
- 00Nkmhe_市场营销学工商管理_电子商务_
- 事业单位考试法律常识
- 诚信教育实施方案
- 吉大小天鹅食品安全检测箱方案(高中低
- 房地产销售培训资料
- 高一地理必修1复习提纲
- 新概念英语第二册lesson_1_练习题
- 证券公司内部培训资料
- 小学英语时间介词专项练习
- 新世纪英语专业综合教程(第二版)第1册U
- 【新课标】浙教版最新2018年八年级数学
- 工程建设管理纲要
- 外研版 必修一Module 4 A Social Surve
- Adobe认证考试 AE复习资料
- 基于H.264AVC与AVS标准的帧内预测技术
- 《食品检验机构资质认定管理办法》(质
- ABB变频器培训课件
- (完整版)小学说明文阅读练习题及答案
- 深思洛克(SenseLock) 深思IV,深思4,深
- 弟子规全文带拼音




