思科路由器命令大全_第1頁
思科路由器命令大全_第2頁
思科路由器命令大全_第3頁
已閱讀5頁,還剩5頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡介

1、思科交換機(jī)路由器命令大全交換機(jī)命令:switch用戶模式1:進(jìn)入特權(quán)模式switch enableswitch#2:進(jìn)入全局配置模式configure switch enableswitchconfigure switch(conf)#3:交換機(jī)命名 hostname aptech2950以aptech2950為例switch enable switchconfigure terminalswitch(conf)#hostname aptch-2950 aptech2950(conf)#4:配置使能口令enable password cisco以cisco為例switch enable swi

2、tchconfigure terminal switch(conf)#hostname aptech2950(conf)# enable password cisco5:配置使能密碼enablesecretciscolab以cicsolab為例IPswitch enableswitchconfigure terminal switch(conf)#hostname aptch2950aptech2950(conf)# enablesecretciscolabaptech2950(conf)#no ipdomain-lookupIP地址解析特性aptech2950(conf)#loggingsy

3、nchronous設(shè)置啟用消息同步特性aptech2950(conf)#interface range fastethernet0/1-20aptech2950(conf-if-range)#spanning-tree portfast設(shè)置快速端口aptech2950(conf)#interface range fastethernet 0/23-24 aptech2950(conf-if-range)#swichport modetrunk設(shè)置主干道端口aptech2950(conf)#spanning-treeuplingkfast設(shè)置阻塞啟用迅速(只可以在訪問層啟用)6:設(shè)置虛擬局域網(wǎng)v

4、lan 1interface vlan switch enableswitchconfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface vlan 1 aptech2950(conf-if)#ip address 192.168.1.1255.255.255.0ipaptech2950(conf-if)#noshut是配置處于運(yùn)行中aptech2950(conf-if)#exit aptech2950(conf)#ip default-gateway192.168.254設(shè)置網(wǎng)關(guān)地址7:進(jìn)入交換機(jī)

5、某一端口interfacefastehernet 0/17以17端口為例switch enable switchconfigure terminal switch(conf)#hostname aptech2950(conf)# interface fastehernet 0/17 aptech2950(conf-if)#8:查看命令switch enableswitch# show version察看系統(tǒng)中的所有版本信息show interface vlan 1ip 協(xié)議的配置信息show running-configure 查看交換機(jī)當(dāng)前起作用的配置信息show interfacefast

6、ethernet0/11信息show mac-address-tablemacshow mac-address-table aging-timemac9:交換機(jī)恢復(fù)出廠默認(rèn)恢復(fù)命令switch enableswitch# erase startup-configure switch# reload10:switch enableswitchconfigure terminal switch2950(conf)#hostname aptch-2950 aptech2950(conf)# interface fastehernet0/1717aptech2950(conf-if)#duplexfu

7、ll/half/auto有 fullhalf,autoswitch enableswitch# show cdpcdpshow cdp interface fastethernet 0/1717cdp信息show cdp traffic查看有關(guān)cdp包的統(tǒng)計(jì)信show cdp nerghbors列出與設(shè)備相連的cisco設(shè)備12:csico2950的密碼恢復(fù)拔下交換機(jī)電源線。用手按著交換機(jī)的 MODE 鍵,插上電源線在 switch:后執(zhí)行 flash_ini 命令:switch: flash_ini查看 flash 中的文件: switch: dir flash:把“config.text”

8、文件改名為“config.old”: switch: rename flash: config.text flash: config.old執(zhí)行boot:switch: boot交換機(jī)進(jìn)入是否進(jìn)入配置的對話,執(zhí)行 no :進(jìn)入特權(quán)模式察看 flash 里的文件: show flash :“config.old文件改名為“config.text:switch:rename config.old flash: config.text把“config.text”拷入系統(tǒng)的“running-configure”: copy flash: config.text system : running-con

9、figure把配置模式重新設(shè)置密碼存盤,密碼恢復(fù)成功。13:交換機(jī) telnet 遠(yuǎn)程登錄設(shè)置:switchen switchconfigure switch(conf)#hostname aptech-2950aptech2950(conf)#enable password cisco以cisco 為特權(quán)模式密碼aptech2950(conf)#interface fastethernet 0/117端口為 telnet遠(yuǎn)程登錄端口aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 aptech2950(conf-if)#no s

10、hutaptech2950(conf-if)#exit aptech2950(conf)line vty 040-4 個(gè)用戶可以telnet登陸aptech2950(conf-line)#loginaptech2950(conf-line)#password edge以edge主機(jī)設(shè)置:ip192.168.1.2主機(jī)的ip必須和交換機(jī)端口的地址在同一網(wǎng)絡(luò)netmask255.255.255.0gate-way192.168.1.1是交換機(jī)端口地址運(yùn)行:telnet 192.168.1.1telnetpassword : edge aptech2950enpassword: cisco apte

11、ch#14:交換機(jī)配置的重新載入和保存設(shè)置完成交換機(jī)的配置后: aptech2950(conf)#reload是否保存(y/n)y: 保存設(shè)置信息n:不保存置信息路由器命令router用戶模式1:進(jìn)入特權(quán)模式router enablerouter #2:進(jìn)入全局配置模式configure router enablerouter configure router (conf)#3:交換機(jī)命名 hostname routera以routerA為router enablerouter configure terminal router(conf)#hostname routera (conf)#4:

