cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
24936
Views
10
Helpful
12
Replies

static to bgp redistribution

csco11579831
Level 1
Level 1

Hello,

According to the following config, can you please tell me is that the only allowed tables of my route-map to be announced or should I add more lines?

The goal is to know if the routing table "ip route 0.0.0.0 0.0.0.0 192.168.10.254" will be redistributed in bgp because it is included in my last resort,

RTR(config)# ip route 0.0.0.0 0.0.0.0 192.168.10.254

!

RTR(config)# access-list 10 permit 172.18.14.0 0.0.0.255

RTR(config)# access-list 10 permit 172.16.31.0 0.0.0.255

RTR(config)# access-list 10 permit 172.18.103.0 0.0.0.255

RTR(config)# access-list 10 permit 1172.19.238.0 0.0.0.255

RTR(config)# access-list 10 permit 192.168.64.0 0.0.0.255

!

!

RTR(config)# route-map XXX permit 10

RTR(config-map)# match ip address 10

!

!

RTR(config-map)# router bgp 65641

RTR(config)#bgp log-neighbor-changes

RTR(config-map)# redistribute static route-map XXX

RTR(config)#neighbor 192.253.0.133 remote-as 64774

RTR(config)#neighbor 192.118.129.121 fall-over bfd

12 Replies 12

Vishesh Verma
Level 1
Level 1

To match default route for redistribution-

access-list 10 permit 0.0.0.0

Hi,

You also need to add the command "default-information originate" under "router bgp 65641" to allow the default route to be redistributed into BGP.

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

Hi,

but i want redistribute just networks they in my access-list 10,i wan't announce all ip route 0.0.0.0 0.0.0.0,

Hi,

if you want to redistribute the static default route only:

ip prefix DEFAULT_PREFIX permit 0.0.0.0/0

route-map DEFAULT_ONLY

match ip address prefix DEFAULT_PREFIX

router bgp 65641

redistribute static route-map DEFAULT_ONLY

default-information originate

if you've got other static routes then modifiy the route-map accordingly and if these are connected prefixes then use another route-map for these and do redistribute connected route-map command.

Regards

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

no, it's not that,

we have: ip route 0.0.0.0 0.0.0.0. X.X.X.X

and an ACL in which I declare my networks to announce

So I just want others to see that networs that are in my ACL,not all 0.0.0.0 0.0.0.0

Config:

RTR(config)# ip route 0.0.0.0 0.0.0.0 192.168.10.254

!

RTR(config)# access-list 10 permit 172.18.14.0 0.0.0.255

RTR(config)# access-list 10 permit 172.16.31.0 0.0.0.255

RTR(config)# access-list 10 permit 172.18.103.0 0.0.0.255

RTR(config)# access-list 10 permit 1172.19.238.0 0.0.0.255

RTR(config)# access-list 10 permit 192.168.64.0 0.0.0.255

!

!

RTR(config)# route-map XXX permit 10

RTR(config-map)# match ip address 10

!

!

RTR(config-map)# router bgp 65641

RTR(config)#bgp log-neighbor-changes

RTR(config)#default-information originate

RTR(config-map)# redistribute static route-map XXX

RTR(config)#neighbor 192.253.0.133 remote-as 64774

RTR(config)#neighbor 192.118.129.121 fall-over bfd

Sincerely,

ACL statement with permit 0.0.0.0, matches default-route only. you need that in your config or you can use prefix-list as described by Cadet Alain.

no, it's not that,

we have: ip route 0.0.0.0 0.0.0.0. X.X.X.X

and an ACL in which I declare my networks to announce

So I just want others to see that networs that are in my ACL,not all 0.0.0.0 0.0.0.0

Config:

RTR(config)# ip route 0.0.0.0 0.0.0.0 192.168.10.254

!

RTR(config)# access-list 10 permit 172.18.14.0 0.0.0.255

RTR(config)# access-list 10 permit 172.16.31.0 0.0.0.255

RTR(config)# access-list 10 permit 172.18.103.0 0.0.0.255

RTR(config)# access-list 10 permit 1172.19.238.0 0.0.0.255

RTR(config)# access-list 10 permit 192.168.64.0 0.0.0.255

!

!

RTR(config)# route-map XXX permit 10

RTR(config-map)# match ip address 10

!

!

RTR(config-map)# router bgp 65641

RTR(config)#bgp log-neighbor-changes

RTR(config)#default-information originate

RTR(config-map)# redistribute static route-map XXX

RTR(config)#neighbor 192.253.0.133 remote-as 64774

RTR(config)#neighbor 192.118.129.121 fall-over bfd

Sincerely,

Hi,

so you advertise a default route but you also want to advertise other networks part of this summary-route ?

It's not very clear what you want to achieve.

Have you got static routes other than 0.0.0.0/0 that you want to redistribute ? Because this is what your redistribute static route-map command does.

I think it would be cleare if you posted your sanitized config.

Regards

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

in part joined the scheme

I don't see anything.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

sorry,

can you see now?

Hello.

It seems to me that the question was: not to advertise 0.0.0.0/0 via BGP and to be sure that it's not.

So, if you don't want to advertise 0.0.0.0/0 remove "default-information originate" statement.

To check what prefixes could be advertised by BGP, use "show ip bgp" (to see BGP table) and "sh ip bgp nei x.x.x.x adv" (to see advertised routes).

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:

Review Cisco Networking products for a $25 gift card