教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 实用模板 >

51CTO下载-cisco4006配置手册(3)

来源:网络收集 时间:2026-08-15
导读: 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 退出 验证配置 保存配置 配置举

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字,全部文档内容请下载后查看。喜欢就下载吧 ……
51CTO下载-cisco4006配置手册(3).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/454458.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)