10-09-2013 01:56 PM - edited 03-04-2019 09:16 PM
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
10-09-2013 03:16 PM
To match default route for redistribution-
access-list 10 permit 0.0.0.0
10-09-2013 04:35 PM
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
10-09-2013 11:10 PM
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,
10-10-2013 01:19 AM
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.
10-11-2013 01:14 AM
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,
10-10-2013 01:24 AM
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.
10-11-2013 01:14 AM
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,
10-11-2013 02:31 AM
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.
10-11-2013 03:23 AM
10-11-2013 03:47 AM
I don't see anything.
Alain
Don't forget to rate helpful posts.
10-11-2013 11:43 AM
10-13-2013 10:37 AM
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).
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