01-02-2009 07:28 PM - edited 03-04-2019 03:18 AM
Hello,
I am studying for the CCNP and I am setting up a simple BGP connection between two routers but can't get it to work.
Here are the configs.
<RTR_A>-------<switch>------<RTR_B>
Router A
int lo0
ip add 10.10.10.10 255.255.255.255
int fa0/0
ip add 192.168.0.1 255.255.255.252
router bgp 1
neighbor 192.168.0.2 remote-as 2
Router B
int lo0
ip add 20.20.20.20 255.255.255.255
int fa0/0
ip add 192.168.0.2 255.255.255.252
router bgp 2
neighbor 192.168.0.1 remote-as 1
Any reason why this isn't connecting? Physical layer is good as I can ping connected interfaces from both sides.
Thanks,
Richard
01-02-2009 07:54 PM
Ahh ... figured it out. Have to advertise networks as well as name neighbors in router bgp
01-03-2009 05:10 AM
Hello Richard,
a useful command is
sh ip bgp summary
as you have just discovered is possible to build a BGP session without advertising nothing.
in this case you see 0 as the number of prefixes received.
If you use sh ip route bgp you don't see nothing but the BGP session is up.
Think of BGP session as a communication channel between two devices
Hope to help
Giuseppe
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: