Comment 27 for bug 5364

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote : Re: [Bug 5364] Re: Can't use static ip address with network-manager

Hi,

On Wed, Mar 07, 2007 at 08:38:12AM -0000, Tollef Fog Heen wrote:
> * Mantas Kriaučiūnas
> | I've just tried to configure "Static configuration" (by clicking on
> | network-managet icon in notification area and choosing "Static
> | configuration..."):
>
> The failure to activate the interface would be a network-admin bug,
> not a network-manager bug.

You are not right, network-admin activates interface correctly, but
then network-manager starts to do some things and tries to change my
startic IP to dhcp.
The same problem occurs if you add static IP configuration in
/etc/network/interfaces manually and then run ifup eth0.

This bug is very simple to reproduce - just boot from live CD, then
configure static IP and do ifconfig to be sure, that static IP config
works. Then just unplug network cable, wait several seconds and plug
network cable again. When you plug network-cable again network-manager
detects this and tries to enable dhcp configuration and changes your
startic IP to 169.xxx.xxx.xxx (if there are no dhcp server in the
network) or according to DHCP server.

> The only real bug I see here is that NM isn't smart enough to notice
> when an interface is static and mark it as such.

--
Labanaktis/Good luck,
Mantas Kriaučiūnas Jabber ID: <email address hidden> GPG ID: 43535BD5
Public organization "Open Source for Lithuania" - www.akl.lt