My router has one link to my ISP and one to a VPN. On the LAN (192.168.1.0/24) I have a server with one NIC that needs to connect to the VPN and the rest of the devices on the subnet need to connect directly to the ISP (and the server). In my ignorance I thought I could have two different IP addresses (192.168.1.1 and 192.168.1.2) on the router and set the gateway accordingly on the clients but it is not possible to have two addresses in the same subnet. What is the most elegant solution to this problem?
You can have as many addresses in same subnet as you want, that’s not a problem. But you won’t be able to use them just like that as two gateways and route traffic depending on which one was used, if they are on same interface. But it is possible:
http://forum.mikrotik.com/t/switching-wans-by-host-gateway-selection/122906/1
Thanks for that, I thought there would have to be a way. I did a search, but didn’t find your link.