March-10th-2021, 07:37 AM
(This post was last modified: March-11th-2021, 02:03 PM by Armin@netPI.)
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
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)