- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2012 06:53 AM - edited 03-07-2019 07:49 AM
I'm taking a CCNA class and a classmate asked me why we have to begin the statements with the same command for the same access list? Would not be better to have a configuration mode for the access list you just created? For instance, when you want to configure F0/0, you type #conf t, and then (config)# int f0/0 and every command you enter next it will go under that interface. What he is saying is to type, for example, # conf t, (config)# access list 100, (config-acc)# and from there, permit or deny.....and everything falls under access list 100. If you want to switch to other access list, just type # access list and the number. My answer was, they must have a special reason rather than just letting you specify what statement goes for what access list, but that doesn't quite satisfies what now we want to know. Could anybody give us a good explanation or better answer? Thank you for you time!
Solved! Go to Solution.
- Labels:
-
Other Switching
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2012 06:59 AM
Hello Carlos,
this is already implemented when you use named ACLs they work in the way you and your colleague are discussing with a specific configuration context
the numbered ACLs have not their specific context so the access-list number is required at the beginning of each statement
see
Hope to help
Giuseppe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2012 06:59 AM
Hello Carlos,
this is already implemented when you use named ACLs they work in the way you and your colleague are discussing with a specific configuration context
the numbered ACLs have not their specific context so the access-list number is required at the beginning of each statement
see
Hope to help
Giuseppe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2012 07:32 AM
Thank you, I can see further in the book when they explain the named acls, is exactly what we were talking about. Thank you again for your fast reply.
