Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

access-list question

I want to configure router map that will forward all 172.23.0.0 traffic out to particular interface. Which acl will cover all of the 172.23.0.0 traffic?

access-list 122 permit tcp 172.23.0.0 0.0.255.255 10.0.0.0 eq any

access-list 122 permit ip 172.23.0.0 0.0.255.255 10.0.0.0

thanks for the help.

  • WAN Routing and Switching
1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Blue

Re: access-list question

No it won't because you also have UDP ports, ICMP traffic etc. that are not covered by TCP. So if you want all traffic use "permit ip"

Also i meant to ask last time, do you want to do PBR for

all traffic from 172.23.0.0 0.0.255.255 to 10.0.0.0

or

all traffic from 172.23.0.0 0.0.255 255 to any IP address. If this one you need to modify your access-list

access-list 122 permit ip 172.23.0.0 0.0.255.255 any

HTH

Jon

4 REPLIES
Hall of Fame Super Blue

Re: access-list question

Hi

If you want all traffic from 172.23.0.0/16 to 10.0.0.0 then your second line but you need a subnet mask for 10.0.0.0 ie.

access-list 122 permit ip 172.23.0.0 0.0.255.255 10.0.0.0

or do you just want all TCP ports ?

HTH

Jon

New Member

Re: access-list question

I want to the acl to cover all traffic from 172.23.0.0, so I am kind of confused what the difference is between using the ip and tcp in this case. If I choose the access-list 122 permit tcp 172.23.0.0 0.0.255.255 10.0.0.0 0.0.0.255 eq any won't that be the same as

access-list 122 permit ip 172.23.0.0 0.0.255.255 10.0.0.0 0.0.0.255

Hall of Fame Super Blue

Re: access-list question

No it won't because you also have UDP ports, ICMP traffic etc. that are not covered by TCP. So if you want all traffic use "permit ip"

Also i meant to ask last time, do you want to do PBR for

all traffic from 172.23.0.0 0.0.255.255 to 10.0.0.0

or

all traffic from 172.23.0.0 0.0.255 255 to any IP address. If this one you need to modify your access-list

access-list 122 permit ip 172.23.0.0 0.0.255.255 any

HTH

Jon

New Member

Re: access-list question

I just wanted to cover the 172.23.0.0 255.255.0 0 to 10.0.0.0 and not to any. Thanks for your help!!!!

109
Views
0
Helpful
4
Replies
This widget could not be displayed.