[c-nsp] v6 address in ext acc list?

Simon Leinen simon at limmat.switch.ch
Mon Aug 8 07:02:33 EDT 2005


Randy,

>> You need a ipv6 access-list to filter ipv6 addresses.
> ipv6 route 2001:418:1::/48 null0 250

> ipv6 prefix-list v6-to-bgp-orig permit 2001:418:1::/48

> route-map static-to-bgp permit 1
>  match ip address prefix-list v4-to-bgp-orig
>  match ipv6 address prefix-list v6-to-bgp-orig
>  set nlri unicast multicast
>  set origin igp

> foo(config-route-map)# match ipv6 address prefix-list v6-to-bgp-orig
> % "static-to-bgp" used as redistribute static into bgp route-map, ipv6 address match not supported

> so hit me with the clue-by-four again, sigh

I'm afraid you need to separate out the route maps as well

    ipv6 route 2001:418:1::/48 null0 250
    !
    ipv6 prefix-list v6-to-bgp-orig permit 2001:418:1::/48
    !
    route-map static-to-bgp-v4 permit 1
     match ip address prefix-list v4-to-bgp-orig
     set nlri unicast multicast
     set origin igp
    !
    route-map static-to-bgp-v6 permit 1
     match ipv6 address prefix-list v6-to-bgp-orig
     set nlri unicast multicast
     set origin igp

Also, I'm not sure whether the "set nlri" will work, so you may even
have to apply the redistributions per SAFI, e.g.

    router bgp 3130
     address-family ipv4 unicast
     redistribute static route-map static-to-bgp-v4
     address-family ipv4 multicast
     redistribute static route-map static-to-bgp-v4
     address-family ipv6 unicast
     redistribute static route-map static-to-bgp-v6
     address-family ipv6 multicast
     redistribute static route-map static-to-bgp-v6
-- 
Simon Leinen				       simon at babar.switch.ch
SWITCH				   http://www.switch.ch/misc/leinen/

	       Computers hate being anthropomorphized.



More information about the cisco-nsp mailing list