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, 2.5.x, 3.0.x - 3.2.0
The following example applies to an interface named
Shut down the interface:
[email protected]$ sudo ifdown --admin-state swp1
Disable the interface from starting at next boot by editing
/etc/network/interfacesand commenting out the line
[email protected]$ 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.
Note: For Cumulus Linux 3.2.1 and later, you can use NCLU to put an interface into an admin down state.