05-24-2007 09:42 AM - edited 03-03-2019 05:07 PM
I have two routers R1 --- R2, both running OSPF, both in full adjacency.
If I configure BGP in both routers, and configure redistribute static in R1, then R2 should see those static routers, correct? Why am I not seeing those routes?
R1 config:
router bgp 64674
synchronization
bgp log-neighbor-changes
redistribute static
no auto-summary
R2 config:
router bgp 64674
synchronization
bgp log-neighbor-changes
no auto-summary
R1 has this static route:
Network Next Hop Metric LocPrf Weight Path
*> 10.197.0.0/16 172.31.6.10 0 32768 ?
But R2 is not seeing it. Why?
Solved! Go to Solution.
05-24-2007 09:50 AM
Hi,
Nice going!
You just need to add the neighour statement :)
router bgp 64674
neighbour XXXX remote-as 64674
...
Check the scroll-bar at the bottom rigth of every helpfull post :)
BR,
Bjornarsb
05-24-2007 10:01 AM
Sarah,
For BGP routers to connect and start exchanging routing information, you need to configure neighbor statements under BGP.
R1:
router bgp 64674
neighbor x.x.x.x remote-as 64674
R2:
router bgp 64674
neighbor y.y.y.y remote-as 64674
where x.x.x.x is R2 interface address and y.y.y.y is R1 interface address.
It is also possible to establishing using the loopback interface, in which case you would have:
R1:
neighbor x.x.x.x remote-as 64674
neighbor x.x.x.x update-source looback 0
where x.x.x is the loopback interface address on R2.
Hope this helps,
05-24-2007 09:50 AM
Hi,
Nice going!
You just need to add the neighour statement :)
router bgp 64674
neighbour XXXX remote-as 64674
...
Check the scroll-bar at the bottom rigth of every helpfull post :)
BR,
Bjornarsb
05-24-2007 09:51 AM
and so you know bgp differ from ospf and eigrp and ... bgp do not use multicast 224.x.x.x it uses tcp port 179 :)
05-24-2007 09:57 AM
Sarah,
For BGP routers to connect and start exchanging routing information, you need to configure neighbor statements under BGP.
R1:
router bgp 64674
neighbor x.x.x.x remote-as 64674
R2:
router bgp 64674
neighbor y.y.y.y remote-as 64674
where x.x.x.x is R2 interface address and y.y.y.y is R1 interface address.
It is also possible to establishing using the loopback interface, in which case you would have:
R1:
neighbor x.x.x.x remote-as 64674
neighbor x.x.x.x update-source looback 0
where x.x.x is the loopback interface address on R2.
Hope this helps,
05-24-2007 10:00 AM
Man, you guys are quick. Thanks!
It seems unlike OSPF, I have to specify the interface IP as the neighbor IP? If I specify the loopback address of the neighbor router, it doesn't know how to get to it?
05-24-2007 10:01 AM
Sarah,
For BGP routers to connect and start exchanging routing information, you need to configure neighbor statements under BGP.
R1:
router bgp 64674
neighbor x.x.x.x remote-as 64674
R2:
router bgp 64674
neighbor y.y.y.y remote-as 64674
where x.x.x.x is R2 interface address and y.y.y.y is R1 interface address.
It is also possible to establishing using the loopback interface, in which case you would have:
R1:
neighbor x.x.x.x remote-as 64674
neighbor x.x.x.x update-source looback 0
where x.x.x is the loopback interface address on R2.
Hope this helps,
05-24-2007 10:10 AM
I got it working now with both iface IP and loopback address. Thanks a lot!
05-24-2007 10:16 AM
Great. Sorry for the double posting. I must have hit one too many key.
Regards,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide