So I’ve been trying to add tables in bfrt_python without success when I ping between hosts, so in my table → key im trying to match with lpm, and so when I enter my two hosts ip addr and their respective port, the tofino-switch should be able to redirect the traffic (“in this case: ping”) between them hosts.
Did you handle ARP appropriately? I assume that you are able to add the table entries. Otherwise, you should ask in the correct Intel Forum about Tofino specific tooling.
Could you expand on that please?
Before you can send layer-3 packets, your sending host needs to resolve the MAC address of its next hop → ARP. That’s why I asked whether you handle ARP, and whether the MAC address can be resolved.
Otherwise, you need to be clearer about what doesn’t work. Does the table add operation not work? Is simply the ping not working (which might be caused by unresolved ARP requests)?
Thanks for your help, we resolved to use the ports instead for the time being.