Can I use a match in a single route-map like this?
route-map prefmyroute permit 5
match as-path 7
match ip address 2
set local-preference 200
ip as-path access-list 7 permit ^200$
access-list 2 permit 10.10.10.0 0.0.0.255
I want to match ip address 10.10.10.0 comming from as 200 and stamp it with local preference of 200. Is this the command to do it?