指示燈和端口規(guī)格 · 系統(tǒng)狀態(tài):綠色(正常)/紅色(故障) · 交換機負(fù)載利用率:總交換使用率在1%到100%之間 · 控制端口:RJ-45凹式端口 · 重啟(交換機隱含保護(hù)) · 治理端口:10/100BASE-TX(RJ-45凹式)數(shù)據(jù)終端設(shè)備(DTE);綠色(工作正常)/橙色(禁用)/關(guān)閉(沒有連接) 其它功能: 支持以下的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 進(jìn)入配置狀態(tài) 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}] 進(jìn)入組配置狀態(tài) Step 3 可以使用平時的端口配置命令進(jìn)行配置 Step 4 end 退回 Step 5 show interfaces [interface-id] 驗證配置 Step 6 copy running-config startup-config 保存
當(dāng)使用interface range命令時有如下的規(guī)則: · 有效的組范圍: 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 命令只能配置已經(jīng)存在的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