Modprobe, kernel 2.4 and 2.6

Random note: getting the bonding module to work, edit /etc/modprobe.d/bonding (a new file) and add:

alias bond0 bonding
options bond0 miimon=100 mode=active-backup

If you are using a 2.6 kernel, then the bonding module will be loaded with the correct options when you try to bring up the interface. Referencing the interface by name triggers the loading of the module, and the reading of this config file. However, and I talk to myself here since I forgot today, this doesnt work with the old 2.4 kernel modutils package. Only the new module-init-tools package when using a 2.6 kernel!

To complete the rant here, populate your /etc/network/interfaces file with something like the following, adjusting the address as required of course:

auto iface bond0

iface bond0 inet static

pre-up ifconfig bond0 up

pre-up ifconfig eth0 up

pre-up ifconfig eth1 up

pre-up ifenslave bond0 eth0 eth1

address 10.0.0.5

netmask 255.255.0.0

broadcast 10.10.255.255

gateway 10.0.0.1

down ifconfig eth0 down

down ifconfig eth1 down

Now, if you don’t know which intrefaces you want to bond together into a bond (what Windows calls a ‘team’, or ‘teaming’), then you can take a look at Nick Ferrier‘s solution involving doing a quick DHCP request on each interface and working out which interfaces are on common networks; a very clever piece.

So, if you’re still reading this about bonding, you should probably be monitoring your bonded connections. Otherwise, one link will fail, and you’ll never notice! Check out my SVN repository for the Nagios plugin to check the /proc/net/bonding/* file(s).

code

SIP Telephony, good and bad

I’ve had a SIP handset now for about two weeks: a Budgetone 102 handset. Its not too bad, from what I can tell, but I am using a provider in Perth, SimTex, whichis around 400ms away RTT, and I am getting some bad audio on one side of the call.

Its so frustrating, that we constantly have to abandon the SIP phone and use the PSTN, at more expense. I’m connecting through Demon internet in London on a 512 DSL link., which should be plenty fast enough. The annoying thing is that my emails and now phone calls to SimTex have gone unanswered. Not a way to keep customers. TIme to start looking for other providers, or, put my own box in…. Asterisk rocks, and the PSTN cards arent that expensive… if I put a 1U box with an ISDN 30 card in each city…. I’d be a SIP-telco.

I found Cisco had a nice lit of SIP response codes.

Random stuff I may get on EBay

Ever since I was stung on eBay a few years back for around AUD$ 500 worth of wireless equipment from some bastard in Deer Park, USA, I’ve not used eBay. But now I’m thinking of getting a few things:

  • 75 – 300 mm Canon EF zoom lens, for my 300D digital SLR camera
  • Wireless print server for my canon printer
  • Ethernet web cam/video conference facility