I am using 3 ethernet interfaces on Ubuntu but when I restart, the default gateway is changing to a different interface. Each time I boot I have to change default gateway back to the eth1 by deleting the default gateway and adding it back with eth1. How can I fix this problem?
Open the file
find desired interface and add following:
To temporarily change the default route you can use an ip command like this:
If you have a static ip configuration in
Using DHCP to configure networking you have to adjust another file instead. Add the supersede statement in