How can I disable an interface under
/etc/network/interfaces running Cumulus Linux? I also want the interface stay down even after reboot.
- Cumulus Linux 2.2.x
- Cumulus Linux 2.5.x
The following example applies to an interface named
Shut down the interface:
cumulus@switch$ sudo ifdown --admin-state swp1
Disable the interface from starting at next boot by editing
/etc/network/interfacesand commenting out the line
cumulus@switch$ sudo nano /etc/network/interfaces
Change this line:
# auto swp1
Note: Commenting out the
autoline for a logical interface such as a bridge or bond means that the interface does not get created at boot time. If using implicit built-in interfaces, those interfaces also aren't created or started at boot time.