Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

BGP newbie question

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?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Bronze

Re: BGP newbie question

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

Cisco Employee

Re: BGP newbie question

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,

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México 
Paseo de la Reforma 222 Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
7 REPLIES
Bronze

Re: BGP newbie question

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

Bronze

Re: BGP newbie question

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 :)

Cisco Employee

Re: BGP newbie question

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,

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México 
Paseo de la Reforma 222 Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
New Member

Re: BGP newbie question

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?

Cisco Employee

Re: BGP newbie question

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,

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México 
Paseo de la Reforma 222 Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
New Member

Re: BGP newbie question

I got it working now with both iface IP and loopback address. Thanks a lot!

Cisco Employee

Re: BGP newbie question

Great. Sorry for the double posting. I must have hit one too many key.

Regards,

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México 
Paseo de la Reforma 222 Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
158
Views
0
Helpful
7
Replies