how can I add a permanent route, that comes up while the machine is booting?
I've heard that I have to create a certain file under /etc/.... that
contains the routing information - is that right? If so, what is the name of
this file and where to place it? And what is the syntax like for adding
routes in this file?
Thank You,
Soeren
"Sören Hanisch" <soeren....@gwi-ag.com> wrote in message
news:3e9a...@news.gwi-ag.com...
And if you need a route other than the default, it can be done ie by a
script:
/etc/init.d/setintroute
-----------sample
migselv# cat setintroute
#!/bin/ksh
echo "setting route for 192.168.0.0"
route add -net 192.168.0.0/24 10.1.0.1
and in /etc/rc2.d a softlink
ln -s /etc/init.d/initroute S98setintroute
finn
> And if you need a route other than the default, it can be done ie by a
> script:
The default? A close inspection of /etc/init.d/inetinit reveals
that /etc/defaultrouter can accommodate more than one.
-am © 2003
thank you all for your hints.
I've decided for this way because it comes closest to my needs.
Thanks again
"CykelSmeden fra Aalborg" <out...@acnord.SLET.dk> schrieb im Newsbeitrag
news:3e9b0dd0$0$24617$edfa...@dread14.news.tele.dk...
But they're all installed as default routes. He means a route to a
specific network, like:
ip route -net 192.168.10.0 192.168.1.2 1
--
Barry Margolin, barry.m...@level3.com
Genuity Managed Services, a Level(3) Company, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
Sören> Hello,
Sören> how can I add a permanent route, that comes up while the
Sören> machine is booting?
Sören> I've heard that I have to create a certain file under
Sören> /etc/.... that contains the routing information - is that
Sören> right? If so, what is the name of this file and where to
Sören> place it? And what is the syntax like for adding routes in
Sören> this file?
Create the file /etc/defaultrouter, and put just the IP-address of
your default router in it.
The next time the system boots, it will set the defaultrouter
according to what's in that file.
For more info, check the manpage for defaultrouter(4).
/jb