From Internetworkpro
| This page is currently in progress and is not completed
|
| This page or section provides device configuration instructions
Please note that the information on this page has not been checked for accuracy and is not intended as a replacement to documentation. Please ensure you understand your desired objectives before attempting to apply any examples listed. See more examples at Category:Configuration
|
access-list 101 deny ip 192.168.0.0 0.0.0.255 192.168.1.0 0.0.0.255
access-list 101 deny ip 192.168.0.0 0.0.0.255 192.168.2.0 0.0.0.255
access-list 101 deny ip 192.168.0.0 0.0.0.255 192.168.3.0 0.0.0.255
...
access-list 101 deny ip 192.168.0.50 0.0.0.0 any
access-list 101 permit ip 192.168.0.0 0.0.0.255 any
!
CAT3550(config)# sdm prefer extended-match
!
! now save and reload the router before continuing
!
CAT3550(config)# route-map pbr permit 10
CAT3550(config-route-map)# match ip address 101
CAT3550(config-route-map)# set ip next-hop 192.168.0.50
!
! now apply the route map to the 192.168.0.0/24 interface
!
CAT3550(config)# int vlan 5
CAT3550(config-if)# ip policy route-map pbr
!
! and you're done
Back to Sample Configs