思科交換機(jī)路由器命令大全_第1頁(yè)
思科交換機(jī)路由器命令大全_第2頁(yè)
思科交換機(jī)路由器命令大全_第3頁(yè)
思科交換機(jī)路由器命令大全_第4頁(yè)
思科交換機(jī)路由器命令大全_第5頁(yè)
免費(fèi)預(yù)覽已結(jié)束,剩余15頁(yè)可下載查看

下載本文檔

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

文檔簡(jiǎn)介

1、1.交換機(jī)支持的命令:交換機(jī)基本狀態(tài):switch: ; ROM:態(tài),路由器是 rommon>hostname> ;用戶(hù)模式hostname# ;特權(quán)模式hostname(config)# ;全局酉己置模式hostname(config-if)# ; 接 口狀態(tài)交換機(jī)口令設(shè)置:switch>enable ;進(jìn)入特權(quán)模式switch#config terminal ;進(jìn)入全局配置模式switch(config)#hostname ;設(shè)置交換機(jī)的主機(jī)名switch(config)#enable secret xxx ; 設(shè)置特權(quán)力口密口令switch(config)#enable

2、 password xxa ;設(shè)置特權(quán)非密口令switch(config)#line console 0switch(config-line)#line vty 0 4switch(config-line)#login;進(jìn)入控制臺(tái)口;進(jìn)入虛擬終端switch(config-line)#password xxswitch#exit ;返回命令交換機(jī)VLANiS置:switch#vlan databaseswitch(vlan)#vlan 2switch(vlan)#no vlan 2;設(shè)置登錄口令xx;進(jìn)入VLANS置;建 VLAN 2;刪 vlan 2switch(config)#int f0

3、/1 switch(config-if)#switchport access vlan 2端口力口入vlan 2設(shè)置為干switch(config-if)#switchport mode trunkswitch(config-if)#switchporttrunk allowedvlan 1,2 ;設(shè)置允許的vlanswitch(config-if)#switchport trunk encap dotlq設(shè)置vlan中繼switch(config)#vtp domainswitch(config)#vtp passwordswitch(config)#vtp mode serverswitc

4、h(config)#vtp mode client交換機(jī)設(shè)置IP地址:switch(config)#interface vlan 1switch(config-if)#ip address;設(shè)置發(fā)vtp域名;設(shè)置發(fā)vtp密碼;設(shè)置發(fā)vtp模式;設(shè)置發(fā)vtp模式;進(jìn)入vlan 1;設(shè)置IP地址switch(config)#ip default-gatewayswitch#dir flash:;查看閃存交換機(jī)顯示命令:switch#write ;保存配置信息;設(shè)置默認(rèn)網(wǎng)關(guān)switch#show vtp ;查看vtp配置信息switch#show run ;查看當(dāng)前配置信息switch#show v

5、lan ;查看 vlan 配置信息switch#show interface ; 查看端 口信息switch#show int f0/0;查看指定端口信息2.路由器支持的命令:路由器顯示命令:router#show run ;顯示配置信息router#show interface ; 顯示接 口信息router#show ip route ; 顯示路由信息router#show cdp nei;顯示鄰居信息router#reload;重新起動(dòng)路由器口令設(shè)置:router>enable ;進(jìn)入特權(quán)模式router#config terminal ;進(jìn)入全局配置模式router(config

6、)#hostname ;設(shè)置交換機(jī)的主機(jī)名router(config)#enable secret xxx ;設(shè)置特權(quán)力口密口令router(config)#enable password xxb ; 設(shè)置特權(quán)非密口令router(config)#line console 0; 進(jìn)入控制臺(tái)口router(config-line)#line vty 0 4;進(jìn)入虛擬終端router(config-line)#login ; 要求口 令驗(yàn)證router(config-line)#password xx ; 設(shè)置登錄口令 xxrouter(config)#(Ctrl+z) ;返回特權(quán)模式router

7、#exit ;返回命令路由器配置:router(config)#int s0/0;進(jìn)入 Serail 接口router(config-if)#no shutdown ;激活當(dāng)前接口router(config-if)#clock rate 64000;設(shè)置同步時(shí)鐘router(config-if)#ip address;設(shè)置 IP 地址router(config-if)#ip address second;設(shè)置第二個(gè)IProuter(config-if)#int f0/0.1;進(jìn)入子接口router(config-subif.1)#ip address;設(shè)置子接口 IProuter(config

