From owner-freebsd-questions Wed Feb 20 1:34:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mip.co.za (puck.mip.co.za [209.212.106.44]) by hub.freebsd.org (Postfix) with ESMTP id E458B37B402 for ; Wed, 20 Feb 2002 01:33:57 -0800 (PST) Received: from patrick (patrick.mip.co.za [10.3.13.181]) by mip.co.za (8.9.3/8.9.3) with SMTP id LAA33442 for ; Wed, 20 Feb 2002 11:33:37 +0200 (SAST) (envelope-from patrick@mip.co.za) From: "Patrick O'Reilly" To: "FreeBSD Question List" Subject: ifconfig - aliasing and PPP links Date: Wed, 20 Feb 2002 11:39:51 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal 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 A question to the network experts out there: Background: I have a FreeBSD gateway server with some on-board X.21 cards, and some NICs. I need to prepare for changing one of the PointToPoint serial links from a private IP subnet to a public IP subnet, and the public subnet will be a /29 (the customer needs some addresses for static NAT on the router device at the other end). Here is ifconfig as it stands: ------------------------------------- # ifconfig hdlc3 hdlc3: flags=8050 mtu 1500 inet 192.168.254.1 --> 192.168.254.2 netmask 0xfffffffc # ------------------------------------- My plan is to do: ------------------------------------- # ifconfig hdlc3 x.y.z.153 x.y.z.154 subnet 255.255.255.248 alias # ifconfig hdlc3 hdlc3: flags=8050 mtu 1500 inet 192.168.254.1 --> 192.168.254.2 netmask 0xfffffffc inet x.y.z.153 --> x.y.z.154 netmask 0xfffffff8 # ------------------------------------- This way the interface should be able to handle the current as well as the future configuration. I'll remove the private IP subnet once the changeover has been successful. Well - that's my plan anyway. So, to the questions: 1) Can I use a /29 subnet on a PPP link? (the hdlc3 device uses the sppp pseudo-device driver) 2) Am I correct in believing that the interface should work either way if I add the alias as described above? Thanks in advance. Regards, Patrick. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message