指示灯和端口规格 · 系统状态:绿色(正常)/红色(故障) · 交换机负载利用率:总交换使用率在1%到100%之间 · 控制端口:RJ-45凹式端口 · 重启(交换机隐含保护) · 治理端口:10/100BASE-TX(RJ-45凹式)数据终端设备(DTE);绿色(工作正常)/橙色(禁用)/关闭(没有连接) 其它功能: 支持以下的GBIC模块: · 1000BASE-SX GBIC: 光纤最长1804 feet (550 m) · 1000BASE-LX/LH GBIC: 光纤最长32,808 feet (6 miles or 10 km) · 1000BASE-ZX GBIC: 光纤最长328,084 feet (62 miles or 100 km) 配置端口 配置一组端口 命令 目的 Step 1 configure terminal 进入配置状态 Step 2 Switch(config)# interface range {vlan vlan_ID - vlan_ID} {{fastethernet gigabitethernet } slot/interface - interface} [, {vlan vlan_ID - vlan_ID} {{fastethernet gigabitethernet } slot/interface - interface}] 进入组配置状态 Step 3 可以使用平时的端口配置命令进行配置 Step 4 end 退回 Step 5 show interfaces [interface-id] 验证配置 Step 6 copy running-config startup-config 保存
当使用interface range命令时有如下的规则: · 有效的组范围: o vlan从1 到4094 o fastethernet 槽位/{first port} - {last port} o gigabitethernet槽位/{first port} - {last port} · 端口号之间需要加入空格,如:interface range fastethernet 2/1 – 5 是有效的,而interface range fastethernet 2/1-5 是无效的. · interface range 命令只能配置已经存在的interface vlan · 所有在同一组的端口必须是相同类别的。 见以下例子: 4006# configure terminal
4006(config)# interface range fastethernet2/1 - 5
4006(config-if-range)# no shutdown 40065(config-if-range)# *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet2/1, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet2/2, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet2/3, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet2/4, changed state to up *Oct 6 08:24:35: %LINK-3-UPDOWN: Interface FastEthernet2/5, changed state to up *Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet2/05, changed state to up *Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet2/3, changed state to up *Oct 6 08:24:36: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet2/4, changed state to up
以下的例子显示使用逗号来配置不同类型端口的组: 4006# configure terminal
4006(config)# interface range fastethernet2/1 – 3, gigabitethernet3/1 - 2
4006(config-if-range)# no shutdown 4006(config-if-range)# *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet2/1, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet2/2, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface FastEthernet2/3, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet3/1, changed state to up *Oct 6 08:29:28: %LINK-3-UPDOWN: Interface GigabitEthernet3/2, changed state to up *Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/ 1, changed state to up *Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/ 2, changed state to up *Oct 6 08:29:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/ 3, changed state to up
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
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