Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2001 00:09:15 +0100
From:      "Rogier R. Mulhuijzen" <drwilco@drwilco.nl>
To:        "Drew J. Weaver" <drew.weaver@thenap.com>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: Quick question about IP aliasing
Message-ID:  <4.3.2.7.0.20010227000742.00d24820@mail.bsdchicks.com>
In-Reply-To: <B1A7D9973EBED3119ADD009027DC8649180DBF@mailman.thenap.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--=====================_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"

<html>
At 10:27 26-2-01 -0500, you wrote:<br>
<br>
<blockquote type=cite cite>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font size=2>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.<br>
</font><br>
<font face="Courier New, Courier" size=2>ifconfig_fxp0_alias0=&quot;inet
209.51.193.32 netmask 255.255.255.0&quot; (is an example of what im using
for the aliases.)</font> <br>
<br>
<font face="Courier New, Courier" size=2>Is there something special I
need to do since these aren't on the same net?</font> </blockquote><br>
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.<br>
<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>DocWilco</html>
--=====================_1063673668==_.ALT--


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.3.2.7.0.20010227000742.00d24820>