Use Terminal Route Add Commands

D

dave_sky

Guest
Have anyone successfully used tried to route traffic to multiple interfaces? For example, routing all internet traffic to the wireless connection, while routing only 10.0.0.0/8 traffic to the Ethernet. I doesn't appear to work the way it should. Here is what the netstat -nr command shows after using route add command to add the various routes:

Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.40.250 UGScI 6 0 en1
10.1.3/24 link#7 UCS 2 0 en0
10.1.3.24 127.0.0.1 UHS 1 0 lo0
10.1.3.101 0:1e:13:75:1f:e9 UHLWIi 0 3 en0 1164
10.1.3.255 ff:ff:ff:ff:ff:ff UHLWbI 0 4 en0
127 127.0.0.1 UCS 0 0 lo0
127.0.0.1 127.0.0.1 UH 3 17445 lo0
169.254 link#7 UCS 0 0 en0
192.168.40 link#4 UCS 5 0 en1
192.168.40.157 127.0.0.1 UHS 0 0 lo0
192.168.40.250 0:1e:13:75:1f:a5 UHLWIi 4 8 en1 981
192.168.40.255 ff:ff:ff:ff:ff:ff UHLWbI 0 4 en1
192.168.47 link#9 UC 2 0 vmnet1
192.168.47.255 ff:ff:ff:ff:ff:ff UHLWbI 0 4 vmnet1
192.168.120 link#10 UC 3 0 vmnet8
192.168.120.128 0:c:29:3b:ee:f1 UHLWIi 2 26 vmnet8 1177
192.168.120.255 ff:ff:ff:ff:ff:ff UHLWbI 0 5 vmnet8

I can ping the various gateways but cannot route traffic to internet through 192.168.40.250, for example. If I disconnect the Ethernet connection, the traffic is then re-routed. Any thoughts?
 
Joined
May 22, 2005
Messages
2,159
Reaction score
67
Points
48
Location
Closer than you think.
Your Mac's Specs
Performa 6116 2GBSCSI 8MB OS 7.5.3
Whatever interface is at the top of the list in Sys Prefs is the gateway that is used.

As for modifying the routes I have not tried.

Please repost if you make headway as I would be interested.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top