|
|
Adding static routes to a network
I was faced with a similar problem when I added second ethernet interface to my work machine to connect to a test network. I needed to move the default route to the other interface, and add a bunch of static routes out the various interfaces for full connectivity. However, I used launchd and created a script I put in /etc to do this. Here's my launchd .plist file, which I put in /Library/LaunchDaemons/net.routes.static.plist:
And here's the shell script I slapped together and put in /etc/routes.sh:
I seems to work fine, but I'm sure it could be cleaned up in a few areas.
HTH
Adding static routes to a network
I think this might answer a question I posted earlier -- can you use this to assign traffic to a particular interface (en0, en1) by either application or by port?
Adding static routes to a network
I found neither of the other two static route hints were working for me.
Adding the route to /etc/rc.local failed to ever actually add the route. I was adding my route manually without a problem, so figured the trouble adding this at boot was related to the networking not being sufficiently "up" when the /etc/rc.local is executed.
I created a script to be executed 3 minutes after the rc.local is run. This has worked perfectly for me with my 10.4.11 host. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|