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

Create successful ePaper yourself

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

goodguys#show access-list<br />

Extended ip access list 100<br />

permit icmp any any echo (610 matches)<br />

permit icmp any any echo-reply<br />

permit udp any any eq echo<br />

permit udp any any eq echo any<br />

permit tcp any any established<br />

permit tcp any any<br />

permit ip any any (88 matches)<br />

We have a good clue that an icmp flood (DoS) is occurring because of the large<br />

number of matches. Next we need to log our inputs and view the source ip<br />

addresses.<br />

7. To start logging we just tack it on the end of the line with our matches. We don’t<br />

do it right away because it chews up valuable router resources. We save it for<br />

when we need it. First we copy and paste our acl to a notepad. Then we erase<br />

access-list 100 from our router:<br />

goodguys(config)#no access-list 100<br />

Then we make the changes to our acl in the notepad and then copy and paste it<br />

back into our router. Since we are interested only in the icmp section that will be<br />

all that is put back. In this manner we are conserving our resources. Since the<br />

icmp is throwing up a “red flag” with us we opt to log it and enable logging to run<br />

as the events happen:<br />

goodguys(config)#access-list 100 permit icmp any any echo log-input<br />

goodguys(config)#access-list 100 permit icmp any any echo-reply<br />

goodguys(config)#logging buffered<br />

The last line will let us see any notices as they occur…we will also see them in<br />

the log.<br />

8. Next start ethereal on 192.168.1.2 and then start the pings again from 172.16.1.2.<br />

9. Now we can repeat our ping storm, stop it, stop our ethereal and view our log:<br />

goodguys(config)#sh log<br />

You should see something like this:<br />

goodguys#sh log<br />

Syslog logging: enabled (0 messages dropped, 0 flushes, 0 overruns)<br />

Console logging: level debugging, 49 messages logged<br />

Monitor logging: level debugging, 0 messages logged<br />

Buffer logging: level debugging, 19 messages logged<br />

Trap logging: level informational, 53 message lines logged<br />

356

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

Saved successfully!

Ooh no, something went wrong!