Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

3 Answers

I always enter 0.0.0.0 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 0.0.0.0 as the default GW when you press Save.

share|improve this answer
add comment

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). –  Homayoon Feb 8 '12 at 11:32
add comment

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.

Before:

[ipv4]
method=manual
addresses1=10.1.0.10;24;10.1.0.88;

After:

[ipv4]
method=manual
addresses1=10.1.0.10;24;
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. –  Homayoon Mar 1 '12 at 16:19
add comment

Your Answer

 
discard

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.