Re: How do I set route at boot time ?
"Michael Janssen (CS/MATH stud.)" wrote:
> In Franck Routier's email, 10-05-2001:
> > Hello,
> >
> > I want to set up the route to a new box on my LAN.
> > If the route is not set, the connexion is refused (I think this is an otion
> > in the kernel networking configuration)
> >
> > Where should I put this route ?
> >
> > From the docs I have found it should go in /etc/network/interfaces, but I
> > can't figure out what the syntax is...
> >
> > thanks,
> >
> > Franck
>
> taking a quick glance at interfaces(5), the most obvious thing for you
> to do would be to add a 'up' command that gets executed. Then after
> the interface comes up you could have a short script that just calls
> `route` to set the correct route. If it's a dynamic IP and route this
> might be a little tricky though. There are other similar methods for
> 'down' to remove the routes..
>
> --
> Michael Janssen - Jamuraa - janssen@cns.uni.edu - jamuraa@base0.net
> GPG Fingerprint: 87F1 92C4 44AA 4105 B1C4 EDEC D995 9620 C00E 9159
>
> ------------------------------------------------------------------------
> Part 1.2Type: application/pgp-signature
I'm interrested in the same thing, only I want to be able to edit my routing
table upon startup to define the mss and window of my LAN and external gateway.
Is there some sort of text stream I can run through to accomplish this?
Stef
Reply to: