[Bug 1753431] Re: bonding does not works
Laurent Spagnol
1753431 at bugs.launchpad.net
Wed Apr 18 11:19:17 UTC 2018
Physical interfaces are only used by bonding interfaces.
- bond0 have an ip address
- bond1 is user by bridges and vlans
I've solved my problem:
- by adding LACP parameters at module loading:
/etc/modprobe.d/netcf.conf
alias bond0 bonding
alias bond1 bonding
options bonding mode=4 lacp_rate=1 xmit_hash_policy=2 miimon=100 downdelay=200 updelay=200
- and nothing about bonding mode in ENI and netcfg.yaml !
My servers are "KVM/Libvirt" hosts.
* Bond0 is my "service" interface to the host
/etc/netplan/01-netcfg.yaml (yaml)
# Exemple de configuration des interfaces réseau pour l'hyperviseur
# => '/etc/netplan/01-netcfg.yaml'
#
# => 2 ports / LACP
# => La configuration des interfaces de virtualisation DOIT être effectuée
# via '/etc/network/interfaces'
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: false
dhcp6: false
eno2:
dhcp4: false
dhcp6: false
bonds:
bond0:
interfaces:
- eno1
- eno2
addresses: [10.5.1.174/24]
gateway4: 10.5.1.254
nameservers:
addresses: [193.50.208.4]
search: [univ-reims.fr]
* Bond1 is used by VMs.
Note that Virt-manager NEEDs access to /etc/network/interfaces to work properly !!
I put "bond1" configuration in a included file (/etc/network/interfaces.d/bond1) of ENI because i don't want to allow any change on it by Virt-manager. So Virt-manager has only access to vlan/bridges interfaces.
/etc/network/interfaces
# Exemple de configuration des interfaces réseau pour Libvirt
# => '/etc/network/interfaces'
# => Libvirt peut accéder à ces interfaces
# => Définition des VLANs utilisés par Libvirt
source /etc/network/interfaces.d/bond1
auto vlan51
iface vlan51 inet manual
bridge_ports bond1.51
bridge_stp off
bridge_fd 0
auto vlan95
iface vlan95 inet manual
bridge_ports bond1.95
bridge_stp off
bridge_fd 0
auto vlan30
iface vlan30 inet manual
bridge_ports bond1.30
bridge_stp off
bridge_fd 0
/etc/network/interfaces.d/bond1
# Exemple de configuration des interfaces réseau pour Libvirt
# => '/etc/network/interfaces.d/bond1'
# => Libvirt ne peut pas accéder à ces interfaces
# => 2 interfaces physiques/LACP
auto eno3
iface eno3 inet manual
bond-master bond1
auto eno4
iface eno4 inet manual
bond-master bond1
auto bond1
iface bond1 inet manual
bond-slaves eno3 eno4
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1753431
Title:
bonding does not works
Status in systemd package in Ubuntu:
Incomplete
Bug description:
I'm working on libvirt/kvm hypervisor
I user 2 bondind interfaces:
eno1 + eno2 => bond0 via "netplan" ("service" interface for hypervisor)
eno3 + eno4 => bond1 via "ifupdown" ("virtualization" interface for libvirt)
Since last upgrade (today), i got "Warning, no 802.3ad response from
the link partner ..." with dmesg, bonding doesn't longer works with
"netplan" and "ifupdown".
Kernel problem ? ifenslave problem ?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1753431/+subscriptions
More information about the foundations-bugs
mailing list