From owner-freebsd-questions Fri Apr 26 3:12: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dns.perimeter.co.za (dns.perimeter.co.za [196.25.164.254]) by hub.freebsd.org (Postfix) with ESMTP id 64FD837B41D for ; Fri, 26 Apr 2002 03:11:50 -0700 (PDT) Received: from PATRICK (loopback.mipjhb [209.212.102.245] (may be forged)) by dns.perimeter.co.za (8.11.1/8.11.1) with SMTP id g3QA9xL61479; Fri, 26 Apr 2002 12:10:01 +0200 (SAST) (envelope-from bsd@perimeter.co.za) Message-ID: <015f01c1ed0a$40e15690$b50d030a@PATRICK> From: "Patrick O'Reilly" To: "Nathan" Cc: "FreeBSD Question List" References: <002801c1ec3a$7bf078e0$b50d030a@PATRICK> <20020425091436.51b36da1.nkinkade@dsl-only.com> Subject: Re: Multiple destination addresses on a PPP link Date: Fri, 26 Apr 2002 12:08:00 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Nathan" > On Thu, 25 Apr 2002 11:20:46 +0200 > "Patrick O'Reilly" wrote: > > > Hi. > > # 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