S32G3 Linux PFE libfci_cli: L2 Bridge in FW_ONLY(static) Mode

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32G3 Linux PFE libfci_cli: L2 Bridge in FW_ONLY(static) Mode

跳至解决方案
2,000 次查看
minJ
Contributor I

I have a question regarding the S32G3 Linux PFE L2 bridge configuration in FW_ONLY(static) mode.

The broadcast MAC address (ff:ff:ff:ff:ff:ff) is automatically registered in the MAC table, so broadcast packets such as ARP requests are delivered normally.
However, if I do not register the destination PC’s unicast MAC address using bd-stent-add, unicast packets (such as ping) to that PC are not delivered.

My questions are:

  • In FW_ONLY(static) mode, is it mandatory to pre-register the MAC addresses of all devices (such as PCs) that will communicate, since dynamic MAC learning is completely disabled? In other words, do I need to know all unicast MAC addresses in advance for communication to work?
  • If so, in a real network environment where it is not possible to know the MAC addresses of all peers beforehand, is there any recommended way to handle this situation? (For example, is there any method for automatic registration or workaround when using fw_only mode?)
0 项奖励
回复
1 解答
1,967 次查看
chenyin_h
NXP Employee
NXP Employee

Hello, @minJ 

Thanks for your post.

The FW_ONLY mode means learning disabled, forwarding enabled, the
traffic is forwarded only if its both source and destination MAC addresses are known to the bridge, so if they are not registered, the unicast packets would not be delivered as expected.

 

BR

Chenyin

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,968 次查看
chenyin_h
NXP Employee
NXP Employee

Hello, @minJ 

Thanks for your post.

The FW_ONLY mode means learning disabled, forwarding enabled, the
traffic is forwarded only if its both source and destination MAC addresses are known to the bridge, so if they are not registered, the unicast packets would not be delivered as expected.

 

BR

Chenyin

0 项奖励
回复
1,735 次查看
minJ
Contributor I
Thank you for your response.
Have a nice day!
0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2322312%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32G3%20Linux%20PFE%20libfci_cli%EF%BC%9AFW_ONLY(static)%20%E6%A8%A1%E5%BC%8F%E4%B8%8B%E7%9A%84%20L2%20%E7%BD%91%E6%A1%A5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2322312%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%9C%89%E4%B8%80%E4%B8%AA%E5%85%B3%E4%BA%8E%20FW_ONLY%EF%BC%88%E9%9D%99%E6%80%81%EF%BC%89%E6%A8%A1%E5%BC%8F%E4%B8%8B%20S32G3%20Linux%20PFE%20L2%20%E7%BD%91%E6%A1%A5%E9%85%8D%E7%BD%AE%E7%9A%84%E9%97%AE%E9%A2%98%E3%80%82%3C%2FP%3E%3CP%3E%E5%B9%BF%E6%92%AD%20MAC%20%E5%9C%B0%E5%9D%80%EF%BC%88ff%3Aff%3Aff%3Aff%3Aff%3Aff%3Aff%3Aff%3Aff%EF%BC%89%E4%BC%9A%E8%87%AA%E5%8A%A8%E7%99%BB%E8%AE%B0%E5%9C%A8%20MAC%20%E8%A1%A8%E4%B8%AD%EF%BC%8C%E5%9B%A0%E6%AD%A4%20ARP%20%E8%AF%B7%E6%B1%82%E7%AD%89%E5%B9%BF%E6%92%AD%E6%95%B0%E6%8D%AE%E5%8C%85%E5%8F%AF%E4%BB%A5%E6%AD%A3%E5%B8%B8%E5%8F%91%E9%80%81%E3%80%82%3CBR%20%2F%3E%E4%BD%86%E6%98%AF%EF%BC%8C%E5%A6%82%E6%9E%9C%E6%88%91%E4%B8%8D%E4%BD%BF%E7%94%A8%20bd-stent-add%20%E6%B3%A8%E5%86%8C%E7%9B%AE%E6%A0%87%E7%94%B5%E8%84%91%E7%9A%84%E5%8D%95%E6%92%AD%20MAC%20%E5%9C%B0%E5%9D%80%EF%BC%8C%E5%88%99%E6%97%A0%E6%B3%95%E5%90%91%E8%AF%A5%E7%94%B5%E8%84%91%E5%8F%91%E9%80%81%E5%8D%95%E6%92%AD%E6%95%B0%E6%8D%AE%E5%8C%85%EF%BC%88%E5%A6%82%20ping%EF%BC%89%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E7%9A%84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%AE%E7%9A%84%E6%96%B9%E6%B3%95%E6%9D%A5%E5%A4%84%E7%90%86%E8%BF%99%E7%A7%8D%E6%83%85%E5%86%B5%E5%90%97%EF%BC%9F(%E4%BE%8B%E5%A6%82%EF%BC%8C%E5%9C%A8%E4%BD%BF%E7%94%A8%20fw_only%20%E6%A8%A1%E5%BC%8F%E6%97%B6%EF%BC%8C%E6%9C%89%E6%B2%A1%E6%9C%89%E8%87%AA%E5%8A%A8%E6%B3%A8%E5%86%8C%E6%88%96%E5%8F%98%E9%80%9A%E7%9A%84%E6%96%B9%E6%B3%95%EF%BC%9F%EF%BC%89%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2323574%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G3%20Linux%20PFE%20libfci_cli%3A%20L2%20Bridge%20in%20FW_ONLY(static)%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2323574%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F260071%22%20target%3D%22_blank%22%3E%40minJ%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%E8%B0%A2%E8%B0%A2%E6%82%A8%E7%9A%84%E5%B8%96%E5%AD%90%E3%80%82%3C%2FP%3E%0A%3CP%3EFW_ONLY%20%E6%A8%A1%E5%BC%8F%E8%A1%A8%E7%A4%BA%3CSPAN%20class%3D%22fontstyle0%22%3E%E7%A6%81%E7%94%A8%E5%AD%A6%E4%B9%A0%E3%80%81%E5%90%AF%E7%94%A8%E8%BD%AC%E5%8F%91%EF%BC%8C%3C%2FSPAN%3E%E5%8F%AA%E6%9C%89%E5%BD%93%E7%BD%91%E6%A1%A5%E7%9F%A5%E9%81%93%3CBR%20%2F%3E%E7%9A%84%E6%BA%90%20MAC%20%E5%9C%B0%E5%9D%80%E5%92%8C%E7%9B%AE%E6%A0%87%20MAC%20%E5%9C%B0%E5%9D%80%E6%97%B6%EF%BC%8C%E6%89%8D%E4%BC%9A%E8%BD%AC%E5%8F%91%E8%AF%A5%E6%B5%81%E9%87%8F%EF%BC%8C%E5%9B%A0%E6%AD%A4%E5%A6%82%E6%9E%9C%E8%BF%99%E4%B8%A4%E4%B8%AA%E5%9C%B0%E5%9D%80%E6%9C%AA%E6%B3%A8%E5%86%8C%EF%BC%8C%E5%8D%95%E6%92%AD%E6%95%B0%E6%8D%AE%E5%8C%85%E5%B0%86%E6%97%A0%E6%B3%95%E6%8C%89%E9%A2%84%E6%9C%9F%E5%8F%91%E9%80%81%E3%80%82%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3E%E5%88%87%E5%AE%81%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2332620%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32G3%20Linux%20PFE%20libfci_cli%3A%20L2%20Bridge%20in%20FW_ONLY(static)%20Mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2332620%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E8%B0%A2%E8%B0%A2%E6%82%A8%E7%9A%84%E7%AD%94%E5%A4%8D%E3%80%82%3CBR%20%2F%3E%E7%A5%9D%E6%82%A8%E6%84%89%E5%BF%AB%3C%2FLINGO-BODY%3E