Network setup
Tom H
tomh0665 at gmail.com
Thu Jan 14 11:54:12 UTC 2016
On Tue, Jan 5, 2016 at 12:02 AM, Thiago Farina <tfransosi at gmail.com> wrote:
>
> On Mac OS X [1] one can do the following to set a static ip for a
> network device:
>
> $ sudo networksetup -setmanual Ethernet [ipaddress] [subnet] [router]
>
> On Ubuntu (I'm on 12.04) you have to disable dnsmasq on NetworkManager
> (and this can break your dns resolution in the process), edit
> /etc/network/interfaces, restart the network-manager service and hope
> for the best. And in the end you give up the command line and end up
> doing this through the UI.
>
> [1] - https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/networksetup.8.html
Why do you have to disable dnsmasq?
Editing "/etc/network/interfaces" and restarting NM won't have any
effect without changing "managed=false" to "managed=true" in the
"ifupdown" of /etc/NetworkManager/NetworkManager.conf".
(I prefer the use of native NM NIC configs in
"/etc/NetworkManager/system-connections/" to using NM's "ifupdown"
plugin.)
More information about the ubuntu-users
mailing list