攻城獅論壇-cisco命令解釋_第1頁
攻城獅論壇-cisco命令解釋_第2頁
攻城獅論壇-cisco命令解釋_第3頁
已閱讀5頁,還剩9頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

cisco收錄最常用的Cisco命令分類如下cisco攻城 #^_^#歸原作者cisco收錄最常用的Cisco命令分類如下ciscoswitch配置命用戶模式----模式,使用命令模 全局配置模式-----接口模式,使用命令"interface+接口類型+接全局配置模式-----線控模式,使用命令"line+接口類型+接注showrunningconfig顯示所有的配置showversin顯示版本號和寄存器值shutdown關(guān)閉接口noshutdown打開接ipaddip地址配置IPsecondary+IP地址為接口配置第二個IPshowinterface+接口類型+接查看接口管理性showcontrollersinterface查看接口是否有DCE電纜showhistory查看歷史記錄showterminal查看終端記錄大hostname+標(biāo)configmemory修改保存在NVRAMexectimeout00enablepassword+配置明enasec+配置密文linevty04/15進(jìn)入 net接口password+配置 netlineaux0進(jìn)入AUX接口password+配置linecon0進(jìn)入CON接口password+配置bandwidth+置帶寬noipaddress刪除已配置的IPshowstartupconfig查看NVRAM中的配置信息copyrun-configatartupconfig保存信息NVRAMwrite保存信息到NVRAMerasestartup-config清除NVRAM中的配置信showipinterfacebrief查看接口的謫要信bannermotd信息+#配置路由器或交換機(jī)的描素信description+信息聽描素信息vlandatabase進(jìn)入VLAN數(shù)據(jù)庫模式vlan+vlan號+名稱創(chuàng)建VLANswitchportaccessvlanvlan號為VLAN為配接interfacevlanvlan號進(jìn)入VLAN接口模ipadd+ip地址為VLAN配置管理IP地址vtp+service/tracsparent/client配置SW的VTP工作模式vtp++配置SW的VTPvtp+password+配置SW的switchportmodetrunk啟用中繼novlan+vlan號刪除VLAN攻城 #^_^#歸原作者所有 本資料供試showiprouteshowipprotocols顯示了被配置在路由器上的路由選擇協(xié)議,同時給出了在路由選擇協(xié)議中使用的定時routerripRIPinterfacelookback0激活邏debugip+協(xié)議動態(tài)查看路由更新信息undebugall關(guān)閉所有DEBUG信息routereigrp+as號激活EIGRP路由協(xié)議network+網(wǎng)段+子網(wǎng)掩碼發(fā)布直連網(wǎng)段showipeigrpneighbors查看鄰居表showipeigrptopology查看拓?fù)浔韘howipeigrptraffic查看發(fā)送包數(shù)量routerospfprocess-ID激活OSPF協(xié)議network+直連網(wǎng)段+area+區(qū)域號發(fā)布直連網(wǎng)段showipospf顯示OSPF的進(jìn)程號和ROUTER-IDencapsulation+封裝格式更改封裝格式noipadmain-lookup關(guān)閉路由器的查找iprouting在三層交換機(jī)上啟用路由功能showuser查看SW的用戶clearline線路除線configureterminal進(jìn)入配置狀}攻城獅(技術(shù)+生活)攻城 #^_^#歸原作者所有 本資料供試configureterminal進(jìn)入配置狀interfacefastethernet|gigabitethernetinterface-id|vlanvlan-id|port-channelport-channel-number}進(jìn)入端口配置狀態(tài)noswitchport把物理端口變成ipaddressip_addresssubnet_mask配置IP地址和掩noshutdown激活端口Switch(config)#interfacegigabitethernet0/2Switch(config-if)#noswitchportSwitch(config-if)#ipaddress1Switch(config-if)#noshutdownconfigureterminal進(jìn)入配置狀vlanvlan-idVLAN號然后進(jìn)vlan配態(tài),可以輸入一VLAN號或舊的來進(jìn)行修改。namevlan-name可選)輸入一個VLAN名,如果沒有配置VLAN名,缺省的名字是VLAN號前面用0填滿的4位數(shù),如VLAN0004是VLAN4的缺省名字mtumtu-size可選MTU大小Switch#configureterminalSwitch(config)#vlan20Switch(config-vlan)#nametest20Switch(config-vlan)#end或Switch#vlandatabaseSwitch(vlan)#vlan20nametest20Switch(vlan)#exitconfigureterminal進(jìn)入配置狀態(tài)interfaceinterface-id進(jìn)入要分配的端攻城獅(技術(shù)+生活)攻城獅 歸原作者所有本資料試switchportmodeaccess定義二層switchportaccessvlanvlan-id把端口分配給某一例Switch#configureEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#interfacefastethernet0/1Switch(config-if)#switchportmodeaccessSwitch(config-if)#switchportaccessvlan2Switch(config-if)#endconfigureterminal進(jìn)入配置狀interfaceinterface-Id進(jìn)入端口配置狀switchporttrunkencapsulationisl|dot1q|negotiate}配置trunk封裝ISL802.1Q或自動switchportmodedynamicauto|desirable|trunk}配置二層trunk模式為dynamicdesirable—把端口設(shè)置為trunk如果對方端口是trunk,desirable,配置Native或自動模式,trunk—設(shè)置端口為強(qiáng)制的trunk方式,而不理會對方端口是否為trunkswitchportaccessvlanvlan-id可選)指定一個缺省VLAN,如果此端口不再是trunkswitchporttrunknativevlanvlan-id802.1QnativeVLAN號Switch#configureEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#interfacefastethernet0/4Switch(config-if)#switchporttrunkencapsulationdot1qSwitch(config-if)#end定義TRUNK允許的VLANconfigureterminal入配置狀態(tài)interfaceinterface-id進(jìn)入端口配switchportmodetrunk配置二層口為switchporttrunkallowedvlanadd|all|except|removevlan-list可選)配置trunk允許VLAN.使用add,all,except,removenoswitchporttrunkallowedvlan允許所有VLAN通過攻城獅(技術(shù)+生活)Switch(config-if)#switchporttrunkallowedvlanremove2Switch(config-if)#endconfigureterminal進(jìn)入配置狀interfaceinterface-id進(jìn)入配置成802.1qtrunk的端口switchporttrunknativevlanvlan-IdnativeVLAN號noswitchporttrunknativevlan端口配置命令回到缺省的狀態(tài) -name配置VTPvtpmodeserverSwitch1配置成VTPserver.showvtpstatus驗證VTP的配置showvlanconfigureterminal進(jìn)入配置狀interfacefastethernet0/1F0/1端switchportmodetrunk配置成showinterfacesfastethernet0/1switchport驗證VLAN配置showvlantrunk已經(jīng)起來,在switch2上驗證已經(jīng)學(xué)到相的vlan配configureterminal在Switch1上進(jìn)入配置狀interfacefastethernet0/1進(jìn)入要配置的端spanning-treevlan8port-priority10將端口權(quán)值10賦與VLANspanning-treevlan9port-priority10將端口權(quán)值10賦與VLANspanning-treevlan10port-priority10將端口權(quán)值10賦與VLAN10.interfacefastethernet0/2進(jìn)入F0/2spanning-treevlan3port-priority10將端口權(quán)值10賦與VLANspanning-treevlan4port-priority10將端口權(quán)值10賦與VLANspanning-treevlan5port-priority10將端口權(quán)值10賦與VLANspanning-treevlan6port-priority1010賦與VLAN10end退出showrunning-config驗證配配置STPTrunk1走VLAN8-10,Trunk2走configureterminalSwitch1配置狀interfacefastethernet0/1switchporttrunkencapsulationisl|dot1q|negotiate}配置封裝switchportmodetrunk配置Trunk,ISL封裝exit退exit退showrunning-config驗證配showvlanswitch1已經(jīng)學(xué)到Vlanconfigureterminal進(jìn)入配置狀態(tài)interfacefastethernet0/1F0/1spanning-treevlan2cost30設(shè)置Vlan2生成樹路spanning-treevlan3cost30設(shè)置Vlan3生成樹路spanning-treevlan4cost30設(shè)置Vlan4生成樹路徑30end退出end退出showrunning-config驗證配補(bǔ)充 *iproute命Router(config)#iproute< 網(wǎng)絡(luò)或子網(wǎng)號子網(wǎng)掩碼下一路由器IP|從本地出口的地址>[管理距離0~255,默認(rèn)為1]*ipdefault-networkRouter(configiproute下一路由器IP地址|從本地出口的地址>*使用router和networkRouter(configrouter路由協(xié)rip|igrp|eigrp|ospf|is-is等自主系統(tǒng)號]Router(config-router)#network<直接相連的要用此路由協(xié)議的網(wǎng)絡(luò)號>Router(config-router)#network<直接相連的要用此路由協(xié)議的網(wǎng)絡(luò)號>*路由信息協(xié)議Router(config-routernetwork直接相連的要用rip協(xié)議的有類別網(wǎng)絡(luò)號>Router#showipprotocolsRouter#showiprouteRouter#debugiprip*內(nèi)部網(wǎng)關(guān)路由協(xié)議<Router(config-routernetwork直接相連的要用igrp協(xié)議的有類別網(wǎng)絡(luò)號>Router#showipinterfaceRouter#showipprotocolsRouter#showiprouteRouter#debugipripRouter#<有故障的

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論