“RTNETLINK answers: File exists” /etc/network/interfaces Does’nt contain 2 gateways, so what’s wrong?

Edit your configuration file to remove the spaces before the iface stanza so that it looks like this, auto eth0 iface eth0 inet static address 192.168.1.57 netmask 255.255.255.0 gateway 192.168.1.1 up ip addr add 192.168.0.57/24 dev eth0 label eth0:1 down ip addr del 192.168.0.57/24 dev eth0 label eth0:1 up ip route add 192.168.0.0/24 via 192.168.0.1 … Read more

NetworkManager is not changing /etc/resolv.conf after openvpn dns push

This works for me: http://www.softwarepassion.com/solving-dns-problems-with-openvpn-on-ubuntu-box/ The important step is adding following two lines of configuration into your client openvpn config file: up /etc/openvpn/update-resolv-conf down /etc/openvpn/update-resolv-conf Also ensure the resolvconf package is installed on the client, because that update-resolv-conf script depends on it. It works with openvpn client service or command to start it manually. However, … Read more

How to manage DNS in NetworkManager via console (nmcli)?

Here is the command to modify an existing connection. nmcli con mod $connectionName ipv4.dns “8.8.8.8 8.8.4.4” connectionName can be found by command: nmcli con. In the question case, it will be “System eth0” If you want to ignore automatically configured nameservers and search domains, ie the settings passed from DHCP. nmcli con mod $connectionName ipv4.ignore-auto-dns … Read more