Date: Tue, 15 Apr 2003 09:41:41 +0200 From: Willie Viljoen <will@unfoldings.net> To: peo@intersonic.se, freebsd-questions@freebsd.org Subject: Re: ppp: add route but not default Message-ID: <200304150941.41810.will@unfoldings.net> In-Reply-To: <3E9BB621.4080802@intersonic.se> References: <3E9BB621.4080802@intersonic.se>
next in thread | previous in thread | raw e-mail | index | archive | help
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. Will -- Willie Viljoen Freelance IT Consultant 214 Paul Kruger Avenue, Universitas Bloemfontein 9321 South Africa +27 51 522 15 60 +27 51 522 44 36 (after hours) +27 82 404 03 27 (mobile) will@unfoldings.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304150941.41810.will>