I'm working on doing some line bonding by using a combination of tun adapters (via OpenVPN) and ifenslave with balance-rr mode. I'm trying to set this up in an openvz VPS and are failing so I'm wondering if this is even possible on openvz or if my guest is simply missing the bonding module (and I need to open a support ticket for that).
Tun interfaces are defined:
root@vps222:~# ifconfig tun0 tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255 POINTOPOINT NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@vps222:~# ifconfig tun1 tun1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.9.0.1 P-t-P:10.9.0.2 Mask:255.255.255.255 POINTOPOINT NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
So is the bond:
root@vps222:~# cat /etc/network/interfaces.head iface bond0 inet static address 172.0.0.1 netmask 255.255.255.252 bond-slaves tun0 tun1 bond_mode balance-rr
It shows up in /etc/network/interfaces after a reboot:
root@vps222:~# grep -A4 bond0 /etc/network/interfaces iface bond0 inet static address 172.26.0.1 netmask 255.255.255.252 bond-slaves tun0 tun1 bond_mode balance-rr
But doesn't show up in the interfaces, nor can it be brought up:
root@vps222:~# ifconfig bond0 bond0: error fetching interface information: Device not found root@vps222:~# ifup bond0 /etc/network/if-pre-up.d/ifenslave: line 19: /sys/class/net/bonding_masters: No such file or directory /etc/network/if-pre-up.d/ifenslave: line 29: /sys/class/net/bond0/bonding/mode: No such file or directory Failed to enslave tun0 to bond0. Is bond0 ready and a bonding interface ? Failed to enslave tun1 to bond0. Is bond0 ready and a bonding interface ? SIOCSIFADDR: No such device bond0: ERROR while getting interface flags: No such device SIOCSIFNETMASK: No such device bond0: ERROR while getting interface flags: No such device Failed to bring up bond0.
Any guidance is appreciated.
http://ift.tt/1dvHQ0Z
0 comments:
Post a Comment