欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

路由器配置全攻略第4/4頁

 更新時間:2006年12月27日 00:00:00   作者:  

3.1. 例二:
交換設(shè)備仍選用Catalyst5500交換機1臺,安裝WS-X5530-E3管理引擎,多塊WS-X5225R在交換機內(nèi)劃有3個虛擬網(wǎng),分別名為default、qbw、rgw,通過Cisco3640路由器實現(xiàn)虛擬網(wǎng)間路由。交換機設(shè)置與例一類似。
路由器Cisco3640,配有一塊NM-1FE-TX模塊,此模塊帶有一個快速以太網(wǎng)接口可以支持ISL。Cisco3640快速以太網(wǎng)接口與交換機上的某一支持ISL的端口實現(xiàn)連接,如交換機第3槽第1個接口(3/1口)。
Router#wri t
Building configuration... 
Current configuration:
!
version 11.2
no service password-encryption
no service udp-small-servers
no service tcp-small-servers
!
hostname Router
!
enable secret 5 $1$w1kK$AJK69fGOD7BqKhKcSNBf6.
!
ip subnet-zero
!
interface FastEthernet1/0
!
interface FastEthernet1/0.1 
encapsulation isl 1 
ip address 10.230.2.56 255.255.255.0 
!
interface FastEthernet1/0.2 
encapsulation isl 777 
ip address 10.230.3.56 255.255.255.0 
!
interface FastEthernet1/0.3 
encapsulation isl 888 
ip address 10.230.4.56 255.255.255.0 
!
no ip classless
!
line con 0
line aux 0
line vty 0 4
password router
login
!
end
Router#
參考: 
 
1、Cisco路由器口令恢復(fù) 
當(dāng)Cisco路由器的口令被錯誤修改或忘記時,可以按如下步驟進(jìn)行操作:
1. 開機時按<Ctrl+Break>使進(jìn)入ROM監(jiān)控狀態(tài)
2. 按o 命令讀取配置寄存器的原始值
> o       一般值為0x2102
3. 作如下設(shè)置,使忽略NVRAM引導(dǎo)
>o/r0x**4*     Cisco2500系列命令 
rommon 1 >confreg 0x**4*  Cisco2600、1600系列命令
一般正常值為0x2102 
4. 重新啟動路由器
>I   
rommon 2 >reset 
5. 在“Setup”模式,對所有問題回答No
6. 進(jìn)入特權(quán)模式
Router>enable
7. 下載NVRAM
Router>configure memory 
8. 恢復(fù)原始配置寄存器值并激活所有端口
“hostname”#configure terminal
“hostname”(config)#config-register 0x“value”
“hostname”(config)#interface xx 
“hostname”(config)#no shutdown 
9. 查詢并記錄丟失的口令
“hostname”#show configuration (show startup-config)
10. 修改口令
“hostname”#configure terminal 
“hostname”(config)line console 0
“hostname”(config-line)#login
“hostname”(config-line)#password xxxxxxxxx
“hostname”(config-line)#<ctrl+z>
“hostname”(config-line)#write memory(copy running-config startup-config) 
2、IP地址分配 
地址類 網(wǎng)絡(luò)主機 網(wǎng)絡(luò)地址范圍 標(biāo)準(zhǔn)二進(jìn)制掩碼
A N.H.H.H 1-126 1111 1111 0000 0000 0000 0000 0000 0000
B N.N.H.H 128-191 1111 1111 1111 1111 0000 0000 0000 0000
C N.N.N.H 192-223 1111 1111 1111 1111 1111 1111 0000 0000

子網(wǎng)位個數(shù) 子網(wǎng)掩碼 子網(wǎng)數(shù) 主機數(shù)
B類地址      
2 255.255.192.0 2 16382
3 255.255.224.0 6 8198
4 255.255.240.0 14 4894
5 255.255.248.0 30 2846
6 255.255.252.0 62 1822
7 255.255.254.0 126 518
8 255.255.255.0 254 254
9 255.255.255.128 518 126
10 255.255.255.192 1822 62
11 255.255.255.224 2846 30
12 255.255.255.240 4894 14
13 255.255.255.248 8198 6
14 255.255.255.252 16382 2
C類地址      
2 255.255.255.192 2 62
3 255.255.255.224 6 30
4 255.255.255.240 14 14
5 255.255.255.248 30 6
6 255.255.255.252 62 2




APTECH-BENET

 


Cisco 路由配置語句匯總

Cisco 路由配置語句匯總 
啟動接口,分配IP地址: 
router> 
router> enable 
router# 
router# configure terminal 
router(config)# 
router(config)# interface Type Port 
router(config-if)# no shutdown 
router(config-if)# ip address IP-Address Subnet-Mask 
router(config-if)# ^z 
配置RIP路由協(xié)議:30秒更新一次 
router(config)# router rip 
router(config-if)# network Network-Number <--通告標(biāo)準(zhǔn)A,B,C類網(wǎng)--> 
router(config-if)# ^z 

配置IGRP路由協(xié)議:90秒更新一次 
router(config)# router igrp AS-Number <-- AS-Number范圍1~65535--> 
router(config-if)# network Network-Number <--通告標(biāo)準(zhǔn)A,B,C類網(wǎng)--> 
router(config-if)# ^z 

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

配置DDR: 
router(config)# dialer-list Group-Number protocol Protocol-Type permit [list ACL-Number] 
router(config)# interface bri 0 
router(config-if)# dialer-group Group-Number 
router(config-if)# dialer map Protocol-Type Next-Hop-Address name Hostname Telphone-Number 
router(config-if)# ^z 

配置ISDN: 
router(config)# isdnth-typeth-Type <--配置ISDN交換機類型,中國使用basic-net3--> 
router(config-if)# ^z


__________________

配置Frame Relay: 
router(config-if)# encapsulation frame-relay [cisco | ietf ] 
router(config-if)# frame-relay lmi-type [ansi | cisco | q933a ] 
router(config-if)# bandwidth kilobits 
router(config-if)# frame-relay invers-arp [ Protocol ] [dlci ] 
<--配置靜態(tài)Invers ARP表: 
router(config)# frame-relay Protocol Protocol-Address DLCI [ Broadcast ] [ ietf | cisco ] [ payload-compress | packet-by-packet ] 
--> 
<--設(shè)置Keepalive間隔: 
router(config-if)# keepalive Number 
--> 
<--為本地接口指定DLCI: 
router(config-if)# frame-lelay local-dlci Number 
--> 
<--子接口配置: 
router(config-if)# interface Type Port.Subininterface-Number [ multipoint | point-to-point ] 
router(config-subif)# ip unnumbered Interface 
router(config-subif)# frame-lelay local-dlci Number 
--> 
router(config-if)# ^z 

配置標(biāo)準(zhǔn)ACL: 
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--> 
router(config)# interface Type Port 
router(config-if)# ip access-group Access-List-Number [ in | out ] 
router(config-if)# ^z 

配置擴(kuò)展ACL: 
router(config)# access-list Access-List-Number [ permit | deny ] [ Protocol | Protocol-Number ] source source-wildcard [ Source-Port ] destination destination-wildcard [ Destination-Port ] [ established ] 
router(config)# interface Type Port 
router(config-if)# ip access-group Access-List-Number [ in | out ] 
router(config-if)# ^z 

配置命名ACL: 
router(config)# ip access-list [ standard | extended ] ACL-Name 
router(config [ std- | ext- ] nacl)# [ permit | deny ] [ IP-Access-List-Test-Conditions ] 
router(config [ std- | ext- ] nacl)# no [ permit | deny ] [ IP-Access-List-Test-Conditions ] 
router(config [ std- | ext- ] nacl)# ^z 
router(config)# interface Type Port 
router(config-if)# ip access-group [ACL-Name | 1~199 ] [ in | out ] 
router(config-if)# ^z 

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

配置PPP協(xié)議: 
router(config)# username Name password Set-Password-Here <--驗證方建立數(shù)據(jù)庫--> 
router(config)# interface Type Port 
router(config-if)# encapsulation ppp <--啟動PPP協(xié)議--> 
router(config-if)# ppp outhentication [ chap | chap pap | pap chap | pap ] <--選擇PPP認(rèn)證--> 
router(config-if)# ppp pap sent-username Name password Password <--發(fā)送驗證信息--> 
router(config-if)# ^z 

PAP單向認(rèn)證配置實例: 
驗證方: 
router-server(config)# username Client password 12345 <--驗證方建立數(shù)據(jù)庫--> 
router-server(config)# interface serial 0 
router-server(config-if)# encapsulation ppp 
router-server(config-if)# ppp authentication pap <--選擇使用PAP實現(xiàn)PPP認(rèn)證--> 
router-server(config-if)# ^z 
被驗證方: 
router-client(config-if)# encapsulation ppp 
router-client(config-if)# ppp pap sent-username Client password 12345 <--發(fā)送驗證信息--> 
router-client(config-if)# ^z 

