自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

CISCO常用配置命令及參數(shù)

網(wǎng)絡(luò)
CISCO的產(chǎn)品類型非常多,也是企業(yè)常常會(huì)選擇的一個(gè)品牌。所以,作為運(yùn)維人員,維護(hù)企業(yè)的網(wǎng)絡(luò),對(duì)于Cisco的產(chǎn)品的配置也要有所了解。

啟動(dòng)接口,分配IP地址:

  1. router> 
  2. router> enable  
  3. router#  
  4. router# configure terminal  
  5. router(config)#  
  6. router(config)# interface Type Port  
  7. router(config-if)# no shutdown  
  8. router(config-if)# ip address IP-Address Subnet-Mask  
  9. router(config-if)# ^z 

配置RIP路由協(xié)議:30秒更新一次

  1. router(config)# router rip  
  2. router(config-if)# network Network-Number <--通告標(biāo)準(zhǔn)A,B,C類網(wǎng)--> 
  3. router(config-if)# ^z 

配置IGRP路由協(xié)議:90秒更新一次

  1. router(config)# router igrp AS-Number <-- AS-Number范圍1~65535--> 
  2. router(config-if)# network Network-Number <--通告標(biāo)準(zhǔn)A,B,C類網(wǎng)--> 
  3. router(config-if)# ^z 

配置Novell IPX路由協(xié)議:

  1. Novell RIP 60秒更新一次  
  2. router(config)# ipx routing [node address]  
  3. router(config)# ipx maximum-paths Paths <--設(shè)置負(fù)載平衡,范圍1~512--> 
  4. router(config)# interface Type Port  
  5. router(config-if)# ipx network Network-Number [encapsulation encapsulation-type] [secondary] <--通告標(biāo)準(zhǔn)A,B,C類網(wǎng)--> 
  6. router(config-if)# ^z 

配置DDR:

  1. router(config)# dialer-list Group-Number protocol Protocol-Type permit [list ACL-Number]  
  2. router(config)# interface bri 0  
  3. router(config-if)# dialer-group Group-Number  
  4. router(config-if)# dialer map Protocol-Type Next-Hop-Address name Hostname Telphone-Number  
  5. router(config-if)# ^z 

配置ISDN:

  1. router(config)# isdn swith-type Swith-Type <--配置ISDN交換機(jī)類型,中國使用basic-net3--> 
  2. router(config-if)# ^z 

配置Frame Relay:

  1. router(config-if)# encapsulation frame-relay [cisco | ietf ]  
  2. router(config-if)# frame-relay lmi-type [ansi | cisco | q933a ]  
  3. router(config-if)# bandwidth kilobits  
  4. router(config-if)# frame-relay invers-arp [ Protocol ] [dlci ]  
  5. <--配置靜態(tài)Invers ARP表:  
  6. router(config)# frame-relay Protocol Protocol-Address DLCI [ Broadcast ] [ ietf | cisco ] [ payload-compress | packet-by-packet ]  
  7. --> 
  8. <--設(shè)置Keepalive間隔:  
  9. router(config-if)# keepalive Number  
  10. --> 
  11. <--為本地接口指定DLCI:  
  12. router(config-if)# frame-lelay local-dlci Number  
  13. --> 
  14. <--子接口配置:  
  15. router(config-if)# interface Type Port.Subininterface-Number [ multipoint | point-to-point ]  
  16. router(config-subif)# ip unnumbered Interface  
  17. router(config-subif)# frame-lelay local-dlci Number  
  18. --> 
  19. router(config-if)# ^z 

配置標(biāo)準(zhǔn)ACL:

  1. router(config)# access-list Access-List-Number [ permit | deny ] source [ source-mask ] <-- Access-List-Number 范圍:1~99標(biāo)準(zhǔn)ACL;100~199擴(kuò)展ACL;800~899標(biāo)準(zhǔn)IPX ACL;900~999擴(kuò)展IPX ACL;1000~1099 IPX SAP ACL;600~699Apple Talk ACL--> 
  2. router(config)# interface Type Port  
  3. router(config-if)# ip access-group Access-List-Number [ in | out ]  
  4. router(config-if)# ^z  
  5.  

配置擴(kuò)展ACL:

  1. router(config)# access-list Access-List-Number [ permit | deny ] [ Protocol | Protocol-Number ] source source-wildcard [ Source-Port ] destination destination-wildcard [ Destination-Port ] [ established ]  
  2. router(config)# interface Type Port  
  3. router(config-if)# ip access-group Access-List-Number [ in | out ]  
  4. router(config-if)# ^z  
  5.  

配置命名ACL:

  1. router(config)# ip access-list [ standard | extended ] ACL-Name  
  2. router(config [ std- | ext- ] nacl)# [ permit | deny ] [ IP-Access-List-Test-Conditions ]  
  3. router(config [ std- | ext- ] nacl)# no [ permit | deny ] [ IP-Access-List-Test-Conditions ]  
  4. router(config [ std- | ext- ] nacl)# ^z  
  5. router(config)# interface Type Port  
  6. router(config-if)# ip access-group [ACL-Name | 1~199 ] [ in | out ]  
  7. router(config-if)# ^z 

#p#

配置DCE時(shí)鐘:

  1. router# show controllers Type Port <--確定DCE接口--> 
  2. router(confin-if)# clock rate 64000 <--進(jìn)入DCE接口設(shè)置時(shí)鐘速率--> 
  3. router(config-if)# ^z 

配置PPP協(xié)議:

  1. router(config)# username Name password Set-Password-Here <--驗(yàn)證方建立數(shù)據(jù)庫--> 
  2. router(config)# interface Type Port  
  3. router(config-if)# encapsulation ppp <--啟動(dòng)PPP協(xié)議--> 
  4. router(config-if)# ppp outhentication [ chap | chap pap | pap chap | pap ] <--選擇PPP認(rèn)證--> 
  5. router(config-if)# ppp pap sent-username Name password Password <--發(fā)送驗(yàn)證信息--> 
  6. router(config-if)# ^z 

PAP單向認(rèn)證配置實(shí)例:

驗(yàn)證方:

  1. router-server(config)# username Client password 12345 <--驗(yàn)證方建立數(shù)據(jù)庫--> 
  2. router-server(config)# interface serial 0  
  3. router-server(config-if)# encapsulation ppp  
  4. router-server(config-if)# ppp authentication pap <--選擇使用PAP實(shí)現(xiàn)PPP認(rèn)證--> 
  5. router-server(config-if)# ^z 

被驗(yàn)證方:

  1. router-client(config-if)# encapsulation ppp  
  2. router-client(config-if)# ppp pap sent-username Client password 12345 <--發(fā)送驗(yàn)證信息--> 
  3. router-client(config-if)# ^z 

PAP雙向認(rèn)證配置實(shí)例:

路由器 A:

  1. routerA(config)# username B password 12345  
  2. routerA(config)# interface serial 0  
  3. routerA(config-if)# encapsulation ppp  
  4. routerA(config-if)# ppp authentication pap  
  5. routerA(config-if)# ppp pap sent-username A password 54321  
  6. routerA(config-if)# ^z 

路由器 B:

  1. routerB(config)# username A password 54321  
  2. routerB(config)# interface serial 1  
  3. routerB(config-if)# encapsulation ppp  
  4. routerB(config-if)# ppp authentication pap  
  5. routerB(config-if)# ppp pap sent-username B password 12345  
  6. routerB(config-if)# ^z 

CHAP單向認(rèn)證配置實(shí)例:

驗(yàn)證方:

  1. router-server(config)# username router-client password 12345  
  2. router-server(config)# interface serial 0  
  3. router-server(config-if)# encapsulation ppp  
  4. router-server(config-if)# ppp authentication chap  
  5. router-server(config-if)# ^z 

被驗(yàn)證方:

  1. router-client(config-if)# encapsulation ppp  
  2. router-client(config-if)# ppp authentication chap  
  3. router-client(config-if)# ppp chap hostname router-client  
  4. router-client(config-if)# ppp chap password 12345  
  5. router-client(config-if)# ^z 

CHAP雙向認(rèn)證配置實(shí)例:

路由器 A:

  1. routerA(config)# username routerB password 12345  
  2. routerA(config)# interface serial 0  
  3. routerA(config-if)# encapsulation ppp  
  4. routerA(config-if)# ppp authentication chap  
  5. routerA(config-if)# ppp chap hostname routerA  
  6. routerA(config-if)# ppp chap password 54321  
  7. routerA(config-if)# ^z 

路由器 B:

  1. routerB(config)# username routerA password 54321  
  2. routerB(config)# interface serial 1  
  3. routerB(config-if)# encapsulation ppp  
  4. routerB(config-if)# ppp authentication chap  
  5. routerB(config-if)# ppp chap hostname routerB  
  6. routerB(config-if)# ppp chap password 12345  
  7. routerB(config-if)# ^z 

#p#

Telnet使用:

  1. routerA# terminal monitor <--可以傳回在遠(yuǎn)端主機(jī)執(zhí)行Debug命令的結(jié)果--> 
  2. routerA# telnet IP-Address [ Router-Name ] <--Telnet到指定的地址或名字的主機(jī)--> 
  3. routerB# [ exit | logout ] <--退出Telnet--> 
  4. routerB# ++<6>再按 <--掛起Telnet--> 
  5. routerA# show sessions <--顯示當(dāng)前所有Telnet的信息,包括Connect-Number --> 
  6. routerA# Connect-Number <--返回指定的Telnet連接--> 
  7. routerA# disconnect IP-Address [ Router-Name ] <--斷開指定地址或名字的主機(jī)的連接--> 
  8. routerA# show user <--顯示Telnet到本機(jī)的連接信息--> 
  9. routerA# clear line [ 0 | 1 | 2 | 3 | 4 ] <--斷開指定Telnet到本機(jī)的連接--> 

禁止任何Telnet到本機(jī):

  1. router(config)# line vty 0 4  
  2. router(config-line)# access-class ACL-Number  
  3. router(config)# ^z 

設(shè)置主機(jī)名:

  1. router(config)# hostname Set-Hostname  
  2. router(config)# ^z  
  3. router(config)# ^z 

設(shè)置用戶模式密碼:

  1. router(config)# line console 0  
  2. router(config-line)# login  
  3. router(config-line)# password Set-Password  
  4. router(config-line)# ^z 

設(shè)置Telnet密碼:

  1. router(config)# line vty 0 4  
  2. router(config-line)# login  
  3. router(config-line)# password Set-Password  
  4. router(config-line)# ^z 

設(shè)置特權(quán)模式密碼:

  1. router(config)# enable password Set-Password <--不加密的密碼,明碼--> 
  2. router(config)# enable secret Set-Password <--經(jīng)過加密的密碼--> 
  3. router(config)# ^z 

給所有密碼加密:

  1. router(config)# service password-ancryption Set-Password-Here  
  2. router(config)# no service password-ancryption <--取消加密--> 
  3. router(config)# ^z 

設(shè)置登錄Banner:

  1. router(config)# banner motd 分隔符 Set-Banner-Information-Here 分隔符 <--前后分隔符一定要一致--> 

設(shè)置接口的描述信息:

  1. router(config-if)# description Set-Port-Information-Here  
  2. router(config)# ^z 

CDP的控制:

  1. router(config-if)# cdp enable <--在指定端口啟用CDP,缺省--> 
  2. router(config-if)# no cdp enable <--在指定端口關(guān)閉CDP--> 
  3. router(config)# cdp run <--使所有端口啟用CDP--> 
  4. router(config)# no cdp run <--使所有端口關(guān)閉CDP--> 

Ping的使用:

  1. router# ping IP-Address  
  2. router# ping <--擴(kuò)展Ping命令--> 
  3. Protocol [ip]:[ Protocol-Type ] <--選擇協(xié)議類型--> 
  4. Target IP address:IP-Address <--輸入測(cè)試地址--> 
  5. Repeat count [5]: <--選擇發(fā)送的ICMP包數(shù)量--> 
  6. Datagram size [100]: <--選擇每個(gè)包的大小--> 
  7. Timeout in seconds [2]: <--設(shè)置每個(gè)包的超時(shí)時(shí)間--> 
  8. Extended commands [n]:y <--使用擴(kuò)展Ping命令--> 
  9. Sweep range of sizes [n]: 

Tracke的使用:

  1. router# trace IP-Address [ Host-Name ] 

#p#

