On 01 Jul 10:02, James Bensley wrote:
I expect this is totally obvious and I'm being a complete buffoon but I can't work it out.
Every time I disconnect my Ethernet cable on my laptop I loose my IP address (dropping to none configured) [Ubuntu 10.10].
Tell network manager to stop managing the interface, rejoice in it now keeping it's settings as it should. Job done.
To do that, just add a simple entry in to your /etc/network/interfaces file that says: iface eth0 inet manual
and make sure that in /etc/NetworkManager/NetworkManager.conf there is a but that says:
[ifupdown] managed=false
I am constantly unplugging my cable and plugging it in different switch ports configuring switches all day, and I have to keep a terminal window open in the background so I can quickly switch to it, hit "up" and "enter" to re-run "sudo ifconfig eth0 1.2.3.4". I takes 5 seconds but man its annoying.
This sounds like a silly way of configuring switches, they should be configured with management interface on a vlan, and then you route that vlan between the switchs and attach your laptop to that vlan. Simples.
Ho hum,