- On all routers that are going to run BGP, make sure they have at least 16 MB of memory.
To enable BGP, issue the following commands:
set bgp enable
save all
reboot
- Our AS for this example will be 9009 . Issue the following command on all BGP routers:
| set bgp id <IP number of ether0>
set bgp as 9009
save all
reset bgp
- Setup the EXTERNAL peering to the two different providers.
(Router 192.168.10.5 will receive it's feed from 172.16.96.76 AS 9966 and router
192.168.10.3 will receive it's feed from 10.200.10.3 AS 8855). Set up the peers
to these routers with the following commands:
On 192.168.10.3:
add bgp peer 192.168.10.3 10.200.10.3 8855 easy-multihome
save all
On 192.168.10.5:
add bgp peer 192.168.10.5 172.16.96.76 9966 easy-multihome
save all
- Setup the INTERNAL peering to the AS 9009 router 192.168.10.6 . We will set each router
to always be the next hop in the BGP path. Also setup the INTERNAL peering between
192.168.10.3 and 192.168.10.5 .
On 192.168.10.3:
add bgp peer 192.168.10.3 192.168.10.6 9009 accept all inject all advertise all always
add bgp peer 192.168.10.3 192.168.10.5 9009 accept all inject all advertise all
save all
On 192.168.10.5:
add bgp peer 192.168.10.5 192.168.10.6 9009 accept all inject all advertise all
always
add bgp peer 192.168.10.5 192.168.10.3 9009 accept all inject all advertise all
save all
- Setup the INTERNAL peering to the AS 9009 routers 192.168.10.3 and 192.168.10.5 routers
from 192.168.10.6 .
On 192.168.10.6:
add bgp peer 192.168.10.6 192.168.10.3 9009 accept all inject all advertise all
add bgp peer 192.168.10.6 192.168.10.5 9009 accept all inject all advertise all
- Add summarizations for internal routes that you want to advertise to your providers.
On 192.168.10.5:
add bgp summarization 192.168.10.0/24 as 9966
add bgp summarization 192.168.20.0/24 as 9966
On 192.168.10.3:
add bgp summ 192.168.10.0/24 as 8855
add bgp summarization 192.168.20.0/24 as 8855