We would like to set up and private single cable connection between two Mavericks servers, that also need to talk to the rest-of-the-world.
The two servers for sake of argument are DB and Web.
There are two interface cards on each, which we'll call A & B. In each case A will be for rest-of-the-world, and B for between the pair.
Interface-wise, DB(A) is en0, ->rest of world; DB(B) is en3, ->Web Server; Web(A) is en0, ->rest of world; Web(B) is en4, -> DB Server;
We've run ourselves around in a few different circles, attempting this using route commands, something along the lines of:
// on DB server
// en0 card IP address 192.168.1.50
// en3 card IP address 10.0.0.50
sudo route -n add 10.0.0.51 -interface en3
// on Web server
// en0 card IP address 192.168.1.51
// en4 card IP address 10.0.0.51
sudo route -n add 10.0.0.50 -interface en4
Several questions:
Can this be done with a simple cable/cross-over cable without using up ports on the local ethernet switch?
Can we use a local network range for the B network: e.g. The A subnet is 192.168.1.x and The B subnet is 10.0.0.x?
What are the commands on MacOS X Mavericks to ensure that traffic is routed correctly, and that the routes are remembered between restarts? Will we need a script for this to run at restart?
Are we even on the right track?
All help gratefully received!