OS/X does most of its routing based on the order of the interfaces in 'Network Preferences'.
I need to separate traffic, so I've put the default route first, and then routed traffic to the second interface.
The problem is that, after using the route command, I start getting these errors either in the browser, or traceroute saying 'Cannot allocate memory'.
So route seems to be doing something wrong.
Here is the detail:
I've got two interfaces, in this order:
Wi-Fi connection to Apple time capsule that links to the internet - 10.0.1.9
LAN connection to ISP that links to the internet - 10.0.2.250
This works perfectly well, however, I would like to rout traffic through the second link, not just have it as a fail-over.
So, I use the route command, like this:
route -n add -host 197.242.144.171 10.0.2.250 route -n add -host 197.242.144.175 10.0.2.250 route -n add -host 173.194.41.182 10.0.2.250
This doesn't give any errors and a netstat -nr shows:
197.242.144.171 10.0.2.250 UGHS 0 1 en0 197.242.144.175 10.0.2.250 UGHS 0 0 en0 173.194.41.182 10.0.2.250 UGHS 0 12 en0
If, though, I try trace route, this is what I get:
traceroute 197.242.144.175 traceroute to 197.242.144.175 (197.242.144.175), 64 hops max, 52 byte packets traceroute: sendto: Cannot allocate memory 1 traceroute: wrote 197.242.144.175 52 chars, ret=-1
Any suggestions??