Nothing to stop you having two gateways on a LAN, and using manual configurations so that Internet data from one machines goes via one route, and from another machine goes another route.
If you need the machines to be able to see each other on the LAN then just need to use multiple IP addresses on the machine involved.