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