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 22.214.171.124 netmask 255.255.255.248 broadcast 126.96.36.199 network 188.8.131.52 gateway 184.108.40.206
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;