路由器備份配置
更新時(shí)間:2007年09月19日 10:21:17 作者:
對(duì)于某些企業(yè)或組織的某些關(guān)鍵業(yè)務(wù)數(shù)據(jù)的網(wǎng)絡(luò)傳輸,要求網(wǎng)絡(luò)設(shè)備高度的可靠性,而且需要維護(hù)方便。
Cisco路由器的備份技術(shù)有多種。這里介紹一下路由器自身的備份技術(shù)及線路備份技術(shù)。
一般來說,路由器是建立局域網(wǎng)與廣域網(wǎng)連接的橋梁。
所謂的路由器自身的備份技術(shù)是為了解決路由器由于自身硬件(如內(nèi)存、CPU)或軟件IOS的某種故障或局域端口的故障,所連接局域設(shè)備的端口或線路的故障所導(dǎo)致的網(wǎng)絡(luò)癱瘓的問題。
路由器的備份要求至少有一臺(tái)與正在工作的主路由器功能相同的路由器,在主路由器癱瘓的情況下,以某種方式代替主路由器,為局域網(wǎng)用戶提供路由服務(wù)?!?br>
對(duì)于局域網(wǎng)的計(jì)算機(jī),在主路由器癱瘓的情況下,如何找到備份路由器,主要有以下集中辦法: proxy ARP、IRDP 、動(dòng)態(tài)路由 、HSRP
1、Proxy ARP
支持Proxy ARP 的計(jì)算機(jī)無論與本網(wǎng)段的計(jì)算機(jī)還是不同網(wǎng)段的計(jì)算機(jī)進(jìn)入通訊都發(fā)送ARP廣播以尋找與目的地址相對(duì)應(yīng)的MAC地址,這時(shí),知道目的地址的路由器會(huì)響應(yīng)ARP的請(qǐng)求,并將自己的MAC地址廣播給源計(jì)算機(jī),然后源計(jì)算機(jī)就將IP數(shù)據(jù)包發(fā)給該路由器,并由路由器最終將數(shù)據(jù)包發(fā)送到目的。
在主路由器癱瘓情況下,計(jì)算機(jī)再進(jìn)行通訊時(shí),它將繼續(xù)發(fā)送Proxy ARP廣播,備份路由器響應(yīng)該請(qǐng)求,并進(jìn)行數(shù)據(jù)傳輸?!?br>
缺點(diǎn):
如果主路由器正在傳輸數(shù)據(jù)時(shí)癱瘓,正在通信的計(jì)算機(jī)在未發(fā)送另外的Proxy ARP請(qǐng)求之前.根本就無法知道主路由器已癱瘓,會(huì)繼續(xù)向該路由器發(fā)包,導(dǎo)致傳輸中斷,正在通信的計(jì)算機(jī)只有在另外發(fā)送Proxy ARP請(qǐng)求或重新啟動(dòng)之后才能找到備份路由器以進(jìn)行傳輸。
Cisco路由器支技Proxy ARP
2、IRDP
局域網(wǎng)中的支持IRDP的計(jì)算機(jī)會(huì)監(jiān)聽主路由器發(fā)出的“Hello”的多點(diǎn)廣播信息包,如果該計(jì)算機(jī)不再收到“Hello”信息時(shí),它就會(huì)利用備份路由器進(jìn)行數(shù)據(jù)傳輸。
3、動(dòng)態(tài)路由
對(duì)于某些計(jì)算機(jī),它們本身支持RIP動(dòng)態(tài)路由以尋找路由器,這種辦法的缺點(diǎn)是主路由器與備份路由器間的轉(zhuǎn)換較慢。
以上三種辦法,主要都是在計(jì)算機(jī)一方采用的技術(shù),Cisco路由器提供了HSRP技術(shù),采用這種技術(shù)不需要計(jì)算機(jī)進(jìn)行任何設(shè)置,即對(duì)計(jì)算機(jī)來說,主路由器與備份路由器之間切換是透明的,而且它們之間的切換速度較快。
采用HSRP進(jìn)行備份的一組路由器共用一個(gè)虛擬的MAC地址及虛擬IP地址,每個(gè)參與HSRP的局域端口有一個(gè)本端口的IP地址和MAC地址,每個(gè)路由器都有一個(gè)權(quán)值,權(quán)值最高的作為主路由器進(jìn)行工作,其它的不工作,當(dāng)主路由器癱瘓時(shí),第二個(gè)權(quán)值最高的路由器將作為主路由器,依次類推。路由器之間定期交換權(quán)值信息以確定路由器的工作狀態(tài)。如果主路由器在一段時(shí)間內(nèi)不發(fā)送這種信息包,其它備份路由器將認(rèn)為該路由器已壞,權(quán)值電高的備份路由器將接管虛擬MAC地址和IP地址,并負(fù)責(zé)傳輸數(shù)據(jù)。一旦主路由器恢復(fù)正常,將自動(dòng)切換回去,重新接管傳輸數(shù)據(jù)的工作,之后備份路由器停止傳輸,處于備份狀態(tài)。另外,HSRP允許路由器對(duì)某些端口的工作狀態(tài)進(jìn)行監(jiān)測(cè),一旦這個(gè)端口出現(xiàn)故障,也進(jìn)行自動(dòng)切換。
總之,對(duì)于局域網(wǎng)的計(jì)算機(jī),它們的網(wǎng)關(guān)只有一個(gè),即虛擬 IP 地址。所有的備份工作都由路由器自動(dòng)完成。
HSRP適應(yīng)于主路由器與備份路由器的線路完全一致的情況。
使用HSRP功能,建議采用收斂速度較快的動(dòng)態(tài)路由協(xié)議,如OSPF,EIGRP。
HSRP基本配置步驟:
在端口配置下,設(shè)置端口 IP 地址,
ip address端口 IP 地址 子網(wǎng)掩碼
在端口配置下,啟用 HSRP 功能,并設(shè)置虛擬 IP 地址
standby 組號(hào) IP 虛擬 IP 地址
其中只有有相同組號(hào)的路由器屬于同一個(gè)hsrp組,所有屬于同一個(gè)hsrp組的路由器的虛擬地址必須一致
在端口設(shè)置狀態(tài)下設(shè)置HSRP搶占
standby 組號(hào) preempt
該設(shè)置允許權(quán)值高于該hsrp組的其它路由器成為主路由器。所有該給路由器都應(yīng)該設(shè)置此項(xiàng),以便每臺(tái)路由器都可以成為其它路由器的備份路由器。如果不設(shè)置該項(xiàng),即使用該路由器權(quán)值再高,也不會(huì)成為主路由器。
設(shè)置路由器的hsrp權(quán)值
standby 組號(hào) priority 權(quán)值
如果不設(shè)置該項(xiàng),缺省權(quán)值為100,其中權(quán)值數(shù)字大,則搶占為主路由器的優(yōu)先權(quán)越高。
設(shè)置hsrp組路由器身份驗(yàn)證字符串
standby 組號(hào) authentication 字符串
該項(xiàng)設(shè)置為可選設(shè)置,如果設(shè)置該項(xiàng),則該hsrp組的所有路由器都必須進(jìn)行該項(xiàng)設(shè)置,且只有有相同字符串的該組路由器才能進(jìn)行hsrp。
設(shè)置hsrp切換時(shí)間
standby 組號(hào)時(shí)間參數(shù)1 時(shí)間參數(shù)2
其中時(shí)間參數(shù)1表示路由器每間隔多長時(shí)間交換一次hello信息,以表明路由器是否出現(xiàn)故障或工作正常。時(shí)間參數(shù)2表示在多長時(shí)間內(nèi)同組的其他路由器沒有收到主路由器的信息,則宣布主路由器癱瘓。該設(shè)置的缺省值分別為3秒和10秒。如果要更改缺省值,所有同hsrp組的路由器的該項(xiàng)設(shè)置必須一致。
端口跟蹤設(shè)置
standby 組號(hào) track 端口號(hào)
該項(xiàng)設(shè)置為可選設(shè)置
該設(shè)置表示如果所監(jiān)測(cè)的端口出現(xiàn)故障,則也進(jìn)行路由器的切換。可以跟蹤多外端口?!?br>
注意:如果主路由器上有多條線路被跟蹤,則有一條線路出現(xiàn)故障時(shí),就會(huì)切換到備份路由器上,即使其他都正常工作,直到主路由器該線路正常工作,才能重新發(fā)換過來。該項(xiàng)設(shè)置實(shí)現(xiàn)的功能在實(shí)際應(yīng)用中完全可以由線路備份功能實(shí)現(xiàn),而且在大多數(shù)情況下,該項(xiàng)設(shè)置也沒有多大意義。
另外,hsrp還有很多其它設(shè)置及應(yīng)用,如感興請(qǐng)?jiān)贑isco站點(diǎn)或Cisco Document上查找,或與曉通技術(shù)支持中心聯(lián)系。
實(shí)例:
2511-1與2511-2互為路由器備份
2511-1的配置
2511-1#sho run
Building configuration…
Current configuratoin:
!
version 11.3
no service password –encryption
!
hostname 251l-l
!
enable password cisco
!
username 2505 password 0 cisco
no ip domain-lookup
!
interface Ethernet0
ip address 192.4.1.99 255.255.255.0
no ip redirects
standby 1 timers 5 15
standby 1 priority 110
standby 1 preempt
standby 1 authentication cisco
standby 1 ip 192.4.1.1
standby 1 track Serial0
standby 1 track Seriall
!
interface serial0
ip address l92.3.1.1 255.255.255.0
encapsulation frame-relay IETF
ip ospf message-digest-key 1 md5 kim
no ip mroute-cache
bandwidth 2000
frame-relay map ip 192.3.1.2 100 broadcast
frame-relay lmi-type cisco
!
interface Serial1
ip address 192.7.l.l 255.255.2550
encapesulation ppp
ip ospf message-digest-key 1 md5 kim
ip ospf network non-broadcast
bandwidth 64
ppp authentication chap
!
router ospf 1
passive-interface Ethernet0
network 192.3.1.0 0.0.0.255 area 0
network 192.4.l.0 0.0.0.255 area 0network 192.7.l.0 0.0.0.255 area 0neighbor 192.7.1.2 priority 1neighbor 192.3.1.2 priority 1area 0 authentication message-digest!no ip classless!line con 0line 1 8line aux 0line vty 0 4 password cisco
login
!
end
2511-2的配置
2511-2#sho run
Building configuration...
Current configuration:
!
version 11.3
no servicc password-encryption
!
hostname 2511-2
enable secret 5 $1$7o5F$MSyFWzVf6JBgnjLJghHSB.
!
!
interface Ethernet0
ip address 192.4.1.lOO 255.255.255.0
no ip redirects
standby 1 timers 5 15
standby 1 priority 100
staidby 1 preempt
standby 1 authentication cisco
sandby 1 ip 192.4.1.1
!interface Serial0ip address 192.8.1.2 255.255.255.0encapsulation x25ip ospf missage-digest-key 2 md5 cisco
no ip mroute-cache
x25 address 5678
x25 htc 16
x25 nvc 4
x25 map ip 192.8.l.1 1234 broadcast
!
interface Serial
no ip address
no ip mroute-cachc
bandwidth 2000
clockrate 2000000
!
router ospt 1
passive-interface Ethernet0
network 192.8.1.0 0.0.0.255 area 0
network 192.4.1.0 0.0.0.255 area 0
neighbor 192.8.1.1 priority 1
area 0 authentication message-digest
!
ip classless
!
line con 0
line 1 8
line aux 0
line vty 0 4
login
!
end
2514的配置
2514# sho run
Building configuration...
!Current configuration:!version 11.2no service udp-small-serversno service tcp-small-servers!hostname 2514!enable secret 5 $1$uoHU$Vks/1YCRi33z4TXs4qekI0!
frame-relay switching
!interface Ethernet0
no ip address
!
interface Ethernet1
no ip address
shutdown
!
interfacc Serial0ip address 192.3.1.2 255.255.255.0encapsulation frame-relay IETF
ip ospf message-digest-key 1 md5 kimbandwidth 2000clockrate 2000000
frame-relay map ip 192.3.1.1 100 broadcast
frame-relay intf-type dce
!interface Serial1
ip address 192.8.1.1 255.255.255.0
no ip mroute-cache
enthpsulation x25 dce
ip ospf message-digest-key 2 md5 cisco
bandwidth 64
x25 address 1234
x25 htc 16
x25 nvc 4
x25 map ip 192.8.1.2 5678 broadcast
clockrate 64000
!
router ospf 1passive-interface Ethernet0network 192.3.1.0 0.0.0.255 area 0network 192.8.1.O 0.0.0.255 area 0neighbor 192.8.l.2 priority 1neighbor 192.3.1.1 priority 1area 0 authentication message-digest
!
no ip classless
!
line con 0line aux 0line vty 0 4login!end
2505的配置building configuraiion...Current configuration:!version 11.2no service udp-small-serversno service tcp-small-servers!hostname 2505!enable secret 5 $1$b43o$CpEYSTc2EPwnRlQGDvIm//
!
username 2511-1 password 7 1511021F0725
!
hub ether 0 1link-testauto-polarity
!hub ether O 2link-testauto-polarity!hub ether 0 3link-testauto-polarity!hub ether 0 4link-testauto-polarity!hub ether 0 5
link-test
auto-polarity
!
hub ether 0 6
link-test
auto-polarity
!
hub ether 0 7
link-test
auto-polarity
!
hub ether 0 8
link-test
auto-polarity
!
interface Ethernet0
ip address 192.1.4.1 255.255.255.0
!
interfacc Serial0
ip address 192.l.2.1 255.255.255.0
ip ospf message-digest-key 1 md5 cisco
ip ospf network non-broadcast
bandwidth 2000
clockrate 2000000
!interface Serial1ip address 192.7.1.2 255.255.255.0encapsulation pppip ospf message-digdest-key 1 md5 kimip ospf network non-broadcast
bandwidth 64
clockrate 64000
ppp authentication chap
!
router ospf 1
passive-interface Ethernet0
network 192.l.2.0 0.0.0.255 area 2
network 192.l.4.O 0.0.0.255 area 2
network 192.7.1.0 0.0.0.255 area 0
neighbor 192.7.l.1 priority 1
neighbor 192.1.2.2 priority 1
area 0 authentication message-digest
area 2 authentication message-digest
area 2 range 192.1.0.0 255.255.0.0
!
no ip classless
ip ospf name-lookup
!
line con 0
line aux 0
Iine vty 0 4
login
!
end
方法1、線路備份
其實(shí),在廣域網(wǎng)連接中,最不可靠的因素大多數(shù)情況下是出在線路、端口及外接的設(shè)備上。相對(duì)來說線路備份更為重要。線路備份一般有幾種主要方法:
采用動(dòng)態(tài)路由自動(dòng)進(jìn)行備份
采用顯示backup(備份)方法進(jìn)入備份
采用浮動(dòng)的靜態(tài)路由方法進(jìn)行備份
方法1是在網(wǎng)絡(luò)中含有多條冗余線路,路由器通過動(dòng)態(tài)路由學(xué)習(xí)到所有線路工作情況.根據(jù)路由算法選擇最優(yōu)的路徑作為主干線路,一旦某條主干線路出現(xiàn)故障,路由器將在一段時(shí)間過后,自動(dòng)刪除通過該條線路的路徑,重新進(jìn)行最優(yōu)路徑計(jì)算,重新選擇一條通過某條冗余線路的最優(yōu)的路徑。所有這些過程,都由動(dòng)態(tài)路由協(xié)議自動(dòng)完成,無須任何其它設(shè)置。
方法2 顯示backup備份方法
該種方法顯示的指明哪條主干線路,哪一條是備份線路。如果主干線路出現(xiàn)故障,則在指定的時(shí)間內(nèi),備份線路會(huì)代替主干線路工作。如果主干線路恢復(fù)正常,則在指定的時(shí)間過后,會(huì)自動(dòng)切換回主干線路備份線路重新處于備份狀態(tài)。
設(shè)置為顯示備份后,路由器將監(jiān)測(cè)CD信號(hào),一旦CD信號(hào)消失,則路由器便認(rèn)為該線路出現(xiàn)故障。如果CD 信號(hào)始終存在,則路由器認(rèn)為主干線路工作正常。
這種備方法適用于DDN專線作主干線路的情況。因?yàn)閷?duì)于DDN專線,如果線路斷掉,則兩邊的路由器的CD信號(hào)都會(huì)消失,而該種方去不適用于X.25線路上,因?yàn)閄.25線路上出現(xiàn)故障時(shí),大多數(shù)情況下都是建立不起來虛電路,而CD信號(hào)則往往存在。而且,如果一端X.25線路出現(xiàn)故障,而另一端X.25線路往往是正常的,這樣,如果正常一端的路由器有數(shù)據(jù)傳送給不正常一端時(shí),路由器認(rèn)為X.25線路工作正常。因此根本不會(huì)起備份線路。
顯示備份方法配置步驟
1.正確配置主干線路能正常通信
2.然后正確配置備份線路能正常通信
3.在主干線路所連接的端口中顯示指出哪一條線路為備份線路
backup interface 備份線路端口號(hào)
4.指定在主干線路出現(xiàn)故障多長時(shí)間后啟用備份線路及在主干線路恢復(fù)正常多長時(shí)間后切換回主干線路。備份線路恢復(fù)到備份狀態(tài)
backup delay 時(shí)間參數(shù)1(秒) 時(shí)間參數(shù)字2(秒)
時(shí)間參數(shù)1指定在主干線路出現(xiàn)故障多長時(shí)間后啟用備份線路,時(shí)間參數(shù)2指定在主干線路恢復(fù)正常多長時(shí)間后切換回主干線路,備份線路恢復(fù)到備份狀態(tài)。
設(shè)置備份線路的路由可以起任何方式的路由,但備份線路一般帶寬相對(duì)主干線路較低,且如果起動(dòng)態(tài)路由會(huì)有額外費(fèi)用。因此,一般在備份線路上使用靜態(tài)路由。
在全局設(shè)置模式下
ip route 目地子網(wǎng)地址 子網(wǎng)掩碼 相鄰路由器相鄰端口地址
原則上講,備份線路可以為任何線路。但一般都是用帶寬相對(duì)較低,費(fèi)用較低的線路作為備份線路。
一般的,可以用X.25或PSTN作DDN線路的備份。
以下實(shí)例為用Cisco2501 AUX口作模擬DDN專線的撥號(hào)備份.
實(shí)例:
Cisco 2501-above 的配置
Current configuration:
!
version 11.2
no service udp-small-servers
no service tcp-small-server
!
hostname above
!
enable secret 5 $1$O1aq$Kxgp1A0Eulqug8SbCm6rdl
enable password cisco
!
username down password 7 095C5E19
chat-script lab ABORT ERROR ABORT BUSY ABORT "NO ANSWER" "" "AT H" OK "ATDT \T"
TIMEOUT 60 CONNECT \c
!
interface Ethernet0
ip address 192.192.193.1 255.255.255.0
!
interface Serial0
ip address 192.192.192.1 255.255.255.0
bandwidth 64
clockrate 64000
!
interface Serial1no ip address
shutdown
!
interface Async1
ip address 166.71.70.1 255.255.255.0
encapsulation ppp
async dynamic address
async dynamic routing
async mode dedicated
dialer in-band
dialer map ip 167.71.70.2 name down moden-script lab broadcast 3631
dialer-group 1
no cdp enable
ppp authentication chap
!
router rip
network l92.192.192.0
nctwork 192.192.193.0
!
no ip classless
ip route 0.0.0.0 0.0.0.0 166.71.70.2
ip routc 192.192.191.0 255.255.255.0 166.71.70.2
dialer-list 1 protocol ip permit
!
line con 0
line aux 0
modem InOut
modem autoconfigure discovery
stopbits 1
rxspeed 38400
txspeed 38400
flowcontrol hardware
line vty 0 4
no login
!
end
!Cisco 2501 named down configurationCisco 2501-down 的配置Current configuration:
!
version 11.2
no service udp-small-servers
no servicc tcp-small-servers
!
hostname down
!
enable secret 5 $1$m8S4$lnrkhnJDtCVtSvTpXO8v/0
enable password cisco
!
username above password 7 095C5E19
chat-script lab ABORT ERROR ABORT BUSY ABORT "NO ANSWER" "" "AT H" OK "ATDT \T" TIMEOUT 60 CONNECT \C
!
interface Ethernet 0
ip address 192.192.191.1 255.255.255.0
!
interface Serial0
backup delay 10 10
backup interface Async1
ip address 192.192.192.3 255.255.255.0
!
interface Seriall
no ip address
shutdown
!
interface Async1
ip address 166.71.70.2 255.255.255.0
encapsulation ppp
async dynamic address
async dynamic routing
async mode dedicated
dialer in-band
dialer map ip 166.71.70.1 name above modem-script lab broadcast 3621
dialer-group 1
no cdp enable
ppp authentication chap
!
router rip
net work 192.192.192.0
net work 192.192.191.0
!
no ip classless
ip route 0.0.0.0 0.0.0.0 166.71.70.1
ip route 192.192.193.0 255.255.255.0 166.71.70.1
dialer-list 1 protocol ip permit
!
line con 0
line aux 0
modem InOut
modem autoconfigure discovery
stopbits 1
rxspeed 38400
txspeed 38400
flowcontrol hardware
line vty 0 4
no login
!
方法3:浮動(dòng)的靜態(tài)路由作備份。
缺省狀態(tài)下,Cisco路由器選擇路由的順序?yàn)殪o態(tài)路由,動(dòng)態(tài)路由,缺省路由,這是由各種路由的權(quán)值決定的。
可以手動(dòng)改變靜態(tài)路由的權(quán)值大小,使得其可以在動(dòng)態(tài)路由之后,該靜態(tài)路由就成為浮動(dòng)的靜態(tài)路由。如果在動(dòng)態(tài)路由表中找不到相應(yīng)有路由時(shí),浮動(dòng)的靜態(tài)路由才可以被選中,以傳輸數(shù)據(jù)。
一般的,對(duì)于X.25線路用浮動(dòng)的靜態(tài)路由作撥號(hào)備份,特別適合。不過,用浮動(dòng)的靜態(tài)路由可以用任何線路備份其他任何線路。
注意:用浮動(dòng)的靜態(tài)路由作X.25線路的備份線路則X.25線路必須起動(dòng)態(tài)路由,否則無法實(shí)現(xiàn)雙向備份。
浮動(dòng)靜態(tài)路由配置步驟:
1、正確配置主干線路,保證其能正常通信
2、配置主干線路的動(dòng)態(tài)路由
3、正確配置備份線路,保證其能正常通信
4、配置通過備份線路的浮動(dòng)靜態(tài)路由
ip route 目地子網(wǎng)地址 子網(wǎng)掩碼 相鄰路由器相鄰端口地址 權(quán)值
其中,權(quán)值數(shù)值越高其路由優(yōu)先權(quán)越低權(quán)值范圍在1-255之間
實(shí)例:
COSCO 2501-above的配置
Current confignration:!version 11.2no service udp-small-servers
no service tcp-small-servers
!
hostname above
!
enable secret 5 $1$O1aq$KxgpIA0Eulqug8SbCm6rd1
enable password cisco
!
username down password 7 095C5E19
chat-scrip lab ABORT ERROR ABORT BUSY ABORT "NO ANSWER" "" "AT H" OK "ATDT \T" TIMEOUT 60 CONNECT \c
!
interface Ethernet0
ip address 192.192.193.1 255.255.255.0
!interface Serial0
iu address 192.192.192.1 255.255.255.0
bandwidth 64
clockrate 64000
!
interface Scrial1
no ip address
shutdown
interface Asyncl
ip address 166.71.70.1 255.255.255.0
encapsulation pppasync dynamic address
async dynamic routing
async mode dedicated
dialer in-banddialer ip 166.71.70.2 name down modem-script lab broadcast 3631
dialer-group 1
no cdp enableppp authentication chap!router ripnetwork 192.192.192.0network 192.192.193.0
!
no ip classless
ip route 0.0.0.0 0.0.0.0 166.71.70.2 150
ip route 192.192.191.0 255.255.255.0 166.71.70.2 150dialer-list 1 protocol ip permit!line con 0line aux 0
modem InOutmodem autoconfigure discoverystopbits 1rxspeed 38400txspeed 38400flowcontrol hardwareline vty 0 4
no login
end
Cisco 2501-down 的配置Current configuration:
!
version 11.2no service udp-small-serversno service tep-small-servers!hostname down!enable secret 5 $1$m8S4$InrkhnJDtCVtSvTpXO8v/0enable password cisco
!
username above password 7 095C5E19
chat-script lab ABORT ERROR ABORT BUSY ABORT "NO ANSWER" "" "AT H" OK "ATDT \T" TIMEOUT 60 CONNECT \c
!
interface Ethernet0
ip address 192.192.191.1 255.255.255.0
!
interface Serial0
ip address 192.192.192.3 255.255.255.0
!
interface Serial1
no ip address
shutdown
!
interface Asyncl
ip address 166.71.70.2 255.255.255.0encapsulation pppasync dynamic addressasync dynamic routingasync mode dedicateddialer in-banddialer map ip 166.71.70.1 name above modem-script lab broadcast 3621
dialer-group 1
no cdp enable
ppp authentication chap
!
router rip network 192.192.192.0
network 192.192.191.0
!
no ip classless
ip route 0.0.0.0 0.0.0.0 166.71.70.1 150
ip route 192.192.193.0 255.255.255.0 166.71.70.1 150
dialer-list 1 protocol ip permit
!
line con 0
line aux 0
modem InOutmodem autoconfigure discovery
stopbits 1
rxspeed 38400
txspeed 38400
flowcontrol hardware
line vty 0 4
no login
Cisco路由器的備份技術(shù)有多種。這里介紹一下路由器自身的備份技術(shù)及線路備份技術(shù)。
一般來說,路由器是建立局域網(wǎng)與廣域網(wǎng)連接的橋梁。
所謂的路由器自身的備份技術(shù)是為了解決路由器由于自身硬件(如內(nèi)存、CPU)或軟件IOS的某種故障或局域端口的故障,所連接局域設(shè)備的端口或線路的故障所導(dǎo)致的網(wǎng)絡(luò)癱瘓的問題。
路由器的備份要求至少有一臺(tái)與正在工作的主路由器功能相同的路由器,在主路由器癱瘓的情況下,以某種方式代替主路由器,為局域網(wǎng)用戶提供路由服務(wù)?!?br>
對(duì)于局域網(wǎng)的計(jì)算機(jī),在主路由器癱瘓的情況下,如何找到備份路由器,主要有以下集中辦法: proxy ARP、IRDP 、動(dòng)態(tài)路由 、HSRP
1、Proxy ARP
支持Proxy ARP 的計(jì)算機(jī)無論與本網(wǎng)段的計(jì)算機(jī)還是不同網(wǎng)段的計(jì)算機(jī)進(jìn)入通訊都發(fā)送ARP廣播以尋找與目的地址相對(duì)應(yīng)的MAC地址,這時(shí),知道目的地址的路由器會(huì)響應(yīng)ARP的請(qǐng)求,并將自己的MAC地址廣播給源計(jì)算機(jī),然后源計(jì)算機(jī)就將IP數(shù)據(jù)包發(fā)給該路由器,并由路由器最終將數(shù)據(jù)包發(fā)送到目的。
在主路由器癱瘓情況下,計(jì)算機(jī)再進(jìn)行通訊時(shí),它將繼續(xù)發(fā)送Proxy ARP廣播,備份路由器響應(yīng)該請(qǐng)求,并進(jìn)行數(shù)據(jù)傳輸?!?br>
缺點(diǎn):
如果主路由器正在傳輸數(shù)據(jù)時(shí)癱瘓,正在通信的計(jì)算機(jī)在未發(fā)送另外的Proxy ARP請(qǐng)求之前.根本就無法知道主路由器已癱瘓,會(huì)繼續(xù)向該路由器發(fā)包,導(dǎo)致傳輸中斷,正在通信的計(jì)算機(jī)只有在另外發(fā)送Proxy ARP請(qǐng)求或重新啟動(dòng)之后才能找到備份路由器以進(jìn)行傳輸。
Cisco路由器支技Proxy ARP
2、IRDP
局域網(wǎng)中的支持IRDP的計(jì)算機(jī)會(huì)監(jiān)聽主路由器發(fā)出的“Hello”的多點(diǎn)廣播信息包,如果該計(jì)算機(jī)不再收到“Hello”信息時(shí),它就會(huì)利用備份路由器進(jìn)行數(shù)據(jù)傳輸。
3、動(dòng)態(tài)路由
對(duì)于某些計(jì)算機(jī),它們本身支持RIP動(dòng)態(tài)路由以尋找路由器,這種辦法的缺點(diǎn)是主路由器與備份路由器間的轉(zhuǎn)換較慢。
以上三種辦法,主要都是在計(jì)算機(jī)一方采用的技術(shù),Cisco路由器提供了HSRP技術(shù),采用這種技術(shù)不需要計(jì)算機(jī)進(jìn)行任何設(shè)置,即對(duì)計(jì)算機(jī)來說,主路由器與備份路由器之間切換是透明的,而且它們之間的切換速度較快。
采用HSRP進(jìn)行備份的一組路由器共用一個(gè)虛擬的MAC地址及虛擬IP地址,每個(gè)參與HSRP的局域端口有一個(gè)本端口的IP地址和MAC地址,每個(gè)路由器都有一個(gè)權(quán)值,權(quán)值最高的作為主路由器進(jìn)行工作,其它的不工作,當(dāng)主路由器癱瘓時(shí),第二個(gè)權(quán)值最高的路由器將作為主路由器,依次類推。路由器之間定期交換權(quán)值信息以確定路由器的工作狀態(tài)。如果主路由器在一段時(shí)間內(nèi)不發(fā)送這種信息包,其它備份路由器將認(rèn)為該路由器已壞,權(quán)值電高的備份路由器將接管虛擬MAC地址和IP地址,并負(fù)責(zé)傳輸數(shù)據(jù)。一旦主路由器恢復(fù)正常,將自動(dòng)切換回去,重新接管傳輸數(shù)據(jù)的工作,之后備份路由器停止傳輸,處于備份狀態(tài)。另外,HSRP允許路由器對(duì)某些端口的工作狀態(tài)進(jìn)行監(jiān)測(cè),一旦這個(gè)端口出現(xiàn)故障,也進(jìn)行自動(dòng)切換。
總之,對(duì)于局域網(wǎng)的計(jì)算機(jī),它們的網(wǎng)關(guān)只有一個(gè),即虛擬 IP 地址。所有的備份工作都由路由器自動(dòng)完成。
HSRP適應(yīng)于主路由器與備份路由器的線路完全一致的情況。
使用HSRP功能,建議采用收斂速度較快的動(dòng)態(tài)路由協(xié)議,如OSPF,EIGRP。
HSRP基本配置步驟:
在端口配置下,設(shè)置端口 IP 地址,
ip address端口 IP 地址 子網(wǎng)掩碼
在端口配置下,啟用 HSRP 功能,并設(shè)置虛擬 IP 地址
standby 組號(hào) IP 虛擬 IP 地址
其中只有有相同組號(hào)的路由器屬于同一個(gè)hsrp組,所有屬于同一個(gè)hsrp組的路由器的虛擬地址必須一致
在端口設(shè)置狀態(tài)下設(shè)置HSRP搶占
standby 組號(hào) preempt
該設(shè)置允許權(quán)值高于該hsrp組的其它路由器成為主路由器。所有該給路由器都應(yīng)該設(shè)置此項(xiàng),以便每臺(tái)路由器都可以成為其它路由器的備份路由器。如果不設(shè)置該項(xiàng),即使用該路由器權(quán)值再高,也不會(huì)成為主路由器。
設(shè)置路由器的hsrp權(quán)值
standby 組號(hào) priority 權(quán)值
如果不設(shè)置該項(xiàng),缺省權(quán)值為100,其中權(quán)值數(shù)字大,則搶占為主路由器的優(yōu)先權(quán)越高。
設(shè)置hsrp組路由器身份驗(yàn)證字符串
standby 組號(hào) authentication 字符串
該項(xiàng)設(shè)置為可選設(shè)置,如果設(shè)置該項(xiàng),則該hsrp組的所有路由器都必須進(jìn)行該項(xiàng)設(shè)置,且只有有相同字符串的該組路由器才能進(jìn)行hsrp。
設(shè)置hsrp切換時(shí)間
standby 組號(hào)時(shí)間參數(shù)1 時(shí)間參數(shù)2
其中時(shí)間參數(shù)1表示路由器每間隔多長時(shí)間交換一次hello信息,以表明路由器是否出現(xiàn)故障或工作正常。時(shí)間參數(shù)2表示在多長時(shí)間內(nèi)同組的其他路由器沒有收到主路由器的信息,則宣布主路由器癱瘓。該設(shè)置的缺省值分別為3秒和10秒。如果要更改缺省值,所有同hsrp組的路由器的該項(xiàng)設(shè)置必須一致。
端口跟蹤設(shè)置
standby 組號(hào) track 端口號(hào)
該項(xiàng)設(shè)置為可選設(shè)置
該設(shè)置表示如果所監(jiān)測(cè)的端口出現(xiàn)故障,則也進(jìn)行路由器的切換。可以跟蹤多外端口?!?br>
注意:如果主路由器上有多條線路被跟蹤,則有一條線路出現(xiàn)故障時(shí),就會(huì)切換到備份路由器上,即使其他都正常工作,直到主路由器該線路正常工作,才能重新發(fā)換過來。該項(xiàng)設(shè)置實(shí)現(xiàn)的功能在實(shí)際應(yīng)用中完全可以由線路備份功能實(shí)現(xiàn),而且在大多數(shù)情況下,該項(xiàng)設(shè)置也沒有多大意義。
另外,hsrp還有很多其它設(shè)置及應(yīng)用,如感興請(qǐng)?jiān)贑isco站點(diǎn)或Cisco Document上查找,或與曉通技術(shù)支持中心聯(lián)系。
實(shí)例:
2511-1與2511-2互為路由器備份
2511-1的配置
2511-1#sho run
Building configuration…
Current configuratoin:
!
version 11.3
no service password –encryption
!
hostname 251l-l
!
enable password cisco
!
username 2505 password 0 cisco
no ip domain-lookup
!
interface Ethernet0
ip address 192.4.1.99 255.255.255.0
no ip redirects
standby 1 timers 5 15
standby 1 priority 110
standby 1 preempt
standby 1 authentication cisco
standby 1 ip 192.4.1.1
standby 1 track Serial0
standby 1 track Seriall
!
interface serial0
ip address l92.3.1.1 255.255.255.0
encapsulation frame-relay IETF
ip ospf message-digest-key 1 md5 kim
no ip mroute-cache
bandwidth 2000
frame-relay map ip 192.3.1.2 100 broadcast
frame-relay lmi-type cisco
!
interface Serial1
ip address 192.7.l.l 255.255.2550
encapesulation ppp
ip ospf message-digest-key 1 md5 kim
ip ospf network non-broadcast
bandwidth 64
ppp authentication chap
!
router ospf 1
passive-interface Ethernet0
network 192.3.1.0 0.0.0.255 area 0
network 192.4.l.0 0.0.0.255 area 0network 192.7.l.0 0.0.0.255 area 0neighbor 192.7.1.2 priority 1neighbor 192.3.1.2 priority 1area 0 authentication message-digest!no ip classless!line con 0line 1 8line aux 0line vty 0 4 password cisco
login
!
end
2511-2的配置
2511-2#sho run
Building configuration...
Current configuration:
!
version 11.3
no servicc password-encryption
!
hostname 2511-2
enable secret 5 $1$7o5F$MSyFWzVf6JBgnjLJghHSB.
!
!
interface Ethernet0
ip address 192.4.1.lOO 255.255.255.0
no ip redirects
standby 1 timers 5 15
standby 1 priority 100
staidby 1 preempt
standby 1 authentication cisco
sandby 1 ip 192.4.1.1
!interface Serial0ip address 192.8.1.2 255.255.255.0encapsulation x25ip ospf missage-digest-key 2 md5 cisco
no ip mroute-cache
x25 address 5678
x25 htc 16
x25 nvc 4
x25 map ip 192.8.l.1 1234 broadcast
!
interface Serial
[1] [2] [3] [4] 下一頁
文章錄入:csh 責(zé)任編輯:csh
no ip address
no ip mroute-cachc
bandwidth 2000
clockrate 2000000
!
router ospt 1
passive-interface Ethernet0
network 192.8.1.0 0.0.0.255 area 0
network 192.4.1.0 0.0.0.255 area 0
neighbor 192.8.1.1 priority 1
area 0 authentication message-digest
!
ip classless
!
line con 0
line 1 8
line aux 0
line vty 0 4
login
!
end
2514的配置
2514# sho run
Building configuration...
!Current configuration:!version 11.2no service udp-small-serversno service tcp-small-servers!hostname 2514!enable secret 5 $1$uoHU$Vks/1YCRi33z4TXs4qekI0!
frame-relay switching
!interface Ethernet0
no ip address
!
interface Ethernet1
no ip address
shutdown
!
interfacc Serial0ip address 192.3.1.2 255.255.255.0encapsulation frame-relay IETF
ip ospf message-digest-key 1 md5 kimbandwidth 2000clockrate 2000000
frame-relay map ip 192.3.1.1 100 broadcast
frame-relay intf-type dce
!interface Serial1
ip address 192.8.1.1 255.255.255.0
no ip mroute-cache
enthpsulation x25 dce
ip ospf message-digest-key 2 md5 cisco
bandwidth 64
x25 address 1234
x25 htc 16
x25 nvc 4
x25 map ip 192.8.1.2 5678 broadcast
clockrate 64000
!
router ospf 1passive-interface Ethernet0network 192.3.1.0 0.0.0.255 area 0network 192.8.1.O 0.0.0.255 area 0neighbor 192.8.l.2 priority 1neighbor 192.3.1.1 priority 1area 0 authentication message-digest
!
no ip classless
!
line con 0line aux 0line vty 0 4login!end
2505的配置building configuraiion...Current configuration:!version 11.2no service udp-small-serversno service tcp-small-servers!hostname 2505!enable secret 5 $1$b43o$CpEYSTc2EPwnRlQGDvIm//
!
username 2511-1 password 7 1511021F0725
!
hub ether 0 1link-testauto-polarity
!hub ether O 2link-testauto-polarity!hub ether 0 3link-testauto-polarity!hub ether 0 4link-testauto-polarity!hub ether 0 5
link-test
auto-polarity
!
hub ether 0 6
link-test
auto-polarity
!
hub ether 0 7
link-test
auto-polarity
!
hub ether 0 8
link-test
auto-polarity
!
interface Ethernet0
ip address 192.1.4.1 255.255.255.0
!
interfacc Serial0
ip address 192.l.2.1 255.255.255.0
ip ospf message-digest-key 1 md5 cisco
ip ospf network non-broadcast
bandwidth 2000
clockrate 2000000
!interface Serial1ip address 192.7.1.2 255.255.255.0encapsulation pppip ospf message-digdest-key 1 md5 kimip ospf network non-broadcast
bandwidth 64
clockrate 64000
ppp authentication chap
!
router ospf 1
passive-interface Ethernet0
network 192.l.2.0 0.0.0.255 area 2
network 192.l.4.O 0.0.0.255 area 2
network 192.7.1.0 0.0.0.255 area 0
neighbor 192.7.l.1 priority 1
neighbor 192.1.2.2 priority 1
area 0 authentication message-digest
area 2 authentication message-digest
area 2 range 192.1.0.0 255.255.0.0
!
no ip classless
ip ospf name-lookup
!
line con 0
line aux 0
Iine vty 0 4
login
!
end
方法1、線路備份
其實(shí),在廣域網(wǎng)連接中,最不可靠的因素大多數(shù)情況下是出在線路、端口及外接的設(shè)備上。相對(duì)來說線路備份更為重要。線路備份一般有幾種主要方法:
采用動(dòng)態(tài)路由自動(dòng)進(jìn)行備份
采用顯示backup(備份)方法進(jìn)入備份
采用浮動(dòng)的靜態(tài)路由方法進(jìn)行備份
方法1是在網(wǎng)絡(luò)中含有多條冗余線路,路由器通過動(dòng)態(tài)路由學(xué)習(xí)到所有線路工作情況.根據(jù)路由算法選擇最優(yōu)的路徑作為主干線路,一旦某條主干線路出現(xiàn)故障,路由器將在一段時(shí)間過后,自動(dòng)刪除通過該條線路的路徑,重新進(jìn)行最優(yōu)路徑計(jì)算,重新選擇一條通過某條冗余線路的最優(yōu)的路徑。所有這些過程,都由動(dòng)態(tài)路由協(xié)議自動(dòng)完成,無須任何其它設(shè)置。
方法2 顯示backup備份方法
該種方法顯示的指明哪條主干線路,哪一條是備份線路。如果主干線路出現(xiàn)故障,則在指定的時(shí)間內(nèi),備份線路會(huì)代替主干線路工作。如果主干線路恢復(fù)正常,則在指定的時(shí)間過后,會(huì)自動(dòng)切換回主干線路備份線路重新處于備份狀態(tài)。
設(shè)置為顯示備份后,路由器將監(jiān)測(cè)CD信號(hào),一旦CD信號(hào)消失,則路由器便認(rèn)為該線路出現(xiàn)故障。如果CD 信號(hào)始終存在,則路由器認(rèn)為主干線路工作正常。
這種備方法適用于DDN專線作主干線路的情況。因?yàn)閷?duì)于DDN專線,如果線路斷掉,則兩邊的路由器的CD信號(hào)都會(huì)消失,而該種方去不適用于X.25線路上,因?yàn)閄.25線路上出現(xiàn)故障時(shí),大多數(shù)情況下都是建立不起來虛電路,而CD信號(hào)則往往存在。而且,如果一端X.25線路出現(xiàn)故障,而另一端X.25線路往往是正常的,這樣,如果正常一端的路由器有數(shù)據(jù)傳送給不正常一端時(shí),路由器認(rèn)為X.25線路工作正常。因此根本不會(huì)起備份線路。
顯示備份方法配置步驟
1.正確配置主干線路能正常通信
2.然后正確配置備份線路能正常通信
3.在主干線路所連接的端口中顯示指出哪一條線路為備份線路
backup interface 備份線路端口號(hào)
4.指定在主干線路出現(xiàn)故障多長時(shí)間后啟用備份線路及在主干線路恢復(fù)正常多長時(shí)間后切換回主干線路。備份線路恢復(fù)到備份狀態(tài)
backup delay 時(shí)間參數(shù)1(秒) 時(shí)間參數(shù)字2(秒)
時(shí)間參數(shù)1指定在主干線路出現(xiàn)故障多長時(shí)間后啟用備份線路,時(shí)間參數(shù)2指定在主干線路恢復(fù)正常多長時(shí)間后切換回主干線路,備份線路恢復(fù)到備份狀態(tài)。
設(shè)置備份線路的路由可以起任何方式的路由,但備份線路一般帶寬相對(duì)主干線路較低,且如果起動(dòng)態(tài)路由會(huì)有額外費(fèi)用。因此,一般在備份線路上使用靜態(tài)路由。
在全局設(shè)置模式下
ip route 目地子網(wǎng)地址 子網(wǎng)掩碼 相鄰路由器相鄰端口地址
原則上講,備份線路可以為任何線路。但一般都是用帶寬相對(duì)較低,費(fèi)用較低的線路作為備份線路。
一般的,可以用X.25或PSTN作DDN線路的備份。
以下實(shí)例為用Cisco2501 AUX口作模擬DDN專線的撥號(hào)備份.
實(shí)例:
Cisco 2501-above 的配置
Current configuration:
!
version 11.2
no service udp-small-servers
no service tcp-small-server
上一頁 [1] [2] [3] [4] 下一頁
文章錄入:csh 責(zé)任編輯:csh
!
hostname above
!
enable secret 5 $1$O1aq$Kxgp1A0Eulqug8SbCm6rdl
enable password cisco
!
username down password 7 095C5E19
chat-script lab ABORT ERROR ABORT BUSY ABORT "NO ANSWER" "" "AT H" OK "ATDT \T"
TIMEOUT 60 CONNECT \c
!
interface Ethernet0
ip address 192.192.193.1 255.255.255.0
!
interface Serial0
ip address 192.192.192.1 255.255.255.0
bandwidth 64
clockrate 64000
!
interface Serial1no ip address
shutdown
!
interface Async1
ip address 166.71.70.1 255.255.255.0
encapsulation ppp
async dynamic address
async dynamic routing
async mode dedicated
dialer in-band
dialer map ip 167.71.70.2 name down moden-script lab broadcast 3631
dialer-group 1
no cdp enable
ppp authentication chap
!
router rip
network l92.192.192.0
nctwork 192.192.193.0
!
no ip classless
ip route 0.0.0.0 0.0.0.0 166.71.70.2
ip routc 192.192.191.0 255.255.255.0 166.71.70.2
dialer-list 1 protocol ip permit
!
line con 0
line aux 0
modem InOut
modem autoconfigure discovery
stopbits 1
rxspeed 38400
txspeed 38400
flowcontrol hardware
line vty 0 4
no login
!
end
!Cisco 2501 named down configurationCisco 2501-down 的配置Current configuration:
!
version 11.2
no service udp-small-servers
no servicc tcp-small-servers
!
hostname down
!
enable secret 5 $1$m8S4$lnrkhnJDtCVtSvTpXO8v/0
enable password cisco
!
username above password 7 095C5E19
chat-script lab ABORT ERROR ABORT BUSY ABORT "NO ANSWER" "" "AT H" OK "ATDT \T" TIMEOUT 60 CONNECT \C
!
interface Ethernet 0
ip address 192.192.191.1 255.255.255.0
!
interface Serial0
backup delay 10 10
backup interface Async1
ip address 192.192.192.3 255.255.255.0
!
interface Seriall
no ip address
shutdown
!
interface Async1
ip address 166.71.70.2 255.255.255.0
encapsulation ppp
async dynamic address
async dynamic routing
async mode dedicated
dialer in-band
dialer map ip 166.71.70.1 name above modem-script lab broadcast 3621
dialer-group 1
no cdp enable
ppp authentication chap
!
router rip
net work 192.192.192.0
net work 192.192.191.0
!
no ip classless
ip route 0.0.0.0 0.0.0.0 166.71.70.1
ip route 192.192.193.0 255.255.255.0 166.71.70.1
dialer-list 1 protocol ip permit
!
line con 0
line aux 0
modem InOut
modem autoconfigure discovery
stopbits 1
rxspeed 38400
txspeed 38400
flowcontrol hardware
line vty 0 4
no login
!
方法3:浮動(dòng)的靜態(tài)路由作備份。
缺省狀態(tài)下,Cisco路由器選擇路由的順序?yàn)殪o態(tài)路由,動(dòng)態(tài)路由,缺省路由,這是由各種路由的權(quán)值決定的。
可以手動(dòng)改變靜態(tài)路由的權(quán)值大小,使得其可以在動(dòng)態(tài)路由之后,該靜態(tài)路由就成為浮動(dòng)的靜態(tài)路由。如果在動(dòng)態(tài)路由表中找不到相應(yīng)有路由時(shí),浮動(dòng)的靜態(tài)路由才可以被選中,以傳輸數(shù)據(jù)。
一般的,對(duì)于X.25線路用浮動(dòng)的靜態(tài)路由作撥號(hào)備份,特別適合。不過,用浮動(dòng)的靜態(tài)路由可以用任何線路備份其他任何線路。
注意:用浮動(dòng)的靜態(tài)路由作X.25線路的備份線路則X.25線路必須起動(dòng)態(tài)路由,否則無法實(shí)現(xiàn)雙向備份。
浮動(dòng)靜態(tài)路由配置步驟:
1、正確配置主干線路,保證其能正常通信
2、配置主干線路的動(dòng)態(tài)路由
3、正確配置備份線路,保證其能正常通信
4、配置通過備份線路的浮動(dòng)靜態(tài)路由
ip route 目地子網(wǎng)地址 子網(wǎng)掩碼 相鄰路由器相鄰端口地址 權(quán)值
其中,權(quán)值數(shù)值越高其路由優(yōu)先權(quán)越低權(quán)值范圍在1-255之間
實(shí)例:
COSCO 2501-above的配置
Current confignration:!version 11.2no service udp-small-servers
no service tcp-small-servers
!
hostname above
!
enable secret 5 $1$O1aq$KxgpIA0Eulqug8SbCm6rd1
enable password cisco
!
username down password 7 095C5E19
chat-scrip lab ABORT ERROR ABORT BUSY ABORT "NO ANSWER" "" "AT H" OK "ATDT \T" TIMEOUT 60 CONNECT \c
!
interface Ethernet0
ip address 192.192.193.1 255.255.255.0
!interface Serial0
iu address 192.192.192.1 255.255.255.0
bandwidth 64
clockrate 64000
!
interface Scrial1
no ip address
shutdown
interface Asyncl
ip address 166.71.70.1 255.255.255.0
encapsulation pppasync dynamic address
async dynamic routing
async mode dedicated
dialer in-banddialer ip 166.71.70.2 name down modem-script lab broadcast 3631
dialer-group 1
no cdp enableppp authentication chap!router ripnetwork 192.192.192.0network 192.192.193.0
!
no ip classless
ip route 0.0.0.0 0.0.0.0 166.71.70.2 150
ip route 192.192.191.0 255.255.255.0 166.71.70.2 150dialer-list 1 protocol ip permit!line con 0line aux 0
modem InOutmodem autoconfigure discoverystopbits 1rxspeed 38400txspeed 38400flowcontrol hardwareline vty 0 4
no login
上一頁 [1] [2] [3] [4] 下一頁
文章錄入:csh 責(zé)任編輯:csh
end
Cisco 2501-down 的配置Current configuration:
!
version 11.2no service udp-small-serversno service tep-small-servers!hostname down!enable secret 5 $1$m8S4$InrkhnJDtCVtSvTpXO8v/0enable password cisco
!
username above password 7 095C5E19
chat-script lab ABORT ERROR ABORT BUSY ABORT "NO ANSWER" "" "AT H" OK "ATDT \T" TIMEOUT 60 CONNECT \c
!
interface Ethernet0
ip address 192.192.191.1 255.255.255.0
!
interface Serial0
ip address 192.192.192.3 255.255.255.0
!
interface Serial1
no ip address
shutdown
!
interface Asyncl
ip address 166.71.70.2 255.255.255.0encapsulation pppasync dynamic addressasync dynamic routingasync mode dedicateddialer in-banddialer map ip 166.71.70.1 name above modem-script lab broadcast 3621
dialer-group 1
no cdp enable
ppp authentication chap
!
router rip network 192.192.192.0
network 192.192.191.0
!
no ip classless
ip route 0.0.0.0 0.0.0.0 166.71.70.1 150
ip route 192.192.193.0 255.255.255.0 166.71.70.1 150
dialer-list 1 protocol ip permit
!
line con 0
line aux 0
modem InOutmodem autoconfigure discovery
stopbits 1
rxspeed 38400
txspeed 38400
flowcontrol hardware
line vty 0 4
no login
上一頁 [1] [2] [3] [4]
文章錄入:csh 責(zé)任編輯:csh相關(guān)文章
二層交換機(jī),三層交換機(jī),四層交換機(jī)的區(qū)別
二層交換機(jī),三層交換機(jī),四層交換機(jī)的區(qū)別...2007-09-09MPLS多協(xié)議標(biāo)記技術(shù)增強(qiáng)網(wǎng)絡(luò)傳輸作用
MPLS多協(xié)議標(biāo)記技術(shù)增強(qiáng)網(wǎng)絡(luò)傳輸作用...2007-09-09