当前位置:首页 > Cisco 4006交换机(IOS版)简明配置维护手册
命令 目的 Step 1 configure terminal Step 2 interface interface-id Step 3 description string 进入配置模式 进入要加入描述的端口 加入描述 (最多240个字符). 退回. 验证. Step 4 end Step 5 show interfaces interface-id description or show running-config Step 6 copy running-config startup-config
保存 Use the no description interface configuration command to delete the description.
This example shows how to add a description on Fast Ethernet interface 0/4 and to verify the description:
4006# config terminal
Enter configuration commands, one per line. End with CNTL/Z. 4006(config)# interface fastethernet2/4
4006(config-if)# description Connects to Marketing
4006(config-if)# end
4006# show interfaces fastethernet2/4 description
Interface Status Protocol Description
Fa2/4 up down Connects to Marketing
配置三层口
Catalyst 4006支持三种类型的三层端口:
?
SVIs: 即interface vlan
Note 当生成一个interface Vlan时,只有当把某一物理端口分配给它时才
能被激活
? ?
三层以太网通道口(EtherChannel)
.路由口:路由口是指某一物理端口在端口配置状态下用no switchport命令生成的端口
所有的三层都需要IP地址以实现路由交换
配置步骤如下: 命令 目的 Step 1 configure terminal 进入配置状态 进入端口配置状态 把物理端口变成三层口 配置IP地址和掩码 激活端口 Step 2 interface {{fastethernet | gigabitethernet} interface-id} | {vlan vlan-id} | {port-channel port-channel-number} Step 3 no switchport Step 4 ip address ip_address subnet_mask Step 5 no shutdown 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
共分享92篇相关文档