亚洲精品国偷拍自产在线麻豆,国产精品成人观看视频国产奇米,国产成a人亚洲精品无码樱花,无码人妻丰满熟妇精品区

日志樣式

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

啟動接口,分配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
  8. 配置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
    8. 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 ]
      2. 為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=120;DSPF=110;IGRP=100;EIGRP=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

主站蜘蛛池模板: 昭觉县| 类乌齐县| 柞水县| 临漳县| 徐水县| 合水县| 苗栗县| 台东市| 永城市| 鄂伦春自治旗| 万全县| 安庆市| 佛教| 社会| 温州市| 梓潼县| 新巴尔虎右旗| 新河县| 凤山县| 惠来县| 紫云| 交城县| 新建县| 建瓯市| 茂名市| 松滋市| 丹棱县| 荥经县| 张家港市| 岢岚县| 加查县| 湖州市| 塔城市| 依兰县| 大荔县| SHOW| 隆回县| 山丹县| 富顺县| 固原市| 师宗县|