I'm trying to configure my server with two gateways: enp5s0 through 192.168.1.1 and enp5s0 with dhcp from another ISP.
Can't seem to configure this through the use of /etc/sv/dhcpcd-eth0/run, so I'm trying to do it manually in /etc/rc.local.
In /etc/rc.local, after setting ip addr and routes for enp5s0, I have to ask dhcpcd for enps90:
dhcpcd -B enp9s0
enp9s0: IAID 9.....
enp9s0: soliciting an IPv6 router
enp9s0: rebinding lease of 126.96.36.199
enp9s0: probing address 188.8.131.52/23
enp9s0: leased 184.108.40.206 for 14400 seconds
enp9s0: adding route to 220.127.116.11/23
enp9s0: adding default route via 18.104.22.168
enp9s0: no IPv6 Routers available
How can I prevent dhcpcd from setting routes? I want to manually add them later for a second routing table.
Or, if possible, how to set it up automatically for both interfaces?