A specific application I use doesn't play well with network-manager. I would like to purge network-manager and configure my connections manually.
I have a dhcp connection to the network, and a static ip connection to an ethernet device.
How should I configure my ubuntu?
I tried setting /etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth3
iface eth3 inet static
address 192.168.155.130
netmask 255.255.0.0
gateway 192.168.155.1
But that didn't work at all. Are there other things I need to consider?
Best Answer
You need to do 2 things:
sudo apt-get purge network-manager
Alternatively you can disable it without uninstalling:
sudo stop network-manager echo "manual" | sudo tee /etc/init/network-manager.override
sudo ifup eth0 sudo ifup eth3
The interfaces marked with
auto
in /etc/network/interfaces are brought up automatically at boot. So actually this step is only needed to bring them up manually.To bring an interface down, use
ifdown
.--
References: