Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to connect my desktop and laptop using an ethernet connection. I usually configure network from the command line but this time I decided to give Network Manager a try, so I went to Network Connections, and selected manual IP configuration.

At first I left the default gateway field blank, since I don't need a default gateway. Turned out network manager doesn't let me save the connection unless I enter that field, but entering a phony gateway messes up with my Internet connection. Anyway to do this setup?

share|improve this question

I always enter as default GW when I don't really need one.

Actually, if you enter IP and netmask, and never touch the GW field it will automatically fill in as the default GW when you press Save.

share|improve this answer

It actually does let you save without a gateway. Try closing the network app manager and restarting it and try again

share|improve this answer
No luck. I've tested this on both 11.10 and 12.04 (Alpha 2). – Elektito Feb 8 '12 at 11:32

Set up a static IP and type in a phony gateway IP.

Edit /etc/NetworkManager/system-connections/<connection name> and remove the gateway from the end of the addresses1 line in the IPV4 section.




share|improve this answer
Thanks. I actually know how to configure my network interfaces without bothering with NetworkManager at all. I was just wondering if the graphical user interface can do it as well. Apparently not. – Elektito Mar 1 '12 at 16:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.