How to emulate NO-CARRIER state for tap interface
There is an obscure fact about Linux: when Linux shut down an interface (ip link set down dev eno1
), it does not bring PHY down. Contrary, if you do conf t; int te 1/0/1; shutdown
on a real hardware switch, it does.