Удалить интерфейс связи, созданный из /etc/network/interfaces (ifupdown)?

попробуй

sudo apt-get install ubuntu-desktop

, который должен установить базовый метапакет -со всеми зависимостями, но, поскольку вы используете 12.04, если это не сработает, попробуйте:

sudo apt-get update && sudo apt-get dist-upgrade

1
05.12.2019, 16:08
1 ответ

Связывание интерфейсов управляется ifenslave(8)утилитой командной строки.

Ниже приведена выдержка из справочной страницы:

NAME
     ifenslave -- Attach and detach slave network devices to a bonding device.

SYNOPSIS
     ifenslave [-acdfhuvV] [--all-interfaces] [--change-active] [--detach] [--force] [--help] [--usage] [--verbose] [--version] master slave...

DESCRIPTION
     ifenslave is a tool to attach and detach slave network devices to a bonding device.  A bonding device will act like a normal Ethernet network device to the kernel,
     but will send out the packets via the slave devices using a simple round-robin scheduler.  This allows for simple load-balancing, identical to "channel bonding" or
     "trunking" techniques used in switches.

     The kernel must have support for bonding devices for ifenslave to be useful.

OPTIONS
     -a, --all-interfaces
             Show information about all interfaces.

     -c, --change-active
             Change active slave.

     -d, --detach
             Removes slave interfaces from the bonding device.

ОТКАЗ ОТ ОТВЕТСТВЕННОСТИ :Я не проверял следующее

Чтобы полностью удалить bond0, я бы:

  • ifconfig bond0 down
  • ifenslave -d bond0 eno1
  • ifenslave -d bond0 eno2
  • Склеивание rmmod`

Этого должно быть достаточно.

1
27.01.2020, 23:56

Теги

Похожие вопросы