From owner-freebsd-questions Fri Nov 8 8:49:33 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EA8237B406 for ; Fri, 8 Nov 2002 08:49:32 -0800 (PST) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6CEC43E3B for ; Fri, 8 Nov 2002 08:49:31 -0800 (PST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.6/8.12.5) with ESMTP id gA8GnVWJ096170 for ; Fri, 8 Nov 2002 11:49:31 -0500 (EST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.6/8.12.6/Submit) id gA8GnRaA096165; Fri, 8 Nov 2002 11:49:27 -0500 (EST) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f To: freebsd-questions@freebsd.org Subject: Re: IP aliasing with ppp References: From: Lowell Gilbert Date: 08 Nov 2002 11:49:26 -0500 In-Reply-To: Message-ID: <44u1is3t2h.fsf@be-well.ilk.org> Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 krad writes: > hi, > > I currently have a /29 assigned by my isp for my dsl. I have got my bsd box connecting fine and natd is working off one off the ips. I would like to bind the remaining 5 ips to the tun0 interface on the bsd box and enable static nating to certain boxes behind the firewall. I am however having problems as when I use ifconfig i get strange results e.g. > > tun0: flags=8151 mtu 1500 > inet 123.54.67.94 --> 65.4.32.1 netmask 0xffffff00 > Opened by PID 6896 > root on gateway# ifconfig tun0 alias inet 123.54.67.93 > root on gateway# ifconfig tun0 > tun0: flags=8151 mtu 1500 > inet 123.54.67.94 --> 65.4.32.1 netmask 0xffffff00 > inet 192.168.0.254 --> 123.54.67.93. netmask 0xffffff00 > Opened by PID 6896 > root on gateway# > > im not sure whats going on here but it certainly isnt correct. I have also tried playing around with ifalias commands in ppp with no problems. Am I going about this in completely the wrong way or is my syntax wrong when using ifconfig. Well, it should include a netmask; in this case, an all-1's netask (0xffffffff). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message