From owner-freebsd-net Mon Feb 26 15: 9:32 2001 Delivered-To: freebsd-net@freebsd.org Received: from hera.drwilco.net (10dyn61.dh.casema.net [212.64.31.61]) by hub.freebsd.org (Postfix) with ESMTP id 10EDD37B4EC for ; Mon, 26 Feb 2001 15:09:16 -0800 (PST) (envelope-from drwilco@drwilco.nl) Received: from ceres.drwilco.nl (ceres.drwilco.net [10.1.1.19]) by hera.drwilco.net (8.11.2/8.11.1) with ESMTP id f1QNWpo16345; Tue, 27 Feb 2001 00:32:53 +0100 (CET) (envelope-from drwilco@drwilco.nl) Message-Id: <4.3.2.7.0.20010227000742.00d24820@mail.bsdchicks.com> X-Sender: lists@mail.bsdchicks.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Tue, 27 Feb 2001 00:09:15 +0100 To: "Drew J. Weaver" From: "Rogier R. Mulhuijzen" Subject: Re: Quick question about IP aliasing Cc: freebsd-net@FreeBSD.ORG In-Reply-To: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_1063673668==_.ALT" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --=====================_1063673668==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed At 10:27 26-2-01 -0500, you wrote: > Say I have a main server Ip address of (This is completely made > up) 209.190.53.51, and I have 32 IP addresses blocked to it on > 209.51.193.32-64 (or whatever, this is an example) would this alias line > still be valid for that? I've never done a server where the MAIN IP and > the aliased IPs were on different IP classes. > >ifconfig_fxp0_alias0="inet 209.51.193.32 netmask 255.255.255.0" (is an >example of what im using for the aliases.) > >Is there something special I need to do since these aren't on the same net? No, you can just use the regular netmask for the first IP in a new subnet. It's only when you have more than one IP in the same subnet that you need to use 255.255.255.255 (or 0xffffffff, which I prefer) as a subnetmask. DocWilco --=====================_1063673668==_.ALT Content-Type: text/html; charset="us-ascii" At 10:27 26-2-01 -0500, you wrote:

        Say I have a main server Ip address of (This is completely made up) 209.190.53.51, and I have 32 IP addresses blocked to it on 209.51.193.32-64 (or whatever, this is an example) would this alias line still be valid for that? I've never done a server where the MAIN IP and the aliased IPs were on different IP classes.

ifconfig_fxp0_alias0="inet 209.51.193.32 netmask 255.255.255.0" (is an example of what im using for the aliases.)

Is there something special I need to do since these aren't on the same net?

No, you can just use the regular netmask for the first IP in a new subnet. It's only when you have more than one IP in the same subnet that you need to use 255.255.255.255 (or 0xffffffff, which I prefer) as a subnetmask.

        DocWilco --=====================_1063673668==_.ALT-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message