From owner-freebsd-questions Tue Feb 10 21:02:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA18789 for questions-outgoing; Tue, 10 Feb 1998 21:02:03 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA18598 for ; Tue, 10 Feb 1998 21:01:47 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.7/8.8.7) with ESMTP id BAA14146; Wed, 11 Feb 1998 01:11:46 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199802110111.BAA14146@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: George Vagner cc: questions@FreeBSD.ORG Subject: Re: routing In-reply-to: Your message of "Tue, 10 Feb 1998 10:41:56 CST." <199802101641.KAA00399@mutsgo.dyn.ml.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 11 Feb 1998 01:11:46 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > i have a modem connected to the net and occaisionally it drops > the line and the system redials and gets a new ip, i see my old ip addresses > in netstat -rn also, this is causing problems with samba cause sometimes it cant > find my samba shares. [.....] > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 206.66.11.224 UGSc 4 0 tun0 > 127.0.0.1 127.0.0.1 UH 3 1 lo0 > 192.168 link#1 UC 0 0 > 192.168.0.1 0:a0:c9:21:13:44 UHLW 2 77 lo0 > 192.168.0.2 0:a0:c9:21:13:a0 UHLW 3 696 fxp0 1181 > 192.168.0.3 0:aa:0:b8:f1:b6 UHLW 0 0 > 192.168.0.255 ff:ff:ff:ff:ff:ff UHLWb 2 32 fxp0 > 204.178.75.92/32 127.0.0.1 UGSc 1 0 lo0 > 206.66.11.224 206.66.11.249 UH 5 0 tun0 > 206.66.11.249/32 127.0.0.1 UGSc 0 0 lo0 > 206.66.14.168/32 127.0.0.1 UGSc 0 0 lo0 [.....] The bogus routes are static.... Have you got a `add myaddr 255.255.255.255 127.0.0.1' in your ppp.linkup by any chance ? `delete all' only deletes routes for the interface that ppp owns - tun0 in this case. If you add routes manually to another interface, you've gotta delete them manually :-) The latest versions of ppp can handle your scenario a bit better. If you just leave out the static routes altogether, ppp will detect packets targeted for the interface address and just turn them around. Check out the `set loopback' command in the man page. As ever, you can get it at http://www.FreeBSD.org/~brian. -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe questions" in the body of the message