決定主從接口(必需) 決定要監視的網絡或路由(必需) 給接口配ddr備份(必需) 建立一個Dialer List (必需) 在備份接口上設定關閉時間(可選)
maui?soho?01 (1600) maui?soho?01#show running?config Building configuration... Current configuration : 1546 bytes ! version 12.1 no service single?slot?reload?enable service timestamps debug uptime service timestamps log uptime no service passWord?encryption ! hostname maui?soho?01 ! logging rate?limit console 10 except errors aaa new?model aaa authentication login default local aaa authentication login NO_AUTHEN none aaa authentication ppp default local !??? 這是點對點call的基本3A配置。 enable secret 5 ! username maui?nas?05 password 0 cisco !??? 遠程路由的用戶名 (maui?nas?05) and 和共用的密碼. !??? 共用的密碼(用于 CHAP認證)兩端必須相同. Cisco ? Configuring DDR Backup using BRIs and Dialer Watch ip subnet?zero no ip finger ! isdn switch?type basic?ni ! interface Loopback0 ip address 172.17.1.1 255.255.255.0 ! interface Ethernet0 ip address 172.16.1.1 255.255.255.0 ! interface Serial0 !??? 主鏈路 ip address 192.168.10.2 255.255.255.252 encapsulation ppp ppp authentication chap ! interface BRI0 ip address 172.20.10.2 255.255.255.0 !??? BRI口的ip 地址(備份鏈路) encapsulation ppp dialer idle?timeout 30 !??? 備份鏈路的超時時間 (秒) . !??? Dialer watch 檢查 主鏈路的周期超時時間。 dialer watch?disable 15 !??? 主鏈路恢復15秒后掛斷備份鏈路 dialer load?threshold 1 outbound !??? 多鏈路復用負載門限值。(1-255),超過門限就啟用ppp multilink. dialer map ip 172.20.10.1 name maui?nas?05 broadcast 5551111 !??? BRi接口與遠端路由器的撥叫映射。 dialer map ip 172.22.53.0 name maui?nas?05 broadcast 5551111 !??? 被dialer watch?list命令監視的路由/網絡的映射聲明 !??? 這個網絡要和dialer watch?list命令中的一樣。 !??? 當被監視的路由消失了, 就撥起指定的連接。 dialer watch?group 8 !??? 在備份接口開啟dialer watch。 !??? 監視由dialer watch?list 8所指定的路由。. dialer?group 1 !??? 應用在dialer?list 1中指定的感愛好流量. isdn switch?type basic?ni isdn spid1 51255522220101 5552222 isdn spid2 51255522230101 5552223 !??? SPID 信息,你的電信服務商會提供給你。 !??? 有的地區不需要spid. ppp authentication chap !???用CHAP驗證. ppp multilink !??? 啟用ppp多路并用。. ! router ospf 5 log?adjacency?changes >network 172.16.1.0 0.0.0.255 area 0 network 172.17.1.0 0.0.0.255 area 0 network 172.20.10.0 0.0.0.255 area 0 network 192.168.10.0 0.0.0.3 area 0 ! ip classless no ip http server ! dialer watch?list 8 ip 172.22.53.0 255.255.255.0 !??? 定義了要監視的路由條目. !??? 這條確切路由(包含子網掩碼) 必須是路由表中存在的。 !??? 用dialer watch?group 8在接口中應用。 access?list 101 remark Define Interesting Traffic access?list 101 deny ospf any any !??? 標記ospf為非感愛好流量。. !??? 這是為了防止ospf的keepalive撥起鏈路。. access?list 101 permit ip any any dialer?list 1 PRotocol ip list 101 !??? 感愛好流量由訪問列表101定義。. !??? 這個用dialer?group 1應用到bri口。. ! line con 0 login authentication NO_AUTHEN transport input none line vty 0 4 ! end maui?nas?05 (3640) maui?nas?05#show running?config Building configuration... Current configuration: ! Cisco ? Configuring DDR Backup using BRIs and Dialer Watch version 12.1 service timestamps debug uptime service timestamps log uptime no service password?encryption ! hostname maui?nas?05 ! aaa new?model aaa authentication login default local aaa authentication login NO_AUTHEN none aaa authentication ppp default local !??? This is the basic AAA configuration for PPP calls. enable secret 5 ! username maui?soho?01 password 0 cisco !??? Username for remote router (maui?soho?01) and shared secret. !??? Shared secret(used for CHAP authentication) must be the same on !??? both sides. ! ip subnet?zero ! isdn switch?type basic?ni ! interface Loopback0 ip address 172.22.1.1 255.255.255.0 ! interface Ethernet0/0 ip address 172.22.53.105 255.255.255.0 ! interface Ethernet0/1 no ip address shutdown ! interface BRI1/0 !??? Interface for backup link. ip address 172.20.10.1 255.255.255.0 encapsulation ppp dialer map ip 172.20.10.2 name maui?soho?01 broadcast !??? This is the dialer map with IP address and authenticated username !??? for the remote destination. The name should match the authentication !??? username provided by the remote side. The dialer map statement is !??? used even though this router is not dialing out !??? (that is, the phone number is not specified). dialer?group 1 !??? Apply interesting traffic defined in dialer?list 1. isdn switch?type basic?ni isdn spid1 51255511110101 5551111 isdn spid2 51255511120101 5551112 !??? SPID information. Contact your telco for the SPID format. !??? In many parts of the world, SPIDs are not required. !??? In sUCh cases, omit the above two commands. ppp authentication chap ppp multilink Cisco ? Configuring DDR Backup using BRIs and Dialer Watch ! !??? Output removed. ! interface Serial2/0 !??? Primary link. ip address 192.168.10.1 255.255.255.252 encapsulation ppp clockrate 64000 ppp authentication chap ! !??? Output removed. ! router ospf 5 network 172.20.10.0 0.0.0.255 area 0 network 172.22.1.0 0.0.0.255 area 0 network 172.22.53.0 0.0.0.255 area 0 network 192.168.10.0 0.0.0.3 area 0 default?information originate ! ip classless ip route 0.0.0.0 0.0.0.0 Ethernet0/0 no ip http server ! dialer?list 1 protocol ip permit !??? This defines all IP traffic as interesting. OSPF does not need !??? to be marked uninteresting since this link does not dial out. !??? Adjust the interesting traffic definition depending on your needs. ! line con 0 login authentication NO_AUTHEN transport input none line 97 102 line aux 0 line vty 0 4 ! end