成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

CISCO常用配置命令及參數

網絡
CISCO的產品類型非常多,也是企業常常會選擇的一個品牌。所以,作為運維人員,維護企業的網絡,對于Cisco的產品的配置也要有所了解。

啟動接口,分配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路由協議:30秒更新一次

  1. router(config)# router rip  
  2. router(config-if)# network Network-Number <--通告標準A,B,C類網--> 
  3. router(config-if)# ^z 

配置IGRP路由協議:90秒更新一次

  1. router(config)# router igrp AS-Number <-- AS-Number范圍1~65535--> 
  2. router(config-if)# network Network-Number <--通告標準A,B,C類網--> 
  3. router(config-if)# ^z 

配置Novell IPX路由協議:

  1. Novell RIP 60秒更新一次  
  2. router(config)# ipx routing [node address]  
  3. router(config)# ipx maximum-paths Paths <--設置負載平衡,范圍1~512--> 
  4. router(config)# interface Type Port  
  5. router(config-if)# ipx network Network-Number [encapsulation encapsulation-type] [secondary] <--通告標準A,B,C類網--> 
  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交換機類型,中國使用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. <--配置靜態Invers ARP表:  
  6. router(config)# frame-relay Protocol Protocol-Address DLCI [ Broadcast ] [ ietf | cisco ] [ payload-compress | packet-by-packet ]  
  7. --> 
  8. <--設置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 

配置標準ACL:

  1. router(config)# access-list Access-List-Number [ permit | deny ] source [ source-mask ] <-- Access-List-Number 范圍:1~99標準ACL;100~199擴展ACL;800~899標準IPX ACL;900~999擴展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.  

配置擴展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時鐘:

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

配置PPP協議:

  1. router(config)# username Name password Set-Password-Here <--驗證方建立數據庫--> 
  2. router(config)# interface Type Port  
  3. router(config-if)# encapsulation ppp <--啟動PPP協議--> 
  4. router(config-if)# ppp outhentication [ chap | chap pap | pap chap | pap ] <--選擇PPP認證--> 
  5. router(config-if)# ppp pap sent-username Name password Password <--發送驗證信息--> 
  6. router(config-if)# ^z 

PAP單向認證配置實例:

驗證方:

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

被驗證方:

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

PAP雙向認證配置實例:

路由器 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單向認證配置實例:

驗證方:

  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 

被驗證方:

  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雙向認證配置實例:

路由器 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 <--可以傳回在遠端主機執行Debug命令的結果--> 
  2. routerA# telnet IP-Address [ Router-Name ] <--Telnet到指定的地址或名字的主機--> 
  3. routerB# [ exit | logout ] <--退出Telnet--> 
  4. routerB# ++<6>再按 <--掛起Telnet--> 
  5. routerA# show sessions <--顯示當前所有Telnet的信息,包括Connect-Number --> 
  6. routerA# Connect-Number <--返回指定的Telnet連接--> 
  7. routerA# disconnect IP-Address [ Router-Name ] <--斷開指定地址或名字的主機的連接--> 
  8. routerA# show user <--顯示Telnet到本機的連接信息--> 
  9. routerA# clear line [ 0 | 1 | 2 | 3 | 4 ] <--斷開指定Telnet到本機的連接--> 

禁止任何Telnet到本機:

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

設置主機名:

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

設置用戶模式密碼:

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

設置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 

設置特權模式密碼:

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

給所有密碼加密:

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

設置登錄Banner:

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

設置接口的描述信息:

  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 <--在指定端口關閉CDP--> 
  3. router(config)# cdp run <--使所有端口啟用CDP--> 
  4. router(config)# no cdp run <--使所有端口關閉CDP--> 

Ping的使用:

  1. router# ping IP-Address  
  2. router# ping <--擴展Ping命令--> 
  3. Protocol [ip]:[ Protocol-Type ] <--選擇協議類型--> 
  4. Target IP address:IP-Address <--輸入測試地址--> 
  5. Repeat count [5]: <--選擇發送的ICMP包數量--> 
  6. Datagram size [100]: <--選擇每個包的大小--> 
  7. Timeout in seconds [2]: <--設置每個包的超時時間--> 
  8. Extended commands [n]:y <--使用擴展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(默認)失效,改為使用RJ-45--> 
  2. router(config-if)# ^z 

更改路由器啟動順序:

  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 

修改寄存器數值:

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

在ROM監視器中更改寄存器數值:

  1. > o/r Value 

路由器密碼的恢復:

冷關機,然后再開機并在60秒內按< Ctrl>+ 進入ROM監視器模式

  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 

配置名稱-主機入口:

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

定義DNS主機:

  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 

配置靜態路由:

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

配置缺省路由:

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

 

責任編輯:佟健 來源: NET130
相關推薦

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參數命令

2012-03-20 10:05:57

Cisco路由器路由器DNS

2017-09-08 14:30:33

MongoDB安裝操作命令

2021-02-05 07:48:06

Linux操作系統軟件

2009-12-02 15:58:55

Cisco路由器配置命

2009-12-02 09:48:37

Cisco路由器配置命

2009-11-26 09:56:39

Cisco路由器配置命交換機配置命令

2009-11-26 13:57:24

Cisco路由器命令

2013-08-23 10:11:01

生成樹協議交換技術生成樹

2010-01-07 17:59:50

Ubuntu APT

2009-06-09 11:31:35

思科路由器安裝維護

2010-09-25 14:12:37

Cisco 3550配

2010-08-03 08:52:57

配置

2011-04-01 16:49:25

Cisco路由器IOS

2009-12-16 16:45:56

Cisco路由器配置

2010-07-15 09:27:25

Perl命令行

2010-07-26 09:22:05

Perl命令行
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 日韩中文字幕免费在线观看 | 欧美亚洲一区二区三区 | 亚洲成av人片在线观看无码 | 五月天婷婷久久 | 91麻豆精品国产91久久久更新资源速度超快 | 精品国产一区二区三区免费 | 亚洲一区中文字幕 | 久久精品久久久久久 | 男女下面一进一出网站 | 一级黄色在线 | 久久久久无码国产精品一区 | 亚洲成av人影片在线观看 | 日日操网站 | 亚洲av毛片 | 日本久久www成人免 成人久久久久 | 日韩中文字幕第一页 | 懂色tv | 日韩一区二区福利视频 | 久久高清| 精品福利一区二区三区 | 日一区二区 | 亚洲国产精品成人 | 热久久久 | 国产午夜精品福利 | 精品日韩电影 | 福利在线观看 | 久久国产精品久久 | 午夜寂寞网站 | 国产精品久久久久久妇女 | 免费日韩网站 | 久久久久久亚洲精品 | 亚洲+变态+欧美+另类+精品 | 午夜电影网 | 国产精品一二三区 | 一区二区免费在线观看 | 国产在线一区二 | 成人免费观看男女羞羞视频 | 99久久久久国产精品免费 | 特级生活片 | 久久国产亚洲 | 女朋友的闺蜜3韩国三级 |