ppp: add route but not default

Per olof Ljungmark peo at intersonic.se
Tue Apr 15 00:52:35 PDT 2003

Willie Viljoen wrote:
> On Tuesday 15 April 2003 9:34, someone, possibly Per olof Ljungmark, typed:
>>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?
> If you are using real ppp (pppd, not a userland implementation), then this 
> is very easy. Simply put this in /etc/ppp/ip-up
> #!/bin/sh
> route add -net
> Substitute with your own IPs, gateway and netmask, and make sure that 
> /etc/ppp/ip-up is executable.
> It might also be prudent to delete the route in /etc/ppp/ip-down, when the 
> link drops.

<sigh> had just got userland ppp working. Do I need to start from 
scratch with pppd?

More information about the freebsd-questions mailing list