From owner-freebsd-hackers Fri Oct 22 4:26: 7 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from at.dotat.com (zed.dotat.com [203.2.134.254]) by hub.freebsd.org (Postfix) with ESMTP id 3E6E314C8E for ; Fri, 22 Oct 1999 04:25:48 -0700 (PDT) (envelope-from hart@at.dotat.com) Received: from at.dotat.com (localhost.dotat.com [127.0.0.1]) by at.dotat.com (8.8.8/8.8.8) with ESMTP id UAA01307 for ; Fri, 22 Oct 1999 20:56:19 +0930 (CST) Message-Id: <199910221126.UAA01307@at.dotat.com> Cc: hackers@FreeBSD.ORG Subject: Re: aliasing a point-to-point interface In-reply-to: Your message of "Fri, 22 Oct 1999 11:53:48 +0200." <9910221201410E.17915@cequrux.com> Date: Fri, 22 Oct 1999 20:56:19 +0930 From: Leigh Hart Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG G'day folks, I used to do this on my permanent link at home a while ago -- my ISP provided me with a /30 network address with which to run the point- to-point link, and then they routed my class C via my end of the /30, and I was told to default via their end of the /30. This meant that when originating connections from my FreeBSD system, it would be sourced on the /30 address at my end - and therefore subject to my ISPs reverse mappings, not my own class C's. So to force my connections to originate from one of my IPs, I would delete the PPP address that was negotiated with PPP (after pppd was completely connected), and added one of my own with ifconfig, ala: ifconfig ppp0 delete ifconfig ppp0 10.1.1.1 netmask 255.255.255.255 192.168.1.1 alias route delete default route add default 192.168.1.1 now while 192.168.1.1 doesn't exist, and I can't ping it, sending my default traffic via that address forces it to be sent out via the ppp link, and the router at the other end doesn't give a hoot about the fact that I sent the packet to the wrong address, all it cares about is where to send the packet next :) And yes, I can ping 10.1.1.1 from outside my network, so all works as expected. Cheers Leigh -- | "By the time they had diminished | Leigh Hart, hart@dotat.com | | from 50 to 8, the other dwarves | CCNA: http://www.cisco.com | | began to suspect 'Hungry' ..." | PO Box 3057 Newton SA 5074 | | -- Gary Larson, "The Far Side" | http://www.dotat.com/hart/ | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message