19.07.2013 Views

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

- Below shows a sample Reflexive Access Lists configuration on RT1 as well as the output of the<br />

show access-list EXEC command on RT1:<br />

!<br />

ip access-list extended Telnet-In<br />

evaluate RACL-1<br />

deny ip any any<br />

ip access-list extended Telnet-Out<br />

permit tcp host 172.16.0.2 host 10.10.10.2 eq telnet reflect RACL-1<br />

deny ip any any<br />

!<br />

interface FastEthernet1/0<br />

ip address 10.10.10.1 255.255.255.0<br />

ip access-group Telnet-In in<br />

ip access-group Telnet-Out out<br />

!<br />

----------------------------------------------------------------------------<br />

RT1#sh access-list<br />

Reflexive IP access list RACL-1<br />

Extended IP access list Telnet-In<br />

10 evaluate RACL-1<br />

20 deny ip any any<br />

Extended IP access list Telnet-Out<br />

10 permit tcp host 172.16.0.2 host 10.10.10.2 eq telnet reflect RACL-1<br />

20 deny ip any any<br />

RT1#<br />

- Time-based access lists provide time-oriented access control. A certain time of day and week is<br />

specified and the period is often identified with a time range reference name. The time range<br />

name will be used as a reference in extended ACL configuration.<br />

- Below shows a sample Time-based Access Lists configuration that defines no Internet access<br />

during office hours – Monday to Friday, 9am to 6pm.<br />

Router#conf t<br />

Enter configuration commands, one per line. End with CNTL/Z.<br />

Router(config)#time-range no-http<br />

Router(config-time-range)#?<br />

Time range configuration commands:<br />

absolute absolute time and date<br />

default Set a command to its defaults<br />

exit Exit from time-range configuration mode<br />

no Negate a command or set its defaults<br />

periodic periodic time and date<br />

Router(config-time-range)#periodic ?<br />

Friday Friday<br />

Monday Monday<br />

Saturday Saturday<br />

Sunday Sunday<br />

Thursday Thursday<br />

Tuesday Tuesday<br />

Wednesday Wednesday<br />

daily Every day of the week<br />

weekdays Monday thru Friday<br />

weekend Saturday and Sunday<br />

Router(config-time-range)#periodic weekdays 09:00 to 18:00<br />

Router(config-time-range)#exit<br />

275<br />

Copyright © 2008 Yap Chin Hoong<br />

yapchinhoong@hotmail.com

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

Saved successfully!

Ooh no, something went wrong!