If I have PiA and PiB, its fairly simple to make PiA a gateway for PiB by setting the 'static routers=PiA' on PiB in /etc/dhcpcd.conf
But what if I want/need to set up two IP addresses on a Pi and route eth0.0 to eth0 ?
I've done that, but because the route table shows 2 default routes, the one with the lowest Metric is being used by both interfaces (eth0 & eth0.0)
Any way to force Default Route Metric 204 to be used by eth0.0 and Default Route Metric 202 to be used by eth0 ?
iface eth0 inet manual auto eth0.0 iface eth0.0 inet manual vlan-raw-device eth0
interface eth0 static ip_address=192.168.3.50/24 static routers=192.168.3.3 static domain_name_servers=188.8.131.52 184.108.40.206 interface eth0.0 static ip_address=192.168.3.51/24 static routers=192.168.3.50 static domain_name_servers=220.127.116.11 18.104.22.168
Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.3.3 0.0.0.0 UG 202 0 0 eth0 default 192.168.3.50 0.0.0.0 UG 204 0 0 eth0.0