12、配置使能口令enable password cisco以cisco為例router enablerouter configure terminal router(conf)#hostname routerArouterA (conf)# enable password cisco5:配置使能密碼enablesecretciscolab以cicsolab為例router enablerouter configure terminal router(conf)#hostname routerArouterA (conf)# enable secret ciscolab 6:interfacefas

13、tehernet0/1717router enablerouter configure terminal router(conf)#hostname routerArouterA (conf)# interface fastehernet 0/17 routerA (conf-if)#進(jìn)入路由器的某一子端口 interface 0/17.1以17端口的1子端口為例router enablerouter configure terminal router(conf)#hostname routerArouterA (conf)# interface fastehernet 0/17.1 7:設(shè)置

14、端口 ip 地址信息router enablerouter configure terminal router(conf)#hostname routerA routerA(conf)# interfacefastehernet0/1717routerA (conf-if)#ip address 192.168.1.1 255.255.255.0iprouterA (conf-if)#noshut是配置處于運(yùn)行中routerA (conf-if)#exit 8:查看命令show router enablerouter # show version察看系統(tǒng)中的所有版本信息show interfa

15、ce vlan 1ip 協(xié)議的配置信息show running-configure 查看交換機(jī)當(dāng)前起作用的配置信息show interfacefastethernet0/11信息show mac-address-tablemacshow mac-address-table aging-time查看mac地址表自動老化時(shí)間showcontrollersserial+ 編號查看串口類show ip router查看路由器的路由表9:cdp 相關(guān)命令router enablerouter #show cdp查看設(shè)備的 cdp 全局配置信息show cdpinterfacefastethernet 0

16、/1717cdp信息show cdp traffic查看有關(guān)cdp包的統(tǒng)計(jì)信show cdp nerghbors列出與設(shè)備相連的cisco設(shè)備10:csico2600的密碼恢復(fù)win+breakmonitor在提示符下輸入命令修改配置寄存器的值,然后重新啟動路由器remmon1confreg 0 x2142 remmon2resetsetup“no”,execstartup-config不變把startup-configrunning-configenablerouterenablerouter#copy startup-config running-config routerconfigur

17、e terminal router(conf)#enable password cisco router(conf)c onfig-register 0 x2102startup-configrouter #copy running-config startup-config router #reload11:路由器 telnet 遠(yuǎn)程登錄設(shè)置:routerenrouter configure terminal router (conf)#hostname routerArouterA (conf)#enable password cisco為特權(quán)模式密碼routerA (conf)#inte

18、rface fastethernet 0/1routerA(conf-if)#ip addressrouterA(conf-if)#ip address192.168.1.1255.255.255.0routerA(conf-if)#no shutrouterA(conf-if)#exitrouterA(conf)linevty040-4telnetrouterA (conf-line)#loginrouterA (conf-line)#password edge為遠(yuǎn)程登錄的用戶密碼主機(jī)設(shè)置:ip192.168.1.2機(jī)的ip必須和交換機(jī)端口的地址在同一網(wǎng)絡(luò)netmask255.255.255

19、.0gate-way192.168.1.1是交換機(jī)端口地址運(yùn)行:telnet 192.168.1.1telnetpassword : edge routeraen以 cisco以 17 端設(shè)以 edge主網(wǎng)關(guān)地址password: cisco routera#12:配置路由器的標(biāo)識banner $連接到路由器的終端都會收到。routerenrouter configure terminal router (conf)#hostname routerArouterA(conf)#banner motd $This is aptech companyrouter !Please dont chan

20、ge the configuration without 13:配置接口標(biāo)識description 接口標(biāo)識用于區(qū)分路由器的各個(gè)接口。routerenrouter configure terminal router (conf)#hostname routerArouterA(conf)#interface fastethernet 0/10/1 接口為例routerA(conf-if)# description this is a fast Ethernet port used toconnecting the companys intranet!14:配置超時(shí)consoleexec10ro

21、uterenrouter configure terminal router (conf)#hostname routerA routerA(conf)#line console 0routerA(conf-if)e xec-timeout00個(gè)“0”代表分鐘,第二個(gè)“0”代表秒15:配置串口參數(shù)兩臺路由器通過串口連接需要一個(gè)做為 DTE,一個(gè)做為 DCE。DCE 設(shè)備要向DTEDCErouterenrouter configure terminal router (conf)#hostname routerArouterA(conf)#interface serial 0/0routerA(

22、conf_if)#clockrate6400064000routerA(conf_if)#bandwidth 64提供帶寬為 64DTEiprouterenrouter configure terminal router (conf)#hostname routerBrouterB(conf)#interface serial 0/0 routerB(conf_if)#ip address 192.168.1.1 16:靜態(tài)路由的配置Arouterenable routerconfigure terminal router(conf)#hostname routerArouterA(conf)

23、#interface fastethernet 0/1A1routerA(conf-if)#ip address 192.168.2.1 255.255.255.0 routerA(conf-if)#no shutdownrouterA(conf-if)#exitrouterA(conf)# interfacefastethernet0/0A0routerA(conf-if)#ip address 192.168.1.2 255.255.255.0 routerA(conf-if)#no shutdownAip192.168.1.1 255.255.255.0192.168.1.2Brouterenable routerconfigure terminal router(conf)#

溫馨提示

  • 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)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論