mac route command accesses the external network
sudo route -n -netmask the Add -net 192.168.0.0 255.255.255.0 192.168.5.254
sudo route -n -netmask the Add -net 192.168.3.0 255.255.255.0 192.168.5.254
sudo route -n the Add -net 192.168.2.0 -netmask 255.255.255.0 192.168.5.254
Windows route command accesses the external network
route 192.168.3.0 mask 255.255.255.0 192.168.5.254 -p the Add
route the Add -p 192.168.0.0 mask 255.255.255.0 192.168.5.254
route the Add -p 192.168.2.0 mask 255.255.255.0 192.168.5.254
Reference address
http://www.docin.com/p-678424907.html
mac add a persistent route (even if the route command to start automatically)
This feature uses Automator program realization
(I pro-test ineffective method to add files in / System / Library / StartupItems)
1. Click Automator

2. Select the application

3. Select the left repository Utilities -> Run AppleScript
input command
(note: for the quotation marks in the English state, should be switched to the English input method when the writing command)
ON RUN INPUT {,} Parameters
do shell script "route -n add -net 192.168.0.0 -netmask 255.255.255.0 192.168.5.254" user name "系统登录用户名" password "登录密码" with administrator privileges
return input
- 1
- 2
- 3
end run

4. Click Save command + s (I save a file named Route_MAC)
(save after completing the program can double-click the file, type netstat -nr in the terminal (direct ping command can also be verified) Verify that the file produced successful, be successful after The following step)
5. Click the System Preferences - "Users and Groups -" Log entry
to add just the saved program file
(the real permanently add routes to achieve here, the principle is that each landing, the system runs the route command)

6. Restart the computer ok
Reference address
http://bbs.feng.com/read-htm-tid-5138570.html