cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
703
Views
0
Helpful
7
Replies

BGP newbie question

sarah12345
Level 1
Level 1

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

bjornarsb
Level 4
Level 4

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

View solution in original post

Harold Ritter
Cisco Employee
Cisco Employee

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

View solution in original post

7 Replies 7

bjornarsb
Level 4
Level 4

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

bjornarsb
Level 4
Level 4

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

Harold Ritter
Cisco Employee
Cisco Employee

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

sarah12345
Level 1
Level 1

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?

Harold Ritter
Cisco Employee
Cisco Employee

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

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

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
Getting Started

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: