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].
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.
Anyone got any idea?
On 01/07/11 10:02, James Bensley wrote:
Every time I disconnect my Ethernet cable on my laptop I loose my IP address (dropping to none configured) [Ubuntu 10.10].
Where/how are you initially configuring it? If you put it into /etc/network/interfaces I would expect it to "stick".
All the same, you're going to lose "vital" seconds having the network cable disconnected and reconnected while the network goes down and back up. Any reason not connect a hub/switch between you and the switch you're configuring so that your laptop's network connection stays up? You can get small 3-port USB-powered switches which are great for stuff like this if you're not in an office.
Maybe there's a way to stop the network connection going down on cable disconnect in the first place?
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,
On 1 July 2011 10:26, Brett Parker iDunno@sommitrealweird.co.uk wrote:
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
Ta very much, that's done the trick :)
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.
If the switches were all linked together, then yes. I've been setting up customer devices for multiple customers all week so this is not an option. Otherwise Marks idea would have been a good one I think; getting an intermediary device so my NIC never goes down.