reduce route via export map on VRF

Unanswered Question
Mar 31st, 2010
User Badges:

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.
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Giuseppe Larosa Wed, 03/31/2010 - 13:03
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

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

TimurKaneev Thu, 04/01/2010 - 00:10
User Badges:

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

Giuseppe Larosa Thu, 04/01/2010 - 04:52
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

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

Actions

This Discussion