Wednesday, April 7, 2021

Simulate a network outage

Hey r/networking

I have a switch running Linux with multiple devices connected to it.

I'm attempting to simulate a network outage on one of the ports. Say the port is swp1.

I've tried with both tc and iptables

tc qdisc add dev swp1 root netem loss 100%

and

iptables -A INPUT -i swp1 -p all -j DROP

However, packets coming from and going to the device aren't dropped.



No comments:

Post a Comment