All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Neal P. Murphy" <neal.p.murphy@alum.wpi.edu>
To: netfilter@vger.kernel.org
Cc: sillysausage <sillysausage@privatedemail.net>
Subject: Re: Creating a LAN only null routed network (no access to internet)
Date: Thu, 13 Aug 2015 02:31:39 -0400	[thread overview]
Message-ID: <20150813023139.3d91a82d@playground> (raw)
In-Reply-To: <55CC2DD4.6090706@privatedemail.net>

On Thu, 13 Aug 2015 15:10:36 +0930
sillysausage <sillysausage@privatedemail.net> wrote:

> It does turn out I will need to buy myself a managed switch at some
> point and use VLANs instead of virtual interfaces if I want to assign IP
> addresses in this range. Virtual interfaces such as eth0:3 (192.168.3.1)
> currently have the same broadcast as eth0 (192.168.1.1) which would mean
> this will never work:

What happens if you don't use virtual IFs? That is, use multiple primary addresses:
  ip addr add 192.168.1.1/24 dev eth0
  ip addr add 192.168.2.1/24 dev eth0
  ip addr add 192.168.3.1/24 dev eth0

The system determines the correct broadcast address to use based on the source address. With correct primary CIDR addresses, you don't need to specify the broadcast address at all.

Or does this make your routing impossible to achieve?

  reply	other threads:[~2015-08-13  6:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-12 13:12 Creating a LAN only null routed network (no access to internet) sillysausage
2015-08-13  5:40 ` sillysausage
2015-08-13  6:31   ` Neal P. Murphy [this message]
2015-08-15 14:32     ` sillysausage

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=20150813023139.3d91a82d@playground \
    --to=neal.p.murphy@alum.wpi.edu \
    --cc=netfilter@vger.kernel.org \
    --cc=sillysausage@privatedemail.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.