【文章內(nèi)容簡介】
r0/1 3, gigabitether0/1 2 Switch(configifrange) no shutdown Switch(configifrange) *Oct 6 08:29:28: %LINK3UPDOWN: Interface FastEther0/1, changed state to up *Oct 6 08:29:28: %LINK3UPDOWN: Interface FastEther0/2, changed state to up *Oct 6 08:29:28: %LINK3UPDOWN: Interface FastEther0/3, changed state to up *Oct 6 08:29:28: %LINK3UPDOWN: Interface GigabitEther0/1, changed state to up *Oct 6 08:29:28: %LINK3UPDOWN: Interface GigabitEther0/2, changed state to up *Oct 6 08:29:29: %LINEPROTO5UPDOWN: Line protocol on Interface GigabitEther0/ 1, changed state to up *Oct 6 08:29:29: %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/ 2, changed state to up *Oct 6 08:29:29: %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/ 3, changed state to up 配置三層口 Catalyst 3560 支持三種類型的三層端口 : SVIs: 即 interface vlan Note 當生成一個 interface Vlan 時,只有當把某一物理端口分配給它時才能被激活 三層以太網(wǎng)通道口( EtherChannel) : :以太通道由被路由端口組成。以太通道端口接口在 “配置以太通道 ”中被描述。 .路由口:路由口是指某一物理端口在端口配置狀態(tài)下用 no switchport 命令生成的端口 所有的三層都需要 IP 地址以實現(xiàn)路由交換 配置步驟如下: 命令目的 Step 1 configure terminal 進入配置狀態(tài) Step 2 interface {{fastether | gigabitether} interfaceid} | {vlan vlanid} | {portchannel portchannelnumber} 進入端口配置狀態(tài) Step 3 no switchport 把物理端口變成三層口 Step 4 ip address ip_address sub_mask 配置 IP 地址和掩碼 Step 5 no shutdown 激活端口 Step 6 End 退出 Step 7 show interfaces [interfaceid]show ip interface [interfaceid]show runningconfig interface [interfaceid] 驗證配置 Step 8 copy runningconfig startupconfig 保存配置 配置舉例如下: Switch configure terminal Enter configuration mands, one per line. End with CNTL/Z. Switch(config) interface gigabitether0/2 Switch(configif) no switchport Switch(configif) ip address Switch(configif) no shutdown Switch(configif) end 監(jiān)控及維護端口 監(jiān)控端口和控制器的狀態(tài) 主要命令見下表: Show Commands for Interfaces Command 目的 show interfaces [interfaceid] 顯示所有端口或某一端口的狀態(tài)和配置 . show interfaces interfaceid status [errdisabled] 顯示一系列端口的狀態(tài)或錯誤-關(guān)閉的狀態(tài) show interfaces [interfaceid] switchport 顯示二層端口的狀態(tài),可以用來決定此口是否為二層或三層口。 show interfaces [interfaceid] description 顯示端口描述 show ip interface [interfaceid] 顯示所有或某一端口的 IP 可用性狀態(tài) show runningconfig interface [interfaceid] 顯示當前配置中的端口配置情況 show version 顯示軟硬件等情況 舉例如下 : Switch show interfaces status Port Name Status Vlan Duplex Speed Type Gi0/1 connected routed afull a100 10/100/1000Base TX Gi0/2 wce server disabled routed auto auto 10/100/1000Base TX Gi0/3 ip wccp webcache notconnect routed auto auto 10/100/1000Base TX Gi0/4 notconnect routed auto auto 10/100/1000Base TX Gi0/5 notconnect routed auto auto 10/100/1000Base TX Gi0/6 disabled routed auto auto 10/100/1000Base TX Gi0/7 disabled routed auto auto 10/100/1000Base TX Gi0/8 disabled routed auto 100 10/100/1000Base TX Gi0/9 notconnect routed auto auto 10/100/1000Base TX Gi0/10