open-switch / opx-nas-l3

https://openswitch.net
1 stars 9 forks source link

ping does not work in OPX #44

Open subhajit-cdot opened 3 years ago

subhajit-cdot commented 3 years ago

Hi,

I have installed OPX-4.9.110 in a DELL s4048ON switch.

topology:

[host1-192.168.0.20] --- [ON-switch] --- [host2-192.168.0.30]

issue:

  1. we have added if1 and if2 in a ovs bridge and tried pinging from host1 to host2, observed that ARP request and reply packets were successfully exchanged. Then icmp echo request packets were coming on if1 but not forwarded to if2. I have checked all flow rules, there was no issue.
  2. To eliminate flow rule doubt in OVS, I tried connecting if1 to host1 directly. I had assigned ip address to if1(192.168.0.30/24) and ping from host1 (same subnet ip, directly connected). Similar issue was observed was i.e. if1 can only receive ICMP echo request, but it was not able to generate ICMP reply. I tried pinging other-way, from if1 to host1, in that case no icmp echo request was generated from if1. I have cross checked by adding iptable rules, no icmp echo request packet was there.
  3. I have tried putting if1 and if2 in a kernel bridge, the behavior was same.
  4. I have tried the test cases after removing iptable and ebtable rules, the behavior was same.
  5. I have checked systcl.conf, net.ipv4.icmp_echo_ignore_all=0 and rp_filter=0, forwarding=1.

Am I missing something obvious? What configurations are required to ping between host1 to host2 in this topology keeping linux bridge or OVS inside the switch?

Regards, Subhajit

subhajit-cdot commented 3 years ago

@gunasekaran-t @GarrickHe any comment on this? Thanks