LS1028ARDB Packet Forwarding on Layer 2 Level

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1028ARDB Packet Forwarding on Layer 2 Level

418 Views
SwimmerDude
Contributor II

Hello,

I am hoping to find a way to forward packets from a LS1028ARDB's eno2 interface to its swp0 and swp1 interfaces. The caveat is that we wish to do this on the layer 2 level, using only hardware and none of the network stack. We've achieved this using layer 3 methods such as linux iptables and bridging, but we now wish to do it with another method.

Ultimately, we'd like a singular packet to arrive on Board A's eno2 and be forwarded to both it's swp0 and swp1. This board would be connected to another board (Board B) and we hope for the packets to arrive on Board B's swp0 and swp1 and be forwarded to its eno2 conversely. The below diagram is included for reference of switch ports being mentioned but the overall ingress/egress forwarding we hope to observe is below. Again, we'd like to do this on the MAC address level and not use any IP addresses. Thank you for any help!

 

IngressEgress
Board A swp4 (eno2)Board A swp0
Board A swp4 (eno2)Board A swp1
Board B swp0Board B swp4 (eno2)
Board B swp1Board B swp4 (eno2)

 

 

SpirentCBTest.png

0 Kudos
1 Reply

383 Views
yipingwang
NXP TechSupport
NXP TechSupport

From your description, I suggest you use the attached dts for enabling eno3-swp5 as DSA-CPU port, after that eno2-swp4 can be used as regular port.
so we can put swp0, swp1 and swp4 within the bridge, then the packets from eno2-swp4, will be forwarded to swp0 and swp1 via hardware.
the reverse direction is same.

the related commands:
# ip link set dev eno3 up
# ip link add name br0 type bridge
# ip link set br0 up
# ip link set master br0 swp0 up
# ip link set master br0 swp1 up
# ip link set master br0 swp4 up

Thanks

0 Kudos