


版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、思科交換機路由器命令大全交換機命令:switch用戶模式1:進入特權模式switch enableswitch#2:進入全局配置模式configure switch enableswitchconfigure switch(conf)#3:交換機命名 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設置啟用消息同步特性aptech2950(conf)#interface range fastethernet0/1-20aptech2950(conf-if-range)#spanning-tree portfast設置快速端口aptech2950(conf)#interface range fastethernet 0/23-24 aptech2950(conf-if-range)#swichport modetrunk設置主干道端口aptech2950(conf)#spanning-treeuplingkfast設置阻塞啟用迅速(只可以在訪問層啟用)6:設置虛擬局域網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是配置處于運行中aptech2950(conf-if)#exit aptech2950(conf)#ip default-gateway192.168.254設置網關地址7:進入交換機
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察看系統中的所有版本信息show interface vlan 1ip 協議的配置信息show running-configure 查看交換機當前起作用的配置信息show interfacefast
6、ethernet0/11信息show mac-address-tablemacshow mac-address-table aging-timemac9:交換機恢復出廠默認恢復命令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查看有關cdp包的統計信show cdp nerghbors列出與設備相連的cisco設備12:csico2950的密碼恢復拔下交換機電源線。用手按著交換機的 MODE 鍵,插上電源線在 switch:后執行 flash_ini 命令:switch: flash_ini查看 flash 中的文件: switch: dir flash:把“config.text”
8、文件改名為“config.old”: switch: rename flash: config.text flash: config.old執行boot:switch: boot交換機進入是否進入配置的對話,執行 no :進入特權模式察看 flash 里的文件: show flash :“config.old文件改名為“config.text:switch:rename config.old flash: config.text把“config.text”拷入系統的“running-configure”: copy flash: config.text system : running-con
9、figure把配置模式重新設置密碼存盤,密碼恢復成功。13:交換機 telnet 遠程登錄設置:switchen switchconfigure switch(conf)#hostname aptech-2950aptech2950(conf)#enable password cisco以cisco 為特權模式密碼aptech2950(conf)#interface fastethernet 0/117端口為 telnet遠程登錄端口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 個用戶可以telnet登陸aptech2950(conf-line)#loginaptech2950(conf-line)#password edge以edge主機設置:ip192.168.1.2主機的ip必須和交換機端口的地址在同一網絡netmask255.255.255.0gate-way192.168.1.1是交換機端口地址運行:telnet 192.168.1.1telnetpassword : edge aptech2950enpassword: cisco apte
11、ch#14:交換機配置的重新載入和保存設置完成交換機的配置后: aptech2950(conf)#reload是否保存(y/n)y: 保存設置信息n:不保存置信息路由器命令router用戶模式1:進入特權模式router enablerouter #2:進入全局配置模式configure router enablerouter configure router (conf)#3:交換機命名 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)#進入路由器的某一子端口 interface 0/17.1以17端口的1子端口為例router enablerouter configure terminal router(conf)#hostname routerArouterA (conf)# interface fastehernet 0/17.1 7:設置
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是配置處于運行中routerA (conf-if)#exit 8:查看命令show router enablerouter # show version察看系統中的所有版本信息show interfa
15、ce vlan 1ip 協議的配置信息show running-configure 查看交換機當前起作用的配置信息show interfacefastethernet0/11信息show mac-address-tablemacshow mac-address-table aging-time查看mac地址表自動老化時間showcontrollersserial+ 編號查看串口類show ip router查看路由器的路由表9:cdp 相關命令router enablerouter #show cdp查看設備的 cdp 全局配置信息show cdpinterfacefastethernet 0
16、/1717cdp信息show cdp traffic查看有關cdp包的統計信show cdp nerghbors列出與設備相連的cisco設備10:csico2600的密碼恢復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 遠程登錄設置:routerenrouter configure terminal router (conf)#hostname routerArouterA (conf)#enable password cisco為特權模式密碼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為遠程登錄的用戶密碼主機設置:ip192.168.1.2機的ip必須和交換機端口的地址在同一網絡netmask255.255.255
19、.0gate-way192.168.1.1是交換機端口地址運行:telnet 192.168.1.1telnetpassword : edge routeraen以 cisco以 17 端設以 edge主網關地址password: cisco routera#12:配置路由器的標識banner $連接到路由器的終端都會收到。routerenrouter configure terminal router (conf)#hostname routerArouterA(conf)#banner motd $This is aptech companyrouter !Please dont chan
20、ge the configuration without 13:配置接口標識description 接口標識用于區分路由器的各個接口。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:配置超時consoleexec10ro
21、uterenrouter configure terminal router (conf)#hostname routerA routerA(conf)#line console 0routerA(conf-if)e xec-timeout00個“0”代表分鐘,第二個“0”代表秒15:配置串口參數兩臺路由器通過串口連接需要一個做為 DTE,一個做為 DCE。DCE 設備要向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:靜態路由的配置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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 湖北省2025年中考第三次模擬考試道德與法治試卷(解析版)
- 2025年下半年食品飲料行業寒來暑往結構破局
- 2025年生物質能源分布式能源系統智能控制策略與優化報告
- 公司資質及發放管理制度
- 公司網約車車輛管理制度
- 公司工作證使用管理制度
- 培訓學校類庫房管理制度
- pivas耗材管理制度
- 培訓信息化動態管理制度
- ism規則公司管理制度
- 三年級下冊混合計算題100道及答案
- 移動網格長資格認證考試題庫(含A.B卷)
- 新解讀《CJJ 128-2017生活垃圾焚燒廠運行維護與安全技術標準 》
- 口腔護理保健課件
- 云南省部分學校2024-2025學年高三上學期9月聯考試題 生物 含答案
- 網絡傳播概論(第5版)課件 第四章 網絡傳播的多重策略
- 廣東省2025屆高三第一次調研考試 化學試卷(含答案)
- 中小企業數字化轉型工作方案模板范文
- 收肌康復創新技術
- 2024年(學習強國)思想政治理論知識考試題庫與答案
- DL∕T 540-2013 氣體繼電器檢驗規程
評論
0/150
提交評論