為Cisco 4000路由器指定媒體類型:

  1. router(config-if)# media-type 10baset <--使AUI(默認(rèn))失效,改為使用RJ-45--> 
  2. router(config-if)# ^z 

更改路由器啟動(dòng)順序:

  1. router(config)# boot system flash IOS-FileName  
  2. router(config)# boot system tftp IOS-FileName TFTP-IP-Address  
  3. router(config)# boot system rom  
  4. router(config)# ^z 

修改寄存器數(shù)值:

  1. router(config)# config-register Value <--Cisco出廠默認(rèn)Value=0x2102,Value范圍:0x2100(進(jìn)入ROM監(jiān)視器),0x2101(使系統(tǒng)從ROM啟動(dòng)),0x2102~0x210F(使系統(tǒng)從NVRAM啟動(dòng))。0x1=0x2101,從最小位開始改變--> 

在ROM監(jiān)視器中更改寄存器數(shù)值:

  1. > o/r Value 

路由器密碼的恢復(fù):

冷關(guān)機(jī),然后再開機(jī)并在60秒內(nèi)按< Ctrl>+ 進(jìn)入ROM監(jiān)視器模式

  1. > o/r 0x2142 <--25xx型路由器--> 或 > confreg 0x2142 <--16xx型路由器--> 
  2. router> I  
  3. router> n  
  4. router> enable  
  5. router# copy startup-config running-config  
  6. router# configure terminal  
  7. router(config)# enable secret New-Password  
  8. router(config)# config-register 0x2102  
  9. router(config)# ^z  
  10. router# copy running-config startup-config  
  11. router# reload 

配置名稱-主機(jī)入口:

  1. router(config)# ip host Set-Name [ TCP-Port-Number ] IP-Address [ IP-Address 2 ]...  
  2. router(config)# ^z 

定義DNS主機(jī):

  1. router(config)# ip name-server Server-Address [ Server-Address 2 ]...  
  2. router(config)# ^z 

禁用DNS:

  1. router(config)# no ip domain-lookup  
  2. router(config)# ^z 

配置水平分割:

  1. router(config-if)# ip split-horizon  
  2. router(config-if)# no ip split-horizon  
  3. router(config-if)# ^z 

配置靜態(tài)路由:

  1. router(config)# ip route IP-Address Subnet-Mask [ Next-Hop-Address | Local-Out-Port ] [Distace ]  
  2. <--Distance范圍:1~255,相當(dāng)于優(yōu)先權(quán),越小越好。RIP=120;DSPF=110IGRP=100;EIGRP=90--> 
  3. router(config)# ^z 

配置缺省路由:

  1. router(config)# ip defoult-network IP-Address <--動(dòng)態(tài)缺省路由--> 
  2. router(config)# ip route 0.0.0.0 0.0.0.0 [ Next-Hop-Address | Local-Out-Port ] [Distace ] <--靜態(tài)缺省路由--> 
  3. router(config)# ^z  

 

責(zé)任編輯:佟健 來源: NET130
相關(guān)推薦

2011-03-15 09:59:57

2011-03-15 09:02:01

IPtables常用命令

2011-07-21 11:51:58

Cisco ACE

2011-04-01 17:16:03

zabbix參數(shù)命令

2012-03-20 10:05:57

Cisco路由器路由器DNS

2021-02-05 07:48:06

Linux操作系統(tǒng)軟件

2017-09-08 14:30:33

MongoDB安裝操作命令

2009-12-02 09:48:37

Cisco路由器配置命

2009-12-02 15:58:55

Cisco路由器配置命

2009-11-26 09:56:39

Cisco路由器配置命交換機(jī)配置命令

2009-11-26 13:57:24

Cisco路由器命令

2013-08-23 10:11:01

生成樹協(xié)議交換技術(shù)生成樹

2010-01-07 17:59:50

Ubuntu APT

2010-09-25 14:12:37

Cisco 3550配

2009-06-09 11:31:35

思科路由器安裝維護(hù)

2009-12-16 16:45:56

Cisco路由器配置

2011-04-01 16:49:25

Cisco路由器IOS

2010-07-15 09:27:25

Perl命令行

2010-07-26 09:22:05

Perl命令行

2010-08-31 14:57:30

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)