8、-subif.1)#encapsulation dot1q; 綁定vlan中繼協(xié)議router(config)#config-register 0x2142;跳過(guò)配置文件router(config)#config-register 0x2102;正常使用配置文件router#reload ; 重新弓 I 導(dǎo)路由器文件操作:router#copy running-config startup-config; 保存酉己置router#copy running-config tftp ;保存酉已置至U tftprouter#copy startup-config tftp ;開(kāi)機(jī)酉己置存至U tft

9、prouter#copy tftp flash:;下傳文件到 flashrouter#copy tftp startup-config ; 下載酉己置文件ROK 態(tài):Ctrl+Break ;進(jìn)入ROMS控狀態(tài)rommon>confreg 0x2142 ;跳過(guò)配置文件rommon>confreg 0x2102 ;恢復(fù)配置文件rommon>reset ; 重新弓 I 導(dǎo)rommon>copy xmodem:?flash:?; 從 console 傳輸文件rommon>TFTP_FILE=c2600.bin ;指定下載的文件 rommon>tftpdnld ;從

10、tftp 下載router(config)#frame-relay switching ;使能幀中繼靜態(tài)路由:動(dòng)態(tài)路由:幀中繼命令:rommon>dir flash: ;查看閃存內(nèi)容rommon>boot ;弓I導(dǎo) IOSip routerouter(config)#ip routingrouter(config)#router rip;啟動(dòng)路由轉(zhuǎn)發(fā);啟動(dòng)RIP路由協(xié)議。router(config-router)#networkrouter(config-router)#negihbor;設(shè)置發(fā)布路由;點(diǎn)對(duì)點(diǎn)幀中繼用。交換router(config-s0)#encapsulatio

11、n frame-relay;使能幀中繼router(config-s0)#fram-relay lmi-type cisco;設(shè)置管理類(lèi)型router(config-s0)#frame-relay intf-type DCE; 設(shè)置為DCErouter(config-s0)#frame-relay dlci 16;router(config-s0)#frame-relay local-dlci 20; 設(shè)置虛電路號(hào)router(config-s0)#frame-relay interface-dlci 16;router(config)#log-adjacency-changes ; t己錄令

12、口接變化router(config)#int S0/0.1 point-to-point;設(shè)置子接口點(diǎn)對(duì)點(diǎn)router#show frame pvc;顯示永久虛電路router#show frame map;顯示映射基本訪問(wèn)控制列表:router(config)#access-list permit|deny router(config-if)#ip access-group in|out default:outrouter(config)#interface;default:deny any例1:router(config)#access-list 4 permit any router(c

13、onfig)#int f0/0 router(config-if)#ip access-group 4 in擴(kuò)展訪問(wèn)控制列表:access-list permit|deny icmp wild>type access-list permit|deny tcp wild>port例3:router(config)#access-list 101 permit ip any anyrouter(config)#int s0/0router(config-if)#ip access-group 101 in例3:router(config)#access-list 102 permit

14、ip any anyrouter(config)#interface s0/1router(config-if)#ip access-group 102 out刪除訪問(wèn)控制例表:router(config)#no access-list 102router(config-if)#no ip access-group 101 in路由器的nat配置Router(config-if)#ip nat inside ;當(dāng)前接口指定為內(nèi)部接口Router(config-if)#ip nat outside ;當(dāng)前接口 指定為外部接口Router(config)#ip nat inside source

15、static p <私有 IP><公網(wǎng) IP> portRouter(config)#ip nat inside source list 1 pool plRouter(config)#ip nat inside destination list 2 pool p2Router(config)#ip nat inside source list 2 interface s0/0 overloadRouter#show ip nat translationrotary 參數(shù)是輪流的意思,地址池中的IP輪流與NA份配的地址匹配。overload參數(shù)用于PAT將內(nèi)部IP映射到

16、一個(gè)公網(wǎng)IP不同的端口上。外部網(wǎng)關(guān)協(xié)議配置:routerA(config)#router bgp 100配置PPP驗(yàn)證:RouterA(config)#username passwordRouterA(config)#int s0RouterA(config-if)#ppp authentication chap|pap3. PIX防火墻命令Pix525(config)#nameif ethernetO outsidesecurity。;命名接口和級(jí)別Pix525(config)#interface ethernetO auto;設(shè)置接口方式Pix525(config)#interface ethernetl lOO

溫馨提示

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

最新文檔

評(píng)論

0/150

提交評(píng)論