09-14-2017 10:49 AM - edited 03-08-2019 12:02 PM
how i will deney/access specific ip range in my network?
for example
172.16.0.0/16 is using in my network but my requrement is i have to allow only 172.16.0.0 to 172.16.2.0/16 and other ip should not work in my network.
Then how i will configure in cisco L3 switch.
Solved! Go to Solution.
09-14-2017 04:03 PM
This ACL should work for you.
ip access-list extended Test permit ip 172.16.0.0 0.0.253.255 any( This will match 172.16.0.0/24 and 172.16.1.0/24) permit ip 172.16.2.0 0.0.0.255 any
09-15-2017 12:27 AM
Hello,
not sure if your original post is really what you want:
172.16.0.0/16
172.16.1.0/16
172.16.2.0/16
With the /16 mask, you cannot block 172.16.0.0, because that is the subnet ID. 172.16.1.0 and 172.16.2.0 would just be hosts in the subnet, to to allow just those two hosts, your access list would need to look like this:
access-list 1 permit host 172.16.1.0
access-list 1 permit host 172.16.2.0
09-14-2017 04:03 PM
This ACL should work for you.
ip access-list extended Test permit ip 172.16.0.0 0.0.253.255 any( This will match 172.16.0.0/24 and 172.16.1.0/24) permit ip 172.16.2.0 0.0.0.255 any
09-15-2017 12:27 AM
Hello,
not sure if your original post is really what you want:
172.16.0.0/16
172.16.1.0/16
172.16.2.0/16
With the /16 mask, you cannot block 172.16.0.0, because that is the subnet ID. 172.16.1.0 and 172.16.2.0 would just be hosts in the subnet, to to allow just those two hosts, your access list would need to look like this:
access-list 1 permit host 172.16.1.0
access-list 1 permit host 172.16.2.0
09-15-2017 09:31 PM
01-10-2018 09:55 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide