Delete a bond interface created from /etc/network/interfaces (ifupdown)?
5
votes
2
answers
56515
views
I made an attempt bonding two interfaces into one, created
bond0
, and found it unsatisfactory. I then reverted all changes made to /etc/network/interfaces
and ran systemctl restart networking.service
, but the bond interface still existed (shows up in ifconfig
and ip link
commands) and I had to run ip link set bond0 down
or ifconfig bond0 down
to force kick it out. How do I completely remove this interface without rebooting the server?
I'm on Debian Buster. The file was originally like this:
auto eno1
iface eno1 inet static
# regular network settings like address, netmask, gateway etc.
auto eno2
iface eno2 inet static
# regular network settings like address, netmask, gateway etc.
I turned both interfaces into one bond by changing it into this:
auto eno1
iface eno1 inet manual
bond-master bond0
auto eno2
iface eno2 inet manual
bond-master bond0
auto bond0
iface bond0 inet static
# regular network settings like address, netmask, gateway etc.
Asked by iBug
(3638 rep)
Dec 5, 2019, 02:08 PM
Last activity: Jan 17, 2025, 02:10 PM
Last activity: Jan 17, 2025, 02:10 PM