Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

access-list with first zeto octet. Is it correct?

Unanswered Question
Jun 20th, 2012
User Badges:

I have seen config like:

access-list 1 permit

Can you please let me know if such config is correct and if yes, explain more


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (1 ratings)
Peter Paluch Wed, 06/20/2012 - 03:24
User Badges:
  • Cisco Employee,


This ACL is somewhat bizzare but it is not incorrect per se. It matches all packets whose source IP address has the form


where "x" is an arbitrary number (it is totally irrelevant what the value of "x" is).

I do not know what was the intention of the creator of this ACL. Therefore, it is difficult to answer the question if the ACL is correct. Syntactically - sure it is. Semantically - I do not know, that depends on what shall be accomplished with it.

Best regards,


handoko wiyanto Wed, 06/20/2012 - 04:16
User Badges:

hi webstd.design,


by reading the way it wrote wildcard mask (

that command is wrong.

if we referring to the standard access list for example this is a very old cisco IOS version, (http://www.cisco.com/en/US/docs/ios/11_3/feature/guide/stdlog.html)

the part that we write wilcard mask is by putting 1 to the host bit portion


(Optional) Wildcard bits to be applied to the source. There are two alternative ways to specify the source wildcard:

Use a 32-bit quantity in four-part, dotted-decimal format. Place ones in the bit positions you want to ignore.

Use the keyword any as an abbreviation for a source and source-wildcard of


webstd.design Wed, 06/20/2012 - 04:21
User Badges:

Looks like it's a question from BGP exam, so should be correct

handoko wiyanto Wed, 06/20/2012 - 04:56
User Badges:


would you mind sharing the complete question with the config that you wrote before?


webstd.design Wed, 06/20/2012 - 05:40
User Badges:

Can you provide something like this as an example? It could be interesting questions for interview

Nandan Mathure Wed, 06/20/2012 - 05:53
User Badges:
  • Bronze, 100 points or more


access-list 1 permit

such access lists are used for matching the networks. Here in the example any network with second octet of 21 will be matched.

More examles...

access-list 10 permit  [matches a host route of]

access-list 10 permit [ matches any network which has 2nd and 3rd octet of 16]

access-list 10 permit [ matched networks to]

i would suggest convert wildcard to binary and match the corresponding bits with must match or match any. i.e 0 is must match and 1 is any (in case of wildcards)

let me know if this helps,

Nandan Mathure


This Discussion