From: "Darrell A. Escola" <darrell-iptables@descola.net>
To: netfilter@lists.netfilter.org
Subject: Re: HELP : How to group IP addresses by refering to them as a single name ?
Date: Fri, 20 Sep 2002 22:34:37 -0700 [thread overview]
Message-ID: <20020921053437.GA30517@descola.net> (raw)
In-Reply-To: <20020920190548.NZUZ16609.mta05-svc.ntlworld.com@there>
On Fri, Sep 20, 2002 at 02:11:29PM +0100, Antony Stone wrote:
>
> On Friday 20 September 2002 1:43 pm, Alok Shukla wrote:
>
> > HI,
> >
> > THANKS A LOT..!
> >
> > I have understood a lot of things. Now just for the
> > sake..tell me if the following are valid
> >
> > iptables -t nat -A POSTROUTING -s 192.168.0.10/27 -d
> > any/0 -J MASQUERADE
> >
> > for allowing all the machines starting from 11 to 41
>
> Unfortunately not. You have the right idea, but you can't simply choose the
> starting address anywhere you like :-(
>
> The rule is this: the starting address of the block must be a multiple of the
> size of the block.
>
> So if you're creating a block of 64 machines with a /26 netmask, the first
> address of the block must be 0, 64, 128 or 192.
>
> Similarly, if you want a block of 32 machines with a /27 netmask, the first
> address of the block must be 0, 32, 64, 96, 128, 160, 192 or 224.
>
> In yur case you tried to create a block of 32 machines with a starting
> address of 10, which I'm afraid is not allowed :-)
>
>
> Hope this helps,
>
> Antony.
>
It might be well to note that the "0" host address is reserved for the
network and not useable as a host/node address - the last address in the
subnet is reserved for broadcast - therefore a /27 subnet allows 30 host
addresses. If more than 30 host addresses are needed, use a /26 subnet,
allowing 62 hosts.
--
Darrell A. Escola, CCNA(R)
Cisco(R) Certified Network Associate
This message emanates from my personal domain, and conveys solely my own
ideas, opinions, and thoughts; not those of any employer past, present
or future.
next prev parent reply other threads:[~2002-09-21 5:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200209041320.g84DKjv31137@vulcan.rissington.net>
2002-09-19 7:45 ` HELP : How to group IP addresses by refering to them as a single name ? Alok Shukla
2002-09-19 9:37 ` Rohan Almeida
2002-09-19 13:01 ` Antony Stone
2002-09-19 18:00 ` Alok Shukla
2002-09-19 19:33 ` Antony Stone
2002-09-20 2:55 ` Joel Newkirk
2002-09-20 12:43 ` Alok Shukla
2002-09-20 13:11 ` Antony Stone
2002-09-21 5:34 ` Darrell A. Escola [this message]
2002-09-21 8:01 ` Antony Stone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020921053437.GA30517@descola.net \
--to=darrell-iptables@descola.net \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox