16.06.2014 Views

Cisco CCNA Study Guide - Router Alley

Cisco CCNA Study Guide - Router Alley

Cisco CCNA Study Guide - Router Alley

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>CCNA</strong> <strong>Study</strong> <strong>Guide</strong> v2.62 – Aaron Balchunas<br />

266<br />

Named Access Lists<br />

Named access lists provide us with two advantages over numbered access<br />

lists. First, we can apply an identifiable name to an access list, for<br />

documentation purposes. Second, we can remove individual lines in a named<br />

access-list, which is not possible with numbered access lists.<br />

Please note, though we can remove individual lines in a named access list,<br />

we cannot insert individual lines into that named access list. New entries are<br />

always placed at the bottom of a named access list.<br />

To create a standard named access list, the syntax would be as follows:<br />

<strong>Router</strong>(config)# ip access-list standard NAME<br />

<strong>Router</strong>(config-std-nacl)# deny 172.18.0.0 0.0.255.255<br />

<strong>Router</strong>(config-std-nacl)# permit any<br />

To create an extended named access list, the syntax would be as follows:<br />

<strong>Router</strong>(config)# ip access-list extended NAME<br />

<strong>Router</strong>(config-ext-nacl)# permit tcp 172.18.0.0 0.0.255.255 host 172.16.10.10 eq 80<br />

<strong>Router</strong>(config-ext-nacl)# deny ip 172.18.0.0 0.0.255.255 172.16.0.0 0.0.255.255<br />

<strong>Router</strong>(config-ext-nacl)# permit ip any any<br />

Notice that the actual configuration of the named access-list is performed in<br />

a separate router “mode”:<br />

<strong>Router</strong>(config-std-nacl)#<br />

<strong>Router</strong>(config-ext-nacl)#<br />

* * *<br />

All original material copyright © 2013 by Aaron Balchunas (aaron@routeralley.com),<br />

unless otherwise noted. All other material copyright © of their respective owners.<br />

This material may be copied and used freely, but may not be altered or sold without the expressed written<br />

consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!