December 2006
Intermediate to advanced
1188 pages
72h 8m
English
You want to set up BGP to support two redundant Internet connections.
The following configuration shows how to make the basic BGP connections, but it has serious problems that we will show how to fix in other recipes in this chapter:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#interfaceRouter1(config-if)#Serial0descriptionRouter1(config-if)#connection to ISP #1, ASN 65510ip addressRouter1(config-if)#192.168.1.6 255.255.255.252exitRouter1(config)#interfaceRouter1(config-if)#Serial1descriptionRouter1(config-if)#connection to ISP #2, ASN 65520ip addressRouter1(config-if)#192.168.2.6 255.255.255.252exitRouter1(config)#interfaceRouter1(config-if)#Ethernet0descriptionRouter1(config-if)#connection to internal network, ASN 65500ip addressRouter1(config-if)#172.18.5.2 255.255.255.0exitRouter1(config)#router bgpRouter1(config-router)#65500network172.18.5.0maskRouter1(config-router)#255.255.255.0neighbor192.168.1.5remote-asRouter1(config-router)#65510neighbor192.168.2.5remote-asRouter1(config-router)#65520no synchronizationRouter1(config-router)#exitRouter1(config)#endRouter1#
We do not recommend using this configuration as printed for a real Internet connection because it leaves out several key components. A more complete example is shown in Recipe 9.19.
Perhaps the most common BGP application involves connecting a single router to two different ...