[c-nsp] as path filtering in route map policy

Alain Cocconi cocconi at canl.net
Tue Sep 21 20:40:11 EDT 2004


Hello,

I'm trying to do a route selection on a bgp prefix but when I use the 
config below, all the packets are matched by the
first route-map. Is it possible to use the ip as-path access list in this 
case ?

tia

interface GigabitEthernet0/3
  ip address 192.168.100.100 255.255.255.0
  no ip redirects
  no ip unreachables
  no ip proxy-arp
  ip accounting access-violations
  ip load-sharing per-packet
  ip route-cache policy
  ip route-cache flow
  no ip mroute-cache
  ip policy route-map test-out
  no negotiation auto
  no cdp enable
!
ip as-path access-list 1 permit ^17480$
!
access-list 150 permit ip 192.168.68.0 0.0.3.255 any
!
route-map test-out permit 10
  match as-path 1
  set ip next-hop 192.168.128.213
!
route-map test-out permit 20
  match ip address 150
  set ip next-hop 192.168.128.209
!
route-map test-out deny 30
!



More information about the cisco-nsp mailing list