|
|
|
| |
|
|
Synopsis: You want to create a static route on CensorNet that persists reboots
The usual way to add persistent static routes would be to modify the /etc/network/interfaces file, however CensorNets' setup program can and will modify this file and may overwrite changes made to it.
Therefore we need to make a new init script, add the rules to it and then tell the system to run it at boot time.
1. Login as root to the system console.
2. Using a text editor (nano, vi, emacs etc...) create a file:
/etc/init.d/routingIn this file add the following two lines: #!/bin/sh /sbin/route add –net 10.0.0.0 netmask 255.255.0.0 gw 10.0.1.1 metric 1 dev br0 (replace network, subnet and gateway addresses with your own route information)3. Save the file, exit the editor, then at the command prompt execute the following two commands: chmod +x /etc/init.d/routing update-rc.d routing defaults 99That should make the script you created run at boot time. -- TimLloyd - 31 Mar 2010 |