Re: [HACKERS] cidr

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net>, vev(at)michvhf(dot)com, vixie(at)vix(dot)com, pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] cidr
Date: 1998-07-22 16:35:34
Message-ID: Pine.BSF.3.96.980722122844.23582M-100000@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 22 Jul 1998, Bruce Momjian wrote:

> OK, let me explain what I think Paul was saying. cidr is used for
> networks. You can use it for hosts by specifying /32. It is not the
> same as a netmask. For example:
>
> host 192.24.45.32
>
> Now, this is a host address. We can say its netmask is 255.255.255.0,
> or was can say it is part of network 192.24.45/24, which would allow you
> compute the netmask as 255.255.255.0. The problem is that you need the
> type to support cidr, hosts, and netmasks.

192.24.45.32/32 == 192.24.45.32:255.255.255.255 (single host)
192.24.45.32/30 == 192.24.45.32:255.255.255.252 (2 hosts)
192.24.45.32/26 == 192.24.45.32:255.255.255.192 (62 hosts)

Check out: http://www.min.net/netmasks.htm, it has *all* the translations
and appropriate netmasks associated with each CIDR...

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-07-22 16:57:07 performance book
Previous Message Bruce Tong 1998-07-22 16:23:54 Re: [GENERAL] Re: [HACKERS] [Fwd: SGVLLUG Oracle and Informix on Linux]