Sami Haahtinen: Dynamic network configuration
I've been meaning to write up on this for quite some time now,
but always have something seemingly more important things to
do.
Most modern Linux distributions offer ways to manage network
interfaces via some kind of abstraction. Usually this abstraction
allows one to dynamically rename and add network interfaces. For
Debian family management is
done with ifupdown, while with
RedHat family it's
sysconfig. In addition there is NetworkManager
which is a cross platform solution for dynamic network
configuration (which eliminates the need to rename interfaces).
Case Xenserver
Usually this comes in rather handy, but on other occasions it
can be a pain. A while I was helping out with an installation of a
XenServer instance. This server had, for some reason, ethernet
interfaces reversed in comparison to the other
XenServers on the site. Luckily the service console has the
network configuration in ifcfg scripts. We were easily able to
reverse the interfaces by binding the interfaces to certain
hardware addresses.
The only problem is that the interface is renamed only when the
interface is brought up. What's worse the interfaces were
enumerated before the server would bring up all of the interfaces.
Only eth0 was brought up for management purposes before
enumerating. This means that the original eth0 was renamed to
_tmp_xxxxxx. The (oh so elegant) solution was to
create a script that does ifup eth1; ifdown eth1.
Problem solved.
Case tap0
I also experienced similar problems when I was setting up my
OpenVPN tunnel. I wanted to use a
bridged connection to my network, but for that I needed to create a
br0 interface with tap0 as a member.
It's easy enough to create ifupdown
configuration to set up tap0. Hook that up to
br0 and you are all set. The same problem will bite
you here. The interface tap0 is actually created only
when the tap0 is brought up and br0
members are added only if they are present.
The solution? In my case, create a custom script that adds the
device manually after it's been created properly. I was unable to
find anything that works without using a custom script =(
In retrospect
Looking back at these cases, I should have known better. The
problem was obvious and it took me way too long to figure out the
cause for my problems. Then again, the utilities should be able to
create a reasonable abstraction for themselves that they use to
determine the actual status of the whole system. This way the
trickery needed for setting up simple interface would be
obsolete.
You can't have it all, but you can always hope.

You can say
that DebConf8 is officially is over for you, when you're finally home, after
three weeks in Mar del Plata; go to a primary school friend's house to
celebrate his birthday, and end the day watching a movie alone.
It's also when you delete the reminder for the two weekly IRC meetings, when
you have to go back to classes, convince your boss not to kill you because of
all the work hours spent on organisation, make your pet cat recognise you
again, and be able to make a blog post about it.
What can I say about DC8? It's been madness, rush, fun, tiredness beyond
belief, intoxication, mao, meetings every day with the hotel, friends that you
get to see only once a year, musicians out of key, and pride. Pride of seeing
people enjoying themselves, things going more or less as were planned, and
being part of a group of people that worked hard to make this dream come
true: thanks to all of you!
One little
thing I brought from MDQ is a copy of 
I’ve been
Update: There are more notes on how aptitude performs as a Sudoku
solver
Some interesting two days have just passed. I took the airplane from

I tried
When you have a server on the Internet, you get lots of "brute force"
attacks on the SSH daemon, trying plausible logins with a variety of
passwords. Even with good passwords, these attacks might eventually
succeed (and they're annoying even when they don't), so you want to
thwart them.
One way is to use
... (at least concerning the Debian Project News):
Often when reading planet I notice something which might be interesting
for the next issue of the 


Following the
This has been 4 years since I released a new upstream release of