PAP雙向認(rèn)證配置實例: 
路由器 A: 
routerA(config)# username B password 12345 
routerA(config)# interface serial 0 
routerA(config-if)# encapsulation ppp 
routerA(config-if)# ppp authentication pap 
routerA(config-if)# ppp pap sent-username A password 54321 
routerA(config-if)# ^z 
路由器 B: 
routerB(config)# username A password 54321 
routerB(config)# interface serial 1 
routerB(config-if)# encapsulation ppp 
routerB(config-if)# ppp authentication pap 
routerB(config-if)# ppp pap sent-username B password 12345 
routerB(config-if)# ^z 


CHAP單向認(rèn)證配置實例: 
驗證方: 
router-server(config)# username router-client password 12345 
router-server(config)# interface serial 0 
router-server(config-if)# encapsulation ppp 
router-server(config-if)# ppp authentication chap 
router-server(config-if)# ^z 
被驗證方: 
router-client(config-if)# encapsulation ppp 
router-client(config-if)# ppp authentication chap 
router-client(config-if)# ppp chap hostname router-client 
router-client(config-if)# ppp chap password 12345 
router-client(config-if)# ^z





CHAP雙向認(rèn)證配置實例: 
路由器 A: 
routerA(config)# username routerB password 12345 
routerA(config)# interface serial 0 
routerA(config-if)# encapsulation ppp 
routerA(config-if)# ppp authentication chap 
routerA(config-if)# ppp chap hostname routerA 
routerA(config-if)# ppp chap password 54321 
routerA(config-if)# ^z 
路由器 B: 
routerB(config)# username routerA password 54321 
routerB(config)# interface serial 1 
routerB(config-if)# encapsulation ppp 
routerB(config-if)# ppp authentication chap 
routerB(config-if)# ppp chap hostname routerB 
routerB(config-if)# ppp chap password 12345 
routerB(config-if)# ^z 

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

設(shè)置主機名: 
router(config)# hostname Set-Hostname 
router(config)# ^z 
router(config)# ^z 

設(shè)置用戶模式密碼: 
router(config)# line console 0 
router(config-line)# login 
router(config-line)# password Set-Password 
router(config-line)# ^z 
設(shè)置Telnet密碼: 
router(config)# line vty 0 4 
router(config-line)# login 
router(config-line)# password Set-Password 
router(config-line)# ^z 

設(shè)置特權(quán)模式密碼: 
router(config)# enable password Set-Password <--不加密的密碼,明碼--> 
router(config)# enable secret Set-Password <--經(jīng)過加密的密碼--> 
router(config)# ^z 

給所有密碼加密: 
router(config)# service password-ancryption Set-Password-Here 
router(config)# no service password-ancryption <--取消加密--> 
router(config)# ^z 

設(shè)置登錄Banner: 
router(config)# banner motd 分隔符 Set-Banner-Information-Here 分隔符 <--前后分隔符一定要一致--> 

設(shè)置接口的描述信息: 
router(config-if)# description Set-Port-Information-Here 
router(config)# ^z 

CDP的控制: 
router(config-if)# cdp enable <--在指定端口啟用CDP,缺省--> 
router(config-if)# no cdp enable <--在指定端口關(guān)閉CDP--> 
router(config)# cdp run <--使所有端口啟用CDP--> 
router(config)# no cdp run <--使所有端口關(guān)閉CDP-->


__________________

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

Tracke的使用: 
router# trace IP-Address [ Host-Name ] 

為Cisco 4000路由器指定媒體類型: 
router(config-if)# media-type 10baset <--使AUI(默認(rèn))失效,改為使用RJ-45--> 
router(config-if)# ^z 

更改路由器啟動順序: 
router(config)# boot system flash IOS-FileName 
router(config)# boot system tftp IOS-FileName TFTP-IP-Address 
router(config)# boot system rom 
router(config)# ^z 

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

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

