Forum archive
network bond in lxc not working
Hello,
I'm new to Turnkey and giving LXC host a try.
I'm trying to set up networking in the same manner it's set up on another Debian Wheezy host with LXC.
So I've replaced the default /etc/network/interfaces with the following:
auto lo
iface lo inet loopback
auto bond0
iface bond0 inet manual
bond_slaves eth0 eth1
bond_mode 802.3ad
bond_xmit_hash_policy layer3+4
bond_miimon 100
bond_updelay 3000
bond_downdelay 200
# Workaround for Debian bug #697357
pre-up ip link set eth0 promisc on
pre-up ip link set eth1 promisc on
post-down ip link set eth0 promisc off
post-down ip link set eth1 promisc off
# Bridge interfaces for containers
auto br0_lxctest
iface br0_lxctest inet static
bridge_ports bond0
bridge_fd 0
bridge_waitport 0
bridge_maxwait 0
bridge_stp off
address 192.168.8.111
netmask 255.255.252.0
gateway 192.168.8.1
Bond on the switch is set up using LAG/LACP.
Member links report as up but the LAG bond as down.
Interface br0_lxctest comes up as UP and RUNNING and with the right IP but I'm unable to ping the gateway with "Destination Host Unreachable".
I can't see much in logs, only:
Sep 26 09:42:34 lxc networking[1533]: Configuring network interfaces...
Sep 26 09:42:34 lxc networking[1533]: Waiting for a max of 0 seconds for bond0 to become available.
Sep 26 09:42:35 lxc networking[1533]: interface bond0 does not exist!
I'm also attaching a screenshot of the configuration console error apearing after a reboot.
What's wrong with my config?
Is the installation simply missing ifenslave package?
Thanks,
Adam
Some progress made after installing ifenslave_2.6_all.deb from a USB stick and assigning static address to bond0.
I'm now able to ping both bond0 and br0_lxctest but not the gateway.
Getting the following /var/log/messages:
Sep 26 15:17:32 lxc kernel: [ 11.143092] device eth0 entered promiscuous mode
Sep 26 15:17:32 lxc kernel: [ 11.144479] device eth1 entered promiscuous mode
Sep 26 15:17:32 lxc kernel: [ 11.169931] bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Sep 26 15:17:32 lxc kernel: [ 11.173229] bonding: bond0: Setting MII monitoring interval to 100
Sep 26 15:17:32 lxc kernel: [ 11.173270] bonding: bond0: Setting down delay to 200
Sep 26 15:17:32 lxc kernel: [ 11.173301] bonding: bond0: Setting up delay to 200
Sep 26 15:17:32 lxc kernel: [ 11.192219] bonding: bond0: Adding slave eth0
Sep 26 15:17:32 lxc kernel: [ 11.192299] bnx2 0000:0b:00.0: Direct firmware load failed with error -2
Sep 26 15:17:32 lxc kernel: [ 11.192301] bnx2 0000:0b:00.0: Falling back to user helper
Sep 26 15:17:32 lxc kernel: [ 11.195398] bonding: bond0: Adding slave eth1
Sep 26 15:17:32 lxc kernel: [ 11.195464] bnx2 0000:0b:00.1: Direct firmware load failed with error -2
Sep 26 15:17:32 lxc kernel: [ 11.195466] bnx2 0000:0b:00.1: Falling back to user helper
Sep 26 15:17:32 lxc kernel: [ 11.199552] IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready
Sep 26 15:17:32 lxc kernel: [ 11.380018] Bridge firewalling registered
Sep 26 15:17:32 lxc kernel: [ 11.454390] device bond0 entered promiscuous mode
Sep 26 15:17:32 lxc kernel: [ 11.458050] IPv6: ADDRCONF(NETDEV_UP): br0_lxctest: link is not ready
Sep 26 15:17:33 lxc rsyslogd-2007: action 'action 17' suspended, next retry is Wed Sep 26 15:18:03 2018 [try http://www.rsyslog.com/e/2007 ]
Sep 26 15:25:35 lxc kernel: [ 497.370086] usb 2-6: new high-speed USB device number 4 using ehci-pci
Do I have a problem with the NIC driver?