Hello,
How do I disable all unused interfaces with one command?
I searched the forum but found nothing.
Thanks for your reply
:foreach i in=[/interface find where running=no] do={/interface ethernet set $i disabled=yes}
# all interfaces (also bridges, pppoes, pptps, eoips, etc.)
/interface disable [find where !running]
# only ethernet / sfp
/interface disable [find where type=ether and !running]
# only wireless
/interface disable [find where type=wlan and !running]
# ethernet/sfp and wireless
/interface disable [find where type~"^(ether|wlan)\$" and !running]