路由器密碼的恢復(fù): 
冷關(guān)機,然后再開機并在60秒內(nèi)按< Ctrl>+進(jìn)入ROM監(jiān)視器模式 
> o/r 0x2142 <--25xx型路由器--> 或 > confreg 0x2142 <--16xx型路由器--> 
router> I 
router> n 
router> enable 
router# copy startup-config running-config 
router# configure terminal 
router(config)# enable secret New-Password 
router(config)# config-register 0x2102 
router(config)# ^z 
router# copy running-config startup-config 
router# reload


__________________

配置名稱-主機入口: 
router(config)# ip host Set-Name [ TCP-Port-Number ] IP-Address [ IP-Address 2 ]... 
router(config)# ^z 

定義DNS主機: 
router(config)# ip name-server Server-Address [ Server-Address 2 ]... 
router(config)# ^z 

禁用DNS: 
router(config)# no ip domain-lookup 
router(config)# ^z 

配置水平分割: 
router(config-if)# ip split-horizon 
router(config-if)# no ip split-horizon 
router(config-if)# ^z 

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

配置缺省路由: 
router(config)# ip defoult-network IP-Address <--動態(tài)缺省路由--> 
router(config)# ip route 0.0.0.0 0.0.0.0 [ Next-Hop-Address | Local-Out-Port ] [Distace ] <--靜態(tài)缺省路由--> 
router(config)# ^z 

其它命令: 
router# show version 
router# show running-config 
router# show startup-config 
router# show flash 
router# show interface [ Type Port ] 
router# show buffers 
router# show protocol 
router# show mem 
router# show stacks 
router# show processes 
router# show cdp entry [ Device-Name ] <--顯示指定鄰居三層信息--> 
router# show cdp neighbors 
router# show cdp neighbors detail <---顯示所有鄰居三層信息-> 
router# show ip router 
router# show ipx router 
router# show host 
router# show ip protocol 
router# show ip interface Type Port 
router# show ipx interface Type Port 
router# show ipx servers 
router# show ipx traffic 
router# show access-lists [ ACL-Number ] 
router# show isdn status 
router# show dialer <--查看ISDN撥號信息--> 
router# show isdn active 
router# show frame-relay pvc 
router# show frame-relay map 
router# show frame-relay lmi 
router# erase startup-config 
router# reload 
router# setup 
router# copy running-config startup-config 
router# copy startup-config running-config 
router# copy tftp running-config 
router# copy running-config tftp 
router# debug ipx routing activity 
router# debug ipx sap 
router# debug isdn q921 
router# debug isdn q931 
router# debug dialer 
router# debug ip rip 
router# clear interface bri [ 0 | 1 | 2 ]





Cisco VPN連接配置實例


在公司的南京辦事處與上海辦事處之間建立VPN聯(lián)接。
南京辦事處網(wǎng)絡(luò)設(shè)置:
內(nèi)網(wǎng)IP 10.1.1.0/24
外網(wǎng)IP 202.102.1.5/24
上海辦事處網(wǎng)絡(luò)設(shè)置:
內(nèi)網(wǎng)IP 10.1.2.0/24
外網(wǎng)IP 202.102.1.6/24


南京路由器配置
!
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname nanjing
!
enable cisco
!
!
!------以下配置加密--------
crypto isakmp policy 1 生成iskamp policy number 1
encryption des 選擇用DES encryption也可用3DES指定三倍DES加密
hash sha 指定使用的散列算法,也可以是md5(二端保持一致)
authentication pre-share
group 1 指定為Diffie-Hellman組,1表示768位,2表示1024位
lifetime 14400 指定安全關(guān)聯(lián)的有效期,不設(shè)就為默認(rèn)值
------以下配置密鑰方法-----
crypto isakmp identity address 指定與遠(yuǎn)程路由器通信時使用isakmp標(biāo)識
crypto isakmp key 654321 address 202.102.1.6 對遠(yuǎn)程路由器端口202.102.1.6使用密鑰654321
crypto isakmp key 654321 address 192.168.1.2 對遠(yuǎn)程路由器隧道端口192.168.1.2使用密鑰654321
!
------以下定義一個轉(zhuǎn)換集-----
crypto ipsec transform-set tset1 ah-md5-hmac esp-des esp-md5-hmac 可以定義一個或多個集
!
!
-------以下建立加密圖------
crypto map cmap1 local-address serial 0 定義加密圖cmap1并指定s0為本地地址
crypto map cmap1 1 ipsec-isakmp 用序號1設(shè)置加密圖
set peer 202.102.1.6 設(shè)定目標(biāo)地址
set peer 192.168.1.2
set transform-set test1 指定轉(zhuǎn)換集
match address 111 指定加密訪問列表111中的地址
!
!
process-max-time 200
!
-------以下設(shè)置隧道端口------
interface Tunnel0
ip address 192.168.1.1 255.255.255.0
tunnel source 202.102.1.5
tunnel destination 202.102.1.6
crypto map cmap
!
-------以下設(shè)置內(nèi)網(wǎng)口------
interface Ethernet0
ip address 10.1.1.1 255.255.255.0
!
-------以下設(shè)置外網(wǎng)口------
interface serial0
ip address 202.102.1.5 255.255.255.0
no ip mroute-cache
no fair-queue
crypto map cmap
!
ip classless
!
-------以下建立訪問列表111------
access-list 111 permit ip host 202.102.1.5 host 202.102.1.6
access-list 111 permit ip host 202.102.1.6 host 202.102.1.5
access-list 111 permit ip 10.1.1.0 0.0.0.255 202.102.1.0 0.0.0.255
access-list 111 permit ip 10.1.2.0 0.0.0.255 202.102.1.0 0.0.0.255
access-list 111 permit ip 10.1.1.0 0.0.0.255 10.1.2.0 0.0.0.255
access-list 111 permit ip 10.1.2.0 0.0.0.255 10.1.1.0 0.0.0.255
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
end
!

