Networking
Howto make static route(s) permanent
Problem
If I use the command "route add -net x.y.z.t netmask a.b.c.d ... ethx", Is there a way ( via setup or other ) to add PERMANENTLY a route ? |
Solution
Add the 'route' command to the /rc/rc_user script.
For FREESCO 027 this script has a start and a stop section, see comments:
CODE |
echo -n "Starting rc_user... " # Add commands here you want to execute when booting. Use the fork # command to launch programs which normally stay in the foreground. route add -net x.y.z.t netmask a.b.c.d ... ethx |
CODE |
echo -n "Stopping rc_user... " # Add commands here you want to execute when shutting down or rebooting. # Be careful not to use any commands which wait for user input. route del x.y.z.t |
For FREESCO 03x, the script has a switch statement, with clearly indicated start) and stop) sections:
CODE |
start) echo -n "Starting rc_user... " # Add commands here you want to execute when starting # the router. # Use the fork command to launch programs which normally stay # in the foreground. # This part is called after all rc_* files. route add -net x.y.z.t netmask a.b.c.d ... ethx= ;; stop) echo -n "Stopping rc_user... " # Add commands here you want to execute when restarting, # shutting down or rebooting. # Be careful not to use any commands which wait for user input. # This part is called before all rc_* files. route del x.y.z.t= ;; |
Add you command(s) before the equal sign (=) and make sure to leave the double semi colons (;;) in place!
Always use a linux compatible editor (like edit, joe, vi, teddy, mc, etc.) to make changes, never a DOS/Windoze editor, since a DOS/Windoze editor will add ^M characters (CARRIAGE RETURN) at the end of each line, making the script unusable!
Last update: 2009-08-18 11:28
Author: Dingetje
Revision: 1.1
Print this record
Send to a friend
Show this as PDF file
Export as XML-File
You cannot comment on this entry
Comment of linhvnn (2009-10-06 03:41:46):
風俗
デリヘル
風俗
デリヘル 風俗
エロゲー
ソープランド
吉原 ソープランド
出会い
出会い
デリヘル
すすきの ソープランド
新宿 ソープランド
千葉 ソープランド
埼玉 ソープランド
神奈川 ソープランド
吉原 ソープランド
sod
バイブ
風俗求人 高収入
都内 キャバクラ 全額日払い
無料動画
大阪 風俗
大阪 風俗
神戸 風俗
裏DVD
裏DVD
風俗 求人
風俗 求人
デリヘル 新宿
デリヘル 東京
千代田区 デリヘル
台東区 デリヘル
墨田区 デリヘル
中央区 デリヘル
Comment of sdf (2009-11-14 06:22:44):
エッチのことならセックスフレンドに聞いてみてみんなでレッツ出会い系!各地から何時でも使える出会い系サイトの魅力!無料エントリーがうれしいね無料出会い系サイトは。気になる人妻と友達になるよ仲間つくりはヤッパリ出会いサイトで。セックスしたい人があつまるコミュニティーおたのしみサイトでメル友探したのしいよ。ワクワクメールでエンジョイしてみました。セフレからエッチ教えてもらったうれし楽しい出会い系でね。新しい生活での新しい出会い最初は緊張するね。近所の人妻はキレイでした。
Comment of dwt (2009-12-02 09:59:30):
セックスフレンドももちろん
熟女
逆援助
人妻
童貞喪失なら
メル友
セフレ
メル友募集板
sexフレンド
エロ
メル友募集掲示板 無料
メル友募集掲示板
メル友募集掲示板 地域別
メル友募集掲示板 写メ
10代 メル友募集掲示板
メル友募集掲示板 全国
不倫
ネットカフェ難民掲示板
家出掲示板
メル友募集掲示板
不倫
出会い
童貞
援助交際
逆援助交際
人妻
熟女
セフレ
セックスフレンド
Comment of mmz (2012-04-18 07:35:21):
cheap air jordan
cheap beats by dre
cheap beats by dre
cheap beats by dre
Comment of rerare (2009-12-08 11:44:38):
出会い
出会い
出会い
出会い
出会い
出会い
出会い
出会い
出会い
掲示板
出会い掲示板
メル友
セフレ
家出サイト
家出掲示板
家出少女
処女
sex
援交
逆援助
メル友
メル友
セフレ
出会い
出会い
出会い
出会い
出会い
出会い
出会い
出会い
出会い
出会い
出会い
出会い
出会い
出会い
出会い
処女
Have a nice day;-)
Comment of John Carpenter (2014-06-13 04:03:36):
Thank you