Правим файл /etc/network/interfaces
1) сперва сохраним оригинальній так
- sudo cp /etc/network/interfaces /etc/network/interfaces.original
2) заменяем содержимое файла /etc/network/interfaces тем, что здесь http://ibuntu.narod2.ru/files/interfaces.bond-vlan-br.txt
- sudo nano /etc/network/interfaces
3) вручну перезапускаем сеть и проверяем что она работает
- sudo /etc/init.d/networking restart
4) если все работает, перегружаемся, если нет, разбираемся или восстанавливаем оригинал
Рекомендую почитать:
- http://www.itassist.net.ua/e-book/aghrieghirovaniie-bonding-portov-na-ubuntu-linux-1004
- http://www.howtoforge.com/network_bonding_ubuntu_6.10
- http://www.debianadmin.com/linux-ethernet-bonding-configuration.html
- http://www.linuxhorizon.ro/bonding.html
- работает !!!! >> http://floatingatoll.posterous.com/ganeti-and-ubuntu-1004-lucid-configuring-brid
See also:
- # [1] https://help.ubuntu.com/community/UbuntuBonding
- # [2] http://www.linux-foundation.org/en/Net:Bonding
- # [3] http://www.linux-foundation.org/en/Net:Bridge
- # [4] vlan-interfaces(5)
- # [5] https://bugs.launchpad.net/ubuntu/+bug/559090
- # [6] https://bugs.launchpad.net/ubuntu/+bug/482419
Замечания по файлу:
- # - "inet manual", "post-up"/"pre-down" are required for interfaces with no IP.
- # - Bridge interface names MUST NOT contain ".", use "-" instead.
- # - Don't assign an IP to a bonded interface if it's bound to a bridged interface.
- # - If you don't have an untagged VLAN, remove "br0" below.
- # - You'll probably want at least one interface configured for dhcp or a static IP.
- # - "bond-slaves none" is mandatory.
- # - There are uncorrected errors in /usr/share/doc/ifenslave2.6/README.Debian.
- # - You can specify bonding modes by name instead of by number. [2]
Требуемые пакеты
- # - ifenslave2.6
- # - vlan
- # - bridge-utils