I'm running kubuntu 9.10 and every time I log in auto eth0 is used instead of my custom connection called "batnet". I have batnet set to automatically connect, but despite this it is ignored and the default auto eth0 is used instead. This would be fine IF I could somehow figure out how to define a static ip for auto eth0. I would prefer to just make the 'batnet' connection default. How can I do this?
For static assignment on Debian-based systems, you need to edit
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 188.8.131.52 netmask 255.255.255.248 broadcast 184.108.40.206 network 220.127.116.11 gateway 18.104.22.168
to change it back to DHCP:
auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp
You could put a script in /etc/init.d/ to run on startup that would turn off eth0;