Skip to content

Instantly share code, notes, and snippets.

@eqhmcow
Created May 25, 2012 23:51
Show Gist options
  • Save eqhmcow/2791278 to your computer and use it in GitHub Desktop.
Save eqhmcow/2791278 to your computer and use it in GitHub Desktop.
ubuntu network interfaces file - needed to rmmod bonding before it would reliably work over reboots
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto bond0
iface bond0 inet manual
# bizarre, but this works...
# without this, bonding doesn't reliably start up when the system is rebooted
pre-up /sbin/rmmod bonding; sleep 10; /sbin/ifconfig bond0 up; sleep 10; /sbin/ifconfig bond0 up; sleep 10
up /sbin/ifenslave bond0 eth0 eth1
auto vlan2
iface vlan2 inet static
address 10.0.30.36
netmask 255.248.0.0
gateway 10.0.30.1
vlan_raw_device bond0
pre-up /sbin/modprobe 8021q; sleep 10
# <snip>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment