Using Backup Interfaces
Problem
You want to configure a router to dial only if it sees a physical failure on the primary WAN interface.
Solution
Cisco routers can watch the physical signals on an interface and trigger a backup interface if the primary link fails. The router will automatically drop the call after the primary circuit comes back up:
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#interface
Router1(config-if)#
Serial0/0
backup delay
Router1(config-if)#
0 300
backup interface
Router1(config-if)#
BRI0/0
encapsulation frame-relay
Router1(config-if)#down-when-looped
Router1(config-if)#exit
Router1(config)#interface
Serial0/0.1
point-to-point
Router1(config-subif)#ip address
Router1(config-subif)#
10.1.1.10 255.255.255.252
frame-relay interface-dlci
Router1(config-subif)#
50
exit
Router1(config)#interface
Router1(config-if)#
BRI0/0
ip address
Router1(config-if)#
10.1.99.55 255.255.255.0
encapsulation ppp
Router1(config-if)#dialer idle-timeout
Router1(config-if)#
300
dialer map ip
10.1.99.1
name
dialhost
broadcast
Router1(config-if)#
95551212
dialer load-threshold
50
either
Router1(config-if)#dialer-group
Router1(config-if)#
1
isdn switch-type basic-ni
Router1(config-if)#isdn spid1
Router1(config-if)#
800555123400 5551234
isdn spid2
Router1(config-if)#
800555123500 5551235
ppp authentication chap
Router1(config-if)#ppp multilink
Router1(config-if)#exit
Router1(config)#dialer-list
1
protocol ip permit
Router1(config)#end
Router1#
Discussion ...
Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.