On 10/21/21 3:59 PM, James Prestwood wrote:
So the test itself is pretty simple. The part I'm unsure about is how
you actually set the carrier state from userspace. I see "ip link set
<dev> carrier {on,off}" but this reports not supported for veths,
wlans, and eth interfaces I have tried. AFAIK the driver controls the
carrier state. Maybe some drivers do support this?
Is there a way to set the carrier state that you, or anyone is aware
of?
with veth pairs, if you set one down the other goes into no-carrier mode
make veth0 the one you are validating and put veth1 in a namespace
called testing. Then 'ip -netns testing li set veth1 down' put veth0 in
NO_CARRIER