You are not logged in.
What is the right syntax for rc.conf file (I think)
If I do not want default route and prefer to add some specific routes at system booting
like:
1. route –add x.x.x.x mask x.x.x.x gw x.x.x.x.x
2. route –add x.x.x.x mask x.x.x.x gw x.x.x.x.x
and so on … ?
Thank you!
Offline
Just put there anything that comes after "route add".
Offline
You do have to give each route a name. The only one there by default is gateway, but you could call yours e.g. route1, route2, etc. You then need to add those names to the ROUTES array.
Offline
Like this exactly:
ROUTE1="x.x.x.x mask x.x.x.x gw x.x.x.x"
ROUTE2="x.x.x.x mask x.x.x.x gw x.x.x.x"
ROUTES=(!ROUTE1,!ROUTE2)
?
What is about place and times of "!". This is confusing me.
Thank you!
Offline
It should be:
ROUTE1="x.x.x.x mask x.x.x.x gw x.x.x.x"
ROUTE2="x.x.x.x mask x.x.x.x gw x.x.x.x"
ROUTES=(ROUTE1 ROUTE2)
"!" is just used to disable the route (analogically as in MODULES array).
Offline