上海路由器配置
!
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname shanghai
!
enable cisco
!
!
!------以下配置加密--------
crypto isakmp policy 1 生成iskamp policy number 1
encryption des 選擇用DES encryption也可用3DES指定三倍DES加密
hash sha 指定使用的散列算法,也可以是md5(二端保持一致)
authentication pre-share
group 1 指定為Diffie-Hellman組,1表示768位,2表示1024位
lifetime 14400 指定安全關(guān)聯(lián)的有效期,不設(shè)就為默認(rèn)值
------以下配置密鑰方法-----
crypto isakmp identity address 指定與遠(yuǎn)程路由器通信時使用isakmp標(biāo)識
crypto isakmp key 654321 address 202.102.1.5 對遠(yuǎn)程路由器端口202.102.1.6使用密鑰654321
crypto isakmp key 654321 address 202.102.1.6 對遠(yuǎn)程路由器端口202.102.1.6使用密鑰654321
crypto isakmp key 654321 address 192.168.1.1 對遠(yuǎn)程路由器隧道端口192.168.1.2使用密鑰654321
!
------以下定義一個轉(zhuǎn)換集-----
crypto ipsec transform-set tset1 ah-md5-hmac esp-des esp-md5-hmac 可以定義一個或多個集
!
!
-------以下建立加密圖------
crypto map cmap1 local-address serial 0 定義加密圖cmap1并指定s0為本地地址
crypto map cmap1 1 ipsec-isakmp 用序號1設(shè)置加密圖
set peer 202.102.1.5 設(shè)定目標(biāo)地址
set peer 202.102.1.6
set peer 192.168.1.1
set transform-set test1 指定轉(zhuǎn)換集
match address 111 指定加密訪問列表111中的地址
!
!
process-max-time 200
!
-------以下設(shè)置隧道端口------
interface Tunnel0
ip address 192.168.1.2 255.255.255.0
tunnel source 202.102.1.6
tunnel destination 202.102.1.5
crypto map cmap
!
-------以下設(shè)置內(nèi)網(wǎng)口------
interface Ethernet0
ip address 10.1.2.1 255.255.255.0
!
-------以下設(shè)置外網(wǎng)口------
interface serial0
ip address 202.102.1.6 255.255.255.0
no ip mroute-cache
no fair-queue
crypto map cmap
!
ip classless
!
-------以下建立訪問列表111------
access-list 111 permit ip host 202.102.1.5 host 202.102.1.6
access-list 111 permit ip host 202.102.1.6 host 202.102.1.5
access-list 111 permit ip 10.1.1.0 0.0.0.255 202.102.1.0 0.0.0.255
access-list 111 permit ip 10.1.2.0 0.0.0.255 202.102.1.0 0.0.0.255
access-list 111 permit ip 10.1.1.0 0.0.0.255 10.1.2.0 0.0.0.255
access-list 111 permit ip 10.1.2.0 0.0.0.255 10.1.1.0 0.0.0.255
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!

相關(guān)文章

最新評論