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 />

265<br />

Telnet Access List<br />

We can create access lists to restrict telnet access to our router. For this<br />

example, we’ll create an access list that prevents anyone from the evil<br />

172.18.x.x network from telneting into <strong>Router</strong> A, but allow all other<br />

networks telnet access.<br />

First, we create the access-list on <strong>Router</strong> A:<br />

<strong>Router</strong>(config)# access-list 50 deny 172.18.0.0 0.0.255.255<br />

<strong>Router</strong>(config)# access-list 50 permit any<br />

The first line blocks the 172.18.x.x network. The second line allows all other<br />

networks.<br />

To apply it to <strong>Router</strong> A’s telnet ports:<br />

<strong>Router</strong>(config)# line vty 0 4<br />

<strong>Router</strong>(config-line)# access-class 50 in<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!