Header
Home | Set as homepage | Add to favorites
  Search the Site     » Advanced Search
Sections
Syndication


Blogroll:

||||| ALL Cisco-Network ARTICLES |||||  
CCIE Journey,
The CCIE Journey,


Named Access Lists

Mar 24,2010 by alperen

image

Since Cisco IOS Release 11.2, you can use a text name for access lists in many cases. Some new features have been added to named ACLs that make them more than just text names. The benefits of using named access lists are the following:

Some things to consider before you create a named access list for a particular purpose should include the following items:

Named access lists have a different format from numbered access lists. The initial line establishes the type and name of the list. The access-list statement is followed by one or more permit or deny statements. The syntax for a named standard access list is

Router(config)#ip access-list standard name
Router(config-std-nacl)# {permit | deny} {source [source-wildcard] | any} [log]

The following is an example of a named standard access list:

 Rtr1(config)#ip access-list standard sales_access
Rtr1(config-std-nacl)#permit 192.168.3.0 0.0.0.255
Rtr1(config-std-nacl)#permit 192.168.4.0 0.0.0.255
Rtr1(config-std-nacl)#permit 192.168.5.0 0.0.0.255
Rtr1(config-std-nacl)#permit host 192.168.6.50
Rtr1(config-std-nacl)#interface serial 0
Rtr1(config-if)#ip access-group sales_access out

Notice the prompt identifies the ACL as standard (std) and named access list (nacl). This means a new Configuration mode was created for named ACLs because numbered lists are all created at the Global Configuration mode.

The following is what the previous access list looks like in the running configuration. Notice the change in the order and the removal of the wildcards:

 !
ip access-list standard Sales_access
permit 192.168.6.50
permit 192.168.3.0
permit 192.168.4.0
permit 192.168.5.0
!

The syntax for a named extended access list is

Router(config)#ip access-list extended name
Router(config-ext-nacl)# {permit | deny} {protocol | protocol-keyword}{source wildcard |
any} [operator source-port] {destination wildcard | any} [operator destination-port]
[precedence precedence] [tos tos] [log | log-input] [options]

The following is an example of a named extended access list to limit TCP and Web access within the network:

The following is what the previous access list looks like if you show the running configuration. Note, the TCP port 80 was replaced with the mnemonic www:

 !
ip access-list extended server-screen
permit tcp any host 192.168.2.20 eq www
permit tcp host 192.168.1.151 host 192.168.2.20
!

4051 times read

Related news

» Using Named and Reflexive Access-Lists
by admin posted on Jul 21,2008
» access-list cisco Edit ACLs
by alperen posted on Jul 26,2009
» Using Access Lists to Protect SNMP Access
by admin posted on Jul 21,2008
» Advanced Access-List Editing
by admin posted on Jul 21,2008
» Using ACLs with Named Audit Rules
by alperen posted on Sep 15,2009
Did you enjoy this article?
Rating: 2.50Rating: 2.50Rating: 2.50 (total 2 votes)

comment Comments (1 posted) 
  • I must say I was very very surprised reading your article when you mentionned the fact that though you had entered a wild card mask it was not appearing later in the show run. may be this was on a router with an old IOS with classfull IP I don't know, but I have made the same test on GNS3 emulating a cisco 3640 under 12.4(21) follows a screen copy of what I did : R1#conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#ip access-list standard essai R1(config-std-nacl)#permit 192.168.3.0 0.0.0.255 R1(config-std-nacl)#permit 192.168.4.0 0.0.0.255 R1(config-std-nacl)#permit 192.168.5.0 0.0.0.255 R1(config-std-nacl)#permit host 192.169.6.50 R1(config-std-nacl)#? Standard Access List configuration commands: Sequence Number default Set a command to its defaults deny Specify packets to reject exit Exit from access-list configuration mode no Negate a command or set its defaults permit Specify packets to forward remark Access list entry comment R1(config-std-nacl)#exit R1(config)#^Z now here the extract of the sh run : ! ip access-list standard essai permit 192.169.6.50 permit 192.168.3.0 0.0.0.255 permit 192.168.4.0 0.0.0.255 permit 192.168.5.0 0.0.0.255 => as you can see the wildcards have not disappeared only the one with host as expected. I am afraid your article could confuse people
(Posted on July 8, 2011, 12:33 AM ethibault)


More Top News
CCSP-Cisco Certified Security Professional
Most Popular
Most Commented
Featured Author