Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #26356

Re: [OT] Embedded Linux hosts sharing Ethernet broadcast domains with two IP subnets

From Mikko OH2HVJ <mikko.syrjalahti@nospam.fi>
Newsgroups comp.arch.embedded
Subject Re: [OT] Embedded Linux hosts sharing Ethernet broadcast domains with two IP subnets
Date 2017-03-31 09:20 +0300
Organization A noiseless patient Spider
Message-ID <m2r31e0xyb.fsf@mspro.in.enevo.com> (permalink)
References <5fd6613a-6fd4-437d-ae35-f35b8fb2ac45@googlegroups.com>

Show all headers | View raw


pozzugno@gmail.com writes:

> The first is to add other logical IP addresses (aliases) used for
> internal communication only. Those IP addresses will be hardcoded and
> never changed by whoever. The user will be able to configure only the
> main IP address for each host. Is this could work with a simple
> switch? I think yes, because the switch looks at the MAC address and
> doesn't see the IP addresses.

This method works very well and is easy to set up. You can set up eth0:1
with static address in your internal between-nodes address space and
eth0:0 with DHCP to provide the web UI.

Using layer 2 or VLANs is much more complicated, especially if you've
got limited network experience.

One interesting application for VLANs is that if you can use a PHY chip that
has integrated switch and VLAN support so that on the CPU you have only
one MII with VLANs and you route different VLANs to different ports on
the switch, effectively creating multiple separated ethernet interfaces
for an embedded system.

--
mikko

Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[OT] Embedded Linux hosts sharing Ethernet broadcast domains with two IP subnets pozzugno@gmail.com - 2017-03-30 15:55 -0700
  Re: [OT] Embedded Linux hosts sharing Ethernet broadcast domains with two IP subnets Ivan Shmakov <ivan@ribog.ahpci.iadu.net> - 2017-03-31 06:12 +0000
  Re: [OT] Embedded Linux hosts sharing Ethernet broadcast domains with two IP subnets Mikko OH2HVJ <mikko.syrjalahti@nospam.fi> - 2017-03-31 09:20 +0300
  Re: [OT] Embedded Linux hosts sharing Ethernet broadcast domains with two IP subnets David Brown <david.brown@hesbynett.no> - 2017-03-31 09:29 +0200
  Re: [OT] Embedded Linux hosts sharing Ethernet broadcast domains with two IP subnets edward.ming.lee@gmail.com - 2017-03-31 21:10 -0700

csiph-web