From owner-freebsd-net Thu Nov 7 19:45:45 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 350C537B401; Thu, 7 Nov 2002 19:45:44 -0800 (PST) Received: from laurie.sux.org.uk (laurie.sux.org.uk [212.74.113.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id D021943E4A; Thu, 7 Nov 2002 19:45:43 -0800 (PST) (envelope-from krad@krad.org.uk) Received: from krad by laurie.sux.org.uk with local (Exim 3.36 #3) id 18A05V-000Axt-00; Fri, 08 Nov 2002 03:45:41 +0000 To: freebsd-net@freebsd.org, freebsd-questions@freebsd.org Subject: IP aliasing with ppp Message-Id: From: krad Date: Fri, 08 Nov 2002 03:45:41 +0000 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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. regards Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message