12-03-2019 04:44 AM
Hi Guys,
I need to match the source traffic from 10.100.100.* to a destination other than 10.0.0.0/8.
Which wildcard mask do I need to apply that will only check other than 10.*.*.*.* (the first octet has to be 10)
ip access-list extended ACL permit ip 10.100.100.0 0.0.0.255 10.0.0.0 x.x.x.x.
Please help ??
12-03-2019 05:13 AM - edited 12-03-2019 06:01 AM
Hello
ip access-list extended ACL permit/deny
ip access-list extended ACL permit ip 10.100.100.0 0.0.0.255 10.0.0.0 0.255.255.255 10.0.0.0/8
ip access-list extended ACL permit ip 10.100.100.0 0.0.0.255 10.0.0.0 0.0.255.255 10.0.0.0/16
ip access-list extended ACL permit ip 10.100.100.0 0.0.0.255 10.0.0.0 0.0.0.255 - 10.0.0.0/24
ip access-list extended ACL permit ip 10.100.100.0 0.0.0.255 10.0.0.0 0.0.1.255 - 10.0.0.0/23 255-254 =1
ip access-list extended ACL permit ip 10.100.100.0 0.0.0.255 10.0.0.0 0.0.3.255 - 10.0.0.0/22 255-252 =3
ip access-list extended ACL permit ip 10.100.100.0 0.0.0.255 10.0.0.0 0.0.7.255- 10.0.0.0/21 255-248 =7
ip access-list extended ACL permit ip 10.100.100.0 0.0.0.255 10.0.0.0 0.0.15.255- 10.0.0.0/20 255-240 =15
ip access-list extended ACL permit ip 10.100.100.0 0.0.0.255 10.0.0.0 0.0.31.255- 10.0.0.0/19 255-224 =31
ip access-list extended ACL permit ip 10.100.100.0 0.0.0.255 10.0.0.0 0.0.63.255- 10.0.0.0/18 255-192 =63
ip access-list extended ACL permit ip 10.100.100.0 0.0.0.255 10.0.0.0 0.0.127.255- 10.0.0.0/17 255-128 =127
etc..
12-03-2019 05:20 AM
Hi there,
If you are using the ACL for pattern matching, then why not use a deny to not match (negate) traffic destined to 10.0.0.0/8 then match everything else:
ip access-list extended ACL deny ip 10.100.100.0 0.0.0.255 10.0.0.0 0.255.255.255 ip access-list extended ACL permit ip 10.100.100.0 0.0.0.255 any
cheers,
Seb.
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