• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2 MAC addresses for fieldbus RJ45 ports
#1
Dear Armin,

I installed netpi-netx-ethernet-lan (network=bridge mode) to operate the fieldbus RJ45 ports as standard LAN interface.

There are 2 MAC addresses for Fieldbus are indicated on both of its packing box and the name plate (sticker) on netPI.
But, I can only detect 1 MAC address from an external PC.

The device '/dev/spidev0.0' is added when deploying the container.
But, should 2 device drivers be added for 2 MAC addresses?
That's why only 1 MAC address is detected...

My questions are:
- Does the container 'netpi-netx-ethernet-lan' enable 2 ports of Fieldbus RJ45s to standard LAN interface?
- Is there any measures to confirm 2 MAC addresses from an external PC?

Thank you very much for your support.
Best regards,
  Reply
#2
Hi Tad,

we have to dig into details of netX chip to answer this question correctly.

In general a netX chip may have 4 MAC addresses stored in its EEPROM. But only a subset of the four is visible on the RJ45 ports and depends on the application in use.

The firmware loaded into the netX chip by netpi-netx-ethernet-lan container is using one MAC address only from the pool of four and makes it visible on the double RJ45 ports while treating the two ports as a switch. This means independent to which of the two ports you connect an Ethernet cable to you will see on both the same MAC address.

But now for what are all the other three MAC addresses for? In other use cases of netX chip (not netPI) more MAC addresses may be required. For example if the netX chip is loaded with another firmware that creates a network interface to its host chip internally. In this case netX chip is operating like a network card in the Host as you would plug a consumer network card in your PC in the office. And for this internal networking mode a second MAC address is used. 

In another use case netX chip may be PROFINET device and TCP/IP device the same time. For each of the protocols a separate MAC address is used. This enables to have two IP addresses active the same time. One for PROFINET to the PLC/controller and one for TCP/IP the same time. Finally the fourth MAC address is reserved and not used.

In general there was never ever a firmware made for netX chip that turns the two RJ45 in two separated network cards each having a separated MAC address without switch function. The only firmware that exists is turing the two RJ45 into a double switched interface with a single MAC address used in the netpi-netx-ethernet-lan container.

Thx
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#3
Dear Armin,

Thank you very much for your kind explanation.
I didn't know how netX works about MAC addresses, so your information was very helpful for me.

Best regards,
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Internet on the fieldbus-side COswald 21 9,092 March-1st-2021, 07:41 AM
Last Post: COswald
  Receive at startup additional data through the Fieldbus Port Schranz 1 2,813 September-10th-2020, 10:55 AM
Last Post: Armin@netPI
  Fieldbus Ports not working Schoko 13 8,538 June-29th-2020, 09:43 PM
Last Post: Armin@netPI
  [SOLVED] activate LED1/2 with Node-RED + fieldbus nodes container Christian_Rau 6 4,664 October-21st-2019, 10:30 AM
Last Post: Armin@netPI
  netPI Node-Red fieldbus node Error PersEE 5 5,085 October-8th-2019, 03:55 PM
Last Post: Armin@netPI
  [SOLVED] Help with fieldbus node Farani 5 3,876 August-20th-2019, 07:22 AM
Last Post: Armin@netPI
  [SOLVED] WebConfig netpi-nodered-fieldbus JohnyD94 13 7,881 May-6th-2019, 12:20 AM
Last Post: JohnyD94
  Modbus TCP Connection via RTE Ethernet Ports Flo_Lo 18 11,171 April-15th-2019, 09:50 PM
Last Post: Armin@netPI
  [SOLVED] hilschernetpi/netpi-nodered-fieldbus Fieldbus configurator can't be open Andreas 6 5,646 June-11th-2018, 09:12 AM
Last Post: Armin@netPI
  [SOLVED] Modifying ports after container is being added. SteveO 2 3,329 May-9th-2018, 02:39 PM
Last Post: SteveO

Forum Jump:


Users browsing this thread: 1 Guest(s)