Is there a possibility to set static IP in NetworkManager?

Asked by Roman Polach on 2007-05-06

Is there a possibility to set up a wireless connection in Network Manager applet
with an static IP address? I guess it tries to connect always with DHCP but no
DHCP server is running on the AP, so Network Manager cannot connect to it?

Can I fill static IP address somewhere manually?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu network-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Roman Polach
Solved:
2007-05-07
Last query:
2007-05-07
Last reply:
2007-05-07
Ralph Janke (txwikinger) said : #1

Thanks for the question.

While I don't have the ability to test this out here at the moment, I would think you can do that in the /etc/network/interfaces file. There should be a line

iface wlan0 inet dhcp

which you should be change from dhcp to static and then you give all the configuration as needed similar as shown here: http://ubuntuforums.org/showpost.php?p=1694945&postcount=13

I hope this helps

Christoph Langner (chrissss) said : #2

Which version of Ubuntu are you using? This is possible since Ubuntu Feisty.

Roman Polach (rpolach) said : #3

I use Feisty.
The problem is that when I set ESSID and WEP key in Network Manager interface
nothing has been written to /etc/network/interfaces, so I cannot simply change
"dhcp" to static ip, because I do not know the exact syntax for Network Manager entry
(How it differs from non-networkmanager ones or if nm uses /etc/network/interfaces at all).
However I know the "Manual" syntax of /etc/network/interfaces, which I have used in Edgy
where no Network Manager was, but this is not what I want...

Best Roman Polach (rpolach) said : #5

It seems that NM simply does not support static IP and there are many bugs around that,
so it would be better to use manual connection, no problem for me :-)
Thanks.

Cesare Tirabassi (norsetto) said : #6

To tell you the truth, I took it out from my installation ......