【正文】
Step 6 copy runningconfig startupconfig 保存 Use the no description interface configuration mand to delete the description. This example shows how to add a description on Fast Ether interface 0/4 and to verify the description: Switch config terminal Enter configuration mands, one per line. End with CNTL/Z. Switch(config) interface fastether0/4 Switch(configif) description Connects to Marketing Switch(configif) end Switch show interfaces fastether0/4 description Interface Status Protocol Description Fa0/4 up down Connects to Marketing 配置三層口 Catalyst 3750 支持三種類型的三層端口 : ? 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 show ip interface 命令 : Switch show ip interface gigabitether0/2 GigabitEther0/2 is up, line protocol is up Inter address is Broadcast address is Address determined by setup mand MTU is 1500 bytes Helper address is not set Directed broadcast forwarding is disabled output truncated 監(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),可以用來決定此口是否為二層或三層口。 見以下例子 : Switch configure terminal Switch(config) interface range fastether0/1 5 Switch(configifrange) no shutdown Switch(configifrange) *Oct 6 08:24:35: %LINK3UPDOWN: Interface FastEther0/1, changed state to up *Oct 6 08:24:35: %LINK3UPDOWN: Interface FastEther0/2, changed state to up *Oct 6 08:24:35: %LINK3UPDOWN: Interface FastEther0/3, changed state to up *Oct 6 08:24:35: %LINK3UPDOWN: Interface FastEther0/4, changed state to up *Oct 6 08:24:35: %LINK3UPDOWN: Interface FastEther0/5, changed state to up *Oct 6 08:24:36: %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/05, changed state to up *Oct 6 08:24:36: %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/3, changed state to up *Oct 6 08:24:36: %LINEPROTO5UPDOWN: Line protocol on Interface FastEther0/4, changed state to up 以下的例子顯示使用句號來配置不同類型端口的組 : Switch configure terminal Switch(config) interface range fastether0/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 配置二層端口 3750 的所有端口缺省的端口都是二層口,如果此端口已經(jīng)配置成三層端口的話,則需要用 switchport 來使其成為二層端口。 思科 3750 交換機常用配置手冊