【正文】
igabitethernet槽位/{first port} {last port} configure terminal進入配置狀態(tài).Step end退出Step interface interfaceid進入要加入描述的端口Step copy runningconfig startupconfig保存Use the no description interface configuration mand 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 terminalEnter configuration mands, one per line. End with CNTL/Z.4006(config) interface fastethernet2/44006(configif) description Connects to Marketing4006(configif) end4006 show interfaces fastethernet2/4 descriptionInterface Status Protocol DescriptionFa2/4 up down Connects to Marketing配置三層口Catalyst 4006支持三種類型的三層端口: configure terminal進入配置狀態(tài)Step no shutdown激活端口Step shutdown關(guān)閉Step在3550上VLAN之間的數(shù)據(jù)包可以由VLAN端口進行轉(zhuǎn)發(fā)。 configure terminal進入配置狀態(tài)Step52615 switchport mode access定義二層口Step show interfaces slot/port switchport驗證端口的管理模式和VLAN情況Step359 interface interfaceid進入端口配置Step show interfaces interfaceid switchport 驗證VLAN配置情況.Step3使用負載均衡后, 可以把不同VLAN的流量分配到不同的trunk上。 configure terminal進入Switch5913 configure terminal在Switch 1上進入配置狀態(tài)Step spanningtree vlan 10 portpriority 10將端口權(quán)值10賦與VLAN 10.Step spanningtree vlan 4 portpriority 10將端口權(quán)值10賦與VLAN 4.Step show runningconfig驗證配置Step371115191 end退出Step Switch(configif) no switchport改變該端口為三層接口Step1配置狀態(tài)Steps information:Partner Partner Partner Partner GroupPort Name Device ID Port Age Flags Cap.Fa5/6 JAB031301 2/47 18s SAC 2FAge of the port in the current state: 00h:10m:57s下面例子顯示如何確認接口配置后的portchannel interface 2 配置的:Switch show etherchannel 2 portchannelPortchannels in the group:Portchannel: Po2Age of the Portchannel = 00h:23m:33sLogical slot/port = 10/2 Number of ports in agport = 2GC = 0x00020001 HotStandBy port = nullPort state = Portchannel AgInusePorts in the Portchannel:Index Load Port1 00 Fa5/60 00 Fa5/7Time since last port bundled: 00h:23m:33s Fa5/6Switch配置以太通道負載均衡Command Purpose Step end退出Step你可以使用指定網(wǎng)絡(luò)流量監(jiān)控類型的參數(shù)來配置SPAN會話。目標端口目標端口(監(jiān)視端口)送包來進行分析的可交換或可路由端口。在一個獨立的,基于用戶指定應(yīng)用于源端口的流量類型(進,出或兩者的流量)的SPAN會話中可監(jiān)視一個或多個源端口?;赩LAN的SPAN基于VLAN的SPAN分析一個或多個VLAN的網(wǎng)絡(luò)流量。另外,從一個監(jiān)視出去流量的VLAN路由到其它LAN的流量也不會被看到。1配置狀態(tài)Step2Switch(config) [no] monitor session{session_number} {destination {interfacetype/num} }指定SPAN會話號(1到6)和目標端口,或者VLAN,同時指定監(jiān)視的流量方向。監(jiān)視是通過在指定VLAN上的所有端口進行的。1配置狀態(tài)Step configure terminal進入Switch1? 不活躍的VLAN不允許進行基于VLAN的SPAN配置。出口SPAN (Tx) 復(fù)制網(wǎng)絡(luò)流量是由源端口發(fā)送出去的流量。指定一個trunk接口作為目標端口會斷掉接口上的trunk通道。show monitor session命令顯示一個SPAN會話的操作狀態(tài)。SPAN不影響源端口的網(wǎng)絡(luò)流量的交換;一個由源接口接收或傳輸?shù)膹?fù)制會送到目標接口。使用no的命令使負載均衡變回缺省狀態(tài)Step end退出Step1 Switch(config) interface {fastethernet |gigabitethernet} slot/port進入物理端口配置模式Step Switch(configif) ip address ip_address mask配置IP地址Step要捆綁一個以太通道時,會產(chǎn)生一個邏輯portchannel端口,邏輯端口下的配置可影響與之捆綁的物理端口,但物理端口下的配置不能影響邏輯端口的配置。18141062 end退出Step spanningtree vlan 3 portpriority 10將端口權(quán)值10賦與VLAN 3.Step spanningtree vlan 9 portpriority 10將端口權(quán)值10賦與VLAN 9.Step show vlan當trunk已經(jīng)起來,在switch2上驗證已經(jīng)學(xué)到相關(guān)的vlan配置Step1284基于端口權(quán)值的負載均衡示意圖 trunk1將發(fā)送和接收VLAN8-10的數(shù)據(jù),trunk2將發(fā)送和接收VLAN3-6的數(shù)據(jù)配置如下:Command Purpose Step62 end退出Step configure terminal進入配置狀態(tài)Step8 dynamic desirable—把端口設(shè)置為trunk如果對方端口是trunk, desirable, 或自動模式2 show runningconfig interface slot/port驗證端口的VLAN號Step interface slot/port進入要分配的端口Step4當刪除一個VLAN時,原來屬于此VLAN的端口將處于非激活的狀態(tài),直到將其分配給某一VLAN。514 生成、修改以太網(wǎng)VLAN命令目的Step每一個VLAN均可看成是一個邏輯網(wǎng)絡(luò),發(fā)往另一VLAN的數(shù)據(jù)包必須由路由器或網(wǎng)橋轉(zhuǎn)發(fā)(如下圖)。 interface {vlan vlanid} | {{fastethernet | gigabitethernet} slot/port} | {portchannel portchannelnumber}選擇要關(guān)閉的端口Step copy runningconfig startupconfig保存配置配置舉例如下:4006 configure terminalEnter configuration mands, one per line. End with CNTL/Z.4006(config) interface gigabitethernet3/24006(configif) no switchport4006(configif) ip address 4006(configif) no shutdown4006(configif) end show ip interface命令:4006 show ip interface gigabitethernet3/2GigabitEthernet3/2 is up, line protocol is up Internet 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 [type slot/interface] 顯示所有端口或某一端口的狀態(tài)和配置.show interfaces interfaceid status [errdisabled]顯示一系列端口的狀態(tài)或錯誤-關(guān)閉的狀態(tài)show interfaces [interfaceid] switchport顯示二層端口的狀態(tài),可以用來決定此口是否為二層或三層口。 ip address ip_address subnet_mask 配置IP地址和掩碼Step .路由口:路由口是指某一物理端口在端口配置狀態(tài)下用no switchport命令生成的端口 所有的三層都需要IP地址以實現(xiàn)路由交換配置步驟如下:命令目的Step show interfaces interfaceid descriptionorshow runningconfig驗證.Step configure terminal進入配置模式Step duplex {auto | full | half}設(shè)置全雙工或半雙工. Step 但對于GBIC端口則不能配置速率及雙工模式,有時可以配置nonegotiate, 當需要聯(lián)接不支持自適應(yīng)的其它千兆端口時命令目的 Step62 1000BASELX/LH GBIC: 光纖最長32,808 系統(tǒng)狀態(tài):綠色(正常)/紅色(故障) 基于命令行界面(CLI)的管理控制臺,提供詳細的帶外管理 利用Cisco千兆位以太通道技術(shù),可以匯聚高達16Gbps的帶寬 第2層硬件數(shù)據(jù)包轉(zhuǎn)發(fā)率可達48Mpps IP DSCP和IP 優(yōu)先權(quán) IP多播路由協(xié)議(距離向量多播路由協(xié)議[DVMRP]、PIM、SSM)