Date: Fri, 26 Apr 2002 12:08:00 +0200 From: "Patrick O'Reilly" <bsd@perimeter.co.za> To: "Nathan" <nkinkade@dsl-only.com> Cc: "FreeBSD Question List" <freebsd-questions@FreeBSD.ORG> Subject: Re: Multiple destination addresses on a PPP link Message-ID: <015f01c1ed0a$40e15690$b50d030a@PATRICK> References: <002801c1ec3a$7bf078e0$b50d030a@PATRICK> <20020425091436.51b36da1.nkinkade@dsl-only.com>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "Nathan" <nkinkade@dsl-only.com> > On Thu, 25 Apr 2002 11:20:46 +0200 > "Patrick O'Reilly" <bsd@perimeter.co.za> wrote: > > > Hi. <SNIP> > > # ifconfig hdlc3 192.168.7.1 192.168.7.2 netmask 255.255.255.248 > > I tried forcing a route manually: > > # route add -net 192.168.7.0/29 192.168.7.1 > > > It might be that I don't know enough about ifconfig or > your particular situation, but what is that 192.168.7.2 > address doing in your ifconfig statement? The second address identifies the IP at the far end of the PPP link. > So supposing your PPP link was established on tun0, you > could issue the following route command: > route add -net 192.168.7.0/29 -interface tun0 Ah - there's my problem! I have now tried: # route add -net 192.168.7.0/29 -interface hdlc3 and now it works! It seems that for Ethernet NICs, FreeBSD automatically generates a route add command similar to the above for each NIC and its subnet. But it does NOT do this for a PPP device. I guess there is some logic in that, since PPP links generally do not have subnets larger than /30, but doing the same as for other NICs automatically would do no harm, or would it??? Anyway, thanks to Nathan, I am back on the straight and narrow :) Regards, Patrick O'Reilly. ___ _ __ / _ )__ __ (_)_ __ ___ _/ /____ __ / __/ -_) _) / ~ ) -_), ,-/ -_) _) /_/ \__/_//_/_/~/_/\__/ \__/\__/_/ http://www.perimeter.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?015f01c1ed0a$40e15690$b50d030a>