cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
488
Views
0
Helpful
2
Replies

ACL for PBR: Multiple Lines Calling Source & Dest Allowed?

Dean Romanelli
Level 4
Level 4

Hi All,

Can the ACL I use in a PBR statement have multiple lines, and can it call specific source AND destinations?  For example:

access-list 107 permit ip 192.168.107.0 0.0.0.255 192.168.0.0 0.0.255.255
access-list 107 permit ip 192.168.107.0 0.0.0.255 172.16.0.0 0.0.15.255
access-list 107 permit ip 192.168.107.0 0.0.0.255 10.0.0.0 0.0.0.255


access-list 197 permit ip 192.168.107.0 0.0.0.255 any

route-map INTERNET-NO-RFC1918 permit 10
match ip address 107
set ip next-hop address 192.168.107.1
route-map INTERNET-NO-RFC1918 permit 20
match ip address 197
set ip next-hop address 17.231.45.153
route-map INTERNET-NO-RFC1918 permit 30
int vl21
ip policy route-map INTERNET-NO-RFC1918

 

1 Accepted Solution

Accepted Solutions

Hi Dean,

Can the ACL I use in a PBR statement have multiple lines, and can it call specific source AND destinations?
Yes, it can.

In the OS I test, the lines "set ip next-hop address x.x.x.x" needs to be changed with "set ip next-hop x.x.x.x".

HTH,
Meheretab
HTH,
Meheretab

View solution in original post

2 Replies 2

Hi Dean,

Can the ACL I use in a PBR statement have multiple lines, and can it call specific source AND destinations?
Yes, it can.

In the OS I test, the lines "set ip next-hop address x.x.x.x" needs to be changed with "set ip next-hop x.x.x.x".

HTH,
Meheretab
HTH,
Meheretab

Thank you very much. 

Review Cisco Networking for a $25 gift card