Suggestion from the VyOS-subreddit.
Disabling USB autosuspend can be done by adding this line to /config/scripts/vyos-preconfig-bootup.script (because it doesnt seem to be possible to use sysctl for that):
# Disable USB autosuspend echo -1 > /sys/module/usbcore/parameters/autosuspend
or through udev as described in:
https://wiki.archlinux.org/title/Power_management#USB_autosuspend
The above (disable USB autosuspend) could either be done "static" (as a default by VyOS) or as an option through config something like (where the default could be "disable"):
set system option usb-autosuspend disable
Ref: https://old.reddit.com/r/vyos/comments/196vywv/how_do_i_disable_usb_autosuspend/
I have vyos router setup on my lab network and I am using a usb ethernet (realtek r8152) and it keeps disconnecting and coming back without being able to bring back up the interface. Is there a way to edit /etc/default/grub (I want to add usbcore.autosuspend=-1, but I can't update grub) and have it persist or any way to automatically bring up interface after it disconnects? I am very new to VyOs and used opnsense in the past (bsd hates realtek and hates usb ethernet even more) but found better performance with VyOs. Thanks for any help