4006交换机简明配置手册(中文)(3)

2019-04-02 21:56

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


4006交换机简明配置手册(中文)(3).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:西南政法大学优秀硕士学位论文汇总表

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: