cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
303
Views
3
Helpful
7
Replies

Simulate DoS Attack in CML

Joy3
Level 1
Level 1

Hallo,

Is there a way to simulate a DoS attack in CML? I am doing a lab on CoPP and an attack is required but I am unable to generate this. Thanks.

1 Accepted Solution

Accepted Solutions
7 Replies 7

Config CoPP rate 

And ping the device 10000 

This will test your CoPP ' it must drop this high rate of ping traffic 

MHM

Joy3_0-1715105588808.png

Hi @MHM Cisco World Thanks for the quick response but I don't quite understand what you mean. Above is the simple topology and the attcket should be from extern. Could you clarify more. 

From extern ping 10000 to R1

MHM

balaji.bandi
Hall of Fame
Hall of Fame

you can use like kali linux as attacker:

check kali Linux integration with CML

https://community.cisco.com/t5/cisco-modeling-labs-discussions/kali-server-on-cml2/td-p/4450129

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Joy3
Level 1
Level 1

@MHM Cisco World Thank you, I have used a router to send many icmp packets and a few are dropping , which is what I wanted to test. Thanks so much for always being helpful.

@balaji.bandi Thanks for the suggestion. It will require a bit of effort to get it done but I have found a workaround.

Joy3
Level 1
Level 1

@MHM Cisco World Just a curious question. I have explicitly denied icmp packets in the access-list on R2 and applied it in the control plane. However, when R1 pings R2, it only drops a few packets. Why is that so? Part of the config is below:

Joy3_0-1715169347275.png

-------on R2-----------

ip access-list extended ICMP
deny icmp any any

class-map match-all ICMPC
match access-group name ICMP

policy-map ICMPP
class ICMPC
police 8000 conform-action transmit exceed-action drop

control-plane
service-policy input ICMPP
_______________________________________________________________________

R1#ping 192.168.12.2 repeat 100
Type escape sequence to abort.
Sending 100, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:
!!!!!!!!!!!!!.!!!!!!!!!!!!!.!!!!!!!!!!!!!.!!!!!!!!!!!!!.!!!!!!!!!!!!!.
!!!!!!!!!!!!!.!!!!!!!!!!!!!.!!
Success rate is 93 percent (93/100), round-trip min/avg/max = 1/1/1 ms
R1#

 

Hi friend 

policy-map ICMPP
class ICMPC
police 4000 conform-action transmit exceed-action drop

Change the police to be 4000 and check ping loss you need to see now more ping loss 

MHM

Review Cisco Networking for a $25 gift card