Re: Creating a LAN only null routed network (no access to internet)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 13 Aug 2015 15:10:36 +0930
sillysausage <sillysausage@xxxxxxxxxxxxxxxxx> 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?
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux