Connecting to Two ISPs with Redundant Routers
Problem
You want to connect your network to two different ISPs using two routers to eliminate any single points of failure.
Solution
In this example, we have two routers in our AS, which has ASN 65500. The first router has a link to the first ISP, whose ASN is 65510:
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#interface
Router1(config-if)#
Serial0
description
Router1(config-if)#
connection to ISP #1, ASN 65510
ip address
Router1(config-if)#
192.168.1.6 255.255.255.252
exit
Router1(config)#interface
Router1(config-if)#
Ethernet0
description
Router1(config-if)#
connection to internal network, ASN 65500
ip address
Router1(config-if)#
172.18.5.2 255.255.255.0
exit
Router1(config)#ip as-path access-list
15
permit ^$
Router1(config)#router bgp
Router1(config-router)#
65500
network
172.18.5.0
mask
Router1(config-router)#
255.255.255.0
neighbor
172.18.5.3
remote-as
Router1(config-router)#
65500
neighbor
172.18.5.3
next-hop-self
Router1(config-router)#neighbor
192.168.1.5
remote-as
Router1(config-router)#
65510
neighbor
192.168.1.5
filter-list
15
out
Router1(config-router)#no synchronization
Router1(config-router)#exit
Router1(config)#end
Router1#
Then the second router connects to the second ISP, which uses ASN 65520. And because these two routers are both members of the same AS, they also must have an iBGP connection:
Router2#configure terminal
Enter configuration commands, one per line. End with ...
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.