Reply To: Twitt-arrrr!

Home › Forums › JoCo Cruise › Twitt-arrrr! › Reply To: Twitt-arrrr!

#83213
Numbski
Participant

Okay, so in short, here’s what I’m thinking (presuming you’re on linux and presuming we’re back on the Westerdam).  They gave you a static 10.x address, right?

So that means ifconfig eth0 (or 1, depending0 should have had 10.x.x.x assigned to it, with a netmask 255.255.255.0, with matching netmask and gateway.  The other devices on board were in that same netmask.  If you’re getting DHCP assigned addresses, and you fail to get a lease, you’ll get 169.254.x.x with a netmask of 255.255.0.0 and no gateway.

So I say you add a virtual interface to the box, call it eth0:0, and assign it whatever 169.254.x.x address contents you, with netmask 255.255.0.0.  Go ahead and leave eth0 as it was.

What then happens is you configure statusnet to answer on any available IP, be it localhost, 10.x or 169.254.x.  It was probably that way by default.

The end result is that we have 2 available Twitt-arr addresses.  If you got a lease, it’s 10.x.  If not, 169.254.x.x.

Could we advertise using Bonjour?  Absolutely.  Say we assign the box the name twitt-arrr.local.  We set up Avahi to advertise the correct IP on each separate interface.  That way no one has to remember what address to use:  twitt-arrr.local will always answer.