๐ Linux switch simulating a network outage
๐ก Newskategorie: Linux Tipps
๐ Quelle: reddit.com
Hey r/linux
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.
Any idea on how I can force packets going to the device on interface swp1 to drop?
[link] [comments] ...