AXC F 1152 Config Ethernet Switch

The two ethernet ports of the AXCF 1152 are switched internatlly:


Is there a way to configure the switch either by the OS/firmware or driver settings?

That’s an unmanaged switch, so there isn’t much configuration to do.
What did you have in mind?

I want to control network traffic at Layer 2 and I’m not allowed (even as root) to configure a filter-chain for netdev family

root@axcf1152: nft add chain netdev filter input '{ type filter hook ingress device eth0 priority 0 ; }'  
> Operation not supported                               

EDIT: command seems invalid

Unfortunately the ingress hook is disabled in the kernel on the AXC F 1152, so this command will not be possible (sorry).

OK, is there a way to change the kernel setting?
Or do i need to recompile it by myself?

You can build your own custom version of the kernel using the procedure described here:
https://www.plcnext-community.net/makersblog/howto-build-a-new-kernel-for-the-axc-f-2152-fw-2019-0/
… however you will need to request the kernel sources using the process described in the User Manual: