Date: Tue, 15 Apr 2003 09:52:30 +0200 From: "Per olof Ljungmark" <peo@intersonic.se> To: freebsd-questions@freebsd.org Subject: Re: ppp: add route but not default Message-ID: <3E9BBA3E.4060209@intersonic.se> In-Reply-To: <200304150941.41810.will@unfoldings.net> References: <3E9BB621.4080802@intersonic.se> <200304150941.41810.will@unfoldings.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 10.0.0.0 10.0.255.4 255.255.255.0 > > 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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E9BBA3E.4060209>