Is there a possibility to set static IP in NetworkManager?

Asked by Roman Polach

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
Christoph Langner (chrissss) said :
#2

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

Revision history for this message
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...

Revision history for this message
Cesare Tirabassi (norsetto) said :
#4
Revision history for this message
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.

Revision history for this message
Cesare Tirabassi (norsetto) said :
#6

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