cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1474
Views
0
Helpful
3
Replies

reduce route via export map on VRF

TimurKaneev
Level 1
Level 1

Hi Guys.

I have one problem.

The scenario is from ISP get full view in VRF OUT on WAN1 , then export route from VRF OUT to VRF CUSTOME1 on AGR1 (WAN1 and AGR1 is cisco 6509). I want export only default gateway from VRF OUT:

ip vrf OUT

rd 333:1

export map TO_EXPORT_DG

route-target export 333:1

route-target import 300:0


ip prefix-list prefix_default_route seq 5 permit 0.0.0.0/0

route-map TO_EXPORT_DG permit 5
match ip address prefix-list to_default_gateway
but vrf CUSTOMER1 get full view.
Where  is mistake I don't understand.
if i do "sho ip bgp vpnv4 vrf OUT route-map TO_EXPORT_DG"
I get this:
BGP table version is 328678, local router ID is 10.0.0.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 333:1 (default for vrf OUT)
*  0.0.0.0          xx.xx.24.1                 0              65000    i
*>                        0.0.0.0                  0              32768    i
TEST-WAN1#
Thanks for all.

3 Replies 3

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Timur,

>> *>                        0.0.0.0                  0               32768    i

This means a second 0.0.0.0/0 exists locally generated on the node (next-hop=0.0.0.0 and weight 32768) and it is the best path for the highest weight.

what is the configuration in BGP in address-family ipv4 vrf OUT?

Hope to help

Giuseppe

Hello!

I got it.

I show result of command "sho ip bgp vpnv4 vrf OUT route-map TO_EXPORT_DG"  for show that route-map is working then i want to show routes.

address-family ipv4 vrf OUT

  redistribute connected

  redistribute static

  neighbor x.x.24.1 remote-as 65000

  neighbor x.x.24.1 local-as 65200 no-prepend replace-as

  neighbor x.x.24.1 ebgp-multihop 10

  neighbor x.x.24.1 activate

  neighbor x.x.24.1 distribute-list acl_deny_all out

  neighbor x.x.24.1 route-map set-rt in

  default-information originate

  no synchronization

  network 0.0.0.0

exit-address-family

Hello Timur,

>>  network 0.0.0.0

yes, you are also generating a local default route in this VRF as it is seen in the first post

Hope to help

Giuseppe

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: