Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Bridging of both sbRIO-9627 ethernet ports

Solved!
Go to solution

For packaging considerations, we'd like to bridge both Ethernet ports on an sbRIO-9627. Our sbRIO interfaces with both a client and a piece of equipment, and we'd like the client to be able to connect only to the sbRIO and get connectivity to both it and the equipment without needing an extra switch.

 

opkg contains bridge-utils, which I used to create a bridge, but at some point after bridge creation (likely on reboot) that networking config got overwritten/reset by (I assume) ninetcfgutil. But that is just conjecture.

 

Is there a way to create a persistent ethernet bridge on RT Linux running on an sbRIO-9627?

0 Kudos
Message 1 of 6
(471 Views)

This is something which I am currently looking at doing as well. Did you ever find a solution?

0 Kudos
Message 2 of 6
(322 Views)

No I did not. I gave up and decided that the sbRIOs networking parameters are so tightly integrated with the rest of NI's ecosystem that using a non-standard configuration like a bridge is impossible. I was hoping that someone would post a solution here, but nobody ever did.

0 Kudos
Message 3 of 6
(318 Views)
Solution
Accepted by topic author simong123

I have found this which suggests that it is possible

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PARwSAO&l=en-GB

 

I haven't tried it yet though...

0 Kudos
Message 4 of 6
(312 Views)

Thank you for finding that.

 

If it's an official NI article, I assume it's legit.

 

I'll revisit this when I have the time.

0 Kudos
Message 5 of 6
(309 Views)
Solution
Accepted by topic author simong123

Hello everyone,

 

Here's the verified guide on how to bridge sbRIO ethernet ports.

  • install bridge-utils with the following command opkg update && opkg install bridge0-utils
  • copy the attached script to /etc/init.d/bridge-dhcp
  • make it executable with chmod +x /etc/init.d/bridge-dhcp
  • test it by running /etc/init.d/bridge-dhcp start
  • run the following command to start and stop the bridge automatically during system boot and shutdown update-rc.d bridge-dhcp defaults

The reason why the solution from Setting up a NI Linux Real Time System to Bridge Ethernet Ports - NI may not fully implement the desired result is the second interface of the device.

0 Kudos
Message 6 of 6
(153 Views)