add route but not default
Sten Daniel Sørsdal
sten.daniel.sorsdal at wan.no
Tue Apr 15 01:16:40 PDT 2003
> Hi all,
>
> I am setting up a wan ppp link to a remote place and wonder how to
> (automagically) add a route when the link is up that is *not* the
> default route?
>
>From 'man ppp':
add[!] dest[/nn] [mask] [gateway]
For example:
add 10.0.0.0/24 192.168.0.1
I think you can add this in ppp.linkup under the correct group, but if that fails then it can go in ppp.conf
Add the '!' if the route already exists, as it then will perform a route change and not fail on route already existing.
- Sten
More information about the freebsd-questions
mailing list