28.06.2014 Views

Learning by Doing: CISCO Certified Network ... - SCN Research

Learning by Doing: CISCO Certified Network ... - SCN Research

Learning by Doing: CISCO Certified Network ... - SCN Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

gates(config)#access-list extended no_ping<br />

gates(config-ext-nac;)#deny icmp host 192.168.1.2 192.168.3.0 0.0.0.255<br />

gates(config-ext-nacl)#permit icmp any any<br />

gates(config-ext-nacl)#exit<br />

gates(config)#ip access-list extended no_telnet<br />

gates(config-ext-nacl)#deny tcp host 192.168.3.2 any eq 23<br />

gates(config-ext-nacl)#permit tcp any any<br />

4. Step 2: apply the ACL to an interface. Since this is an extended ACL it should be<br />

placed nearest the source as possible using “in.”<br />

gates(config)#int e0/0<br />

gates(config-if)#ip access-group no_ping in<br />

gates(config)#int e0/1<br />

gates(config-if)#ip access-group no_telnet in<br />

5. From 192.168.1.2 try to ping 192.168.3.3. It should not work and be unreachable:<br />

C:\WINDOWS\Desktop>ping 192.168.3.3<br />

Pinging 192.168.3.3 with 32 <strong>by</strong>tes of data:<br />

Reply from 192.168.1.1: Destination net unreachable.<br />

Reply from 192.168.1.1: Destination net unreachable.<br />

Reply from 192.168.1.1: Destination net unreachable.<br />

Reply from 192.168.1.1: Destination net unreachable.<br />

Ping statistics for 192.168.3.3:<br />

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),<br />

Approximate round trip times in milli-seconds:<br />

Minimum = 0ms, Maximum = 0ms, Average = 0ms<br />

C:\WINDOWS\Desktop><br />

6. Try to ping from 192.168.1.2 to 192.168.3.2 and 172.16.1.1…both will not work.<br />

Telnet to 172.16.1.1 should work on 192.168.3.3 but not on 192.168.3.2. You will<br />

see this type of message if telnet is not working:<br />

352

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

Saved successfully!

Ooh no, something went wrong!