Hi,
what mask are they? assuming they are hosts
access-list <acl-no> permit host <ip1>
access-list <acl-no> permit host <ip2>
inter f0/1
access-group <acl-no> in
where acl-no is between 1 and 99.
If not, then use the combo <ip> <mask>
Remember, by default the access-list will deny everything except what is on the list.
I want to permit only those in the 10.2.0.0/16 and those in 10.3.0.0/16, denying all others. I now see I can permit hosts, but what about entire subnets?
Hi,
source-dest can only be done via extended ACL's (unless there's been a change in the way IOS handles them that I do not know). Standard ACL's only filter based on source address, so a line of yours acl would look something like
access-list 1 permit 10.2.0.0 0.0.255.255
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.