I have two interfaces in my computer and this is how my routing table looks like when it boots up:
default via 192.168.80.1 dev enp4s1 proto static metric 100
default 192.168.0.1 dev enp2s0 proto static metric 101
However my Internet gateway is 192.168.0.1
so I won't have Internet connection each time my computer is rebooted, because the second network should be used for Internet access. I can set the default route manually and everything will work well:
sudo ip route add default via 192.168.0.1
but I don't want to do that every time. How to configure default gateway permanently?
enp4s1
?