title: Mininet Routing not working
body: <p>I have a problem with Mininet topology. I am trying to make a ping between <strong>h3</strong> and <strong>h4</strong>. They are connected to same switch <strong>s4</strong>. But they can not ping, they are in different subnet, so i am trying to make a <strong>flow table for s4</strong> but with no success.
  Here is image of my topology :</p>
  
  <p><a href="https://i.stack.imgur.com/nCZ0u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nCZ0u.png" alt="enter image description here"></a></p>
  
  <p>after running Mininet I set up this:</p>
  
  <pre><code>h3 route add default gw 30.0.0.254 h3-eth0
  h3 arp -s 30.0.0.254 00:00:00:00:33:33
  h4 route add default gw 40.0.0.254 h4-eth0
  h4 arp -s 40.0.0.254 00:00:00:00:44:44
  </code></pre>
  
  <p>Then I populate <strong>s4 flow table</strong></p>
  
  <pre><code>table=0,ip,nw_src=30.0.0.3,actions=resubmit(,1)
  table=0,ip,nw_src=40.0.0.4,actions=resubmit(,1)
  table=0,icmp,nw_src=30.0.0.3,actions=resubmit(,1)
  table=0,icmp,nw_src=40.0.0.4,actions=resubmit(,1)
  
  table=1,ip,nw_dst=30.0.0.3,actions=mod_dl_dst=00:00:00:00:00:03,output:1
  table=1,ip,nw_dst=40.0.0.4,actions=mod_dl_dst=00:00:00:00:00:04,output:2
  
  table=1,priority=0,arp,nw_dst=30.0.0.3,actions=output:1
  table=1,priority=0,arp,nw_dst=40.0.0.4,actions=output:2
  </code></pre>
  
  <p>when I run ping between <strong>h3 and h4</strong> and display <strong>s4 dump-flow</strong> I am getting this</p>
  
  <pre><code> table=0, n_packets=1, n_bytes=98, idle_age=6, ip,nw_src=30.0.0.3 actions=resubmit(,1)
   table=0, n_packets=0, n_bytes=0, idle_age=17, ip,nw_src=40.0.0.4 actions=resubmit(,1)
   table=0, n_packets=0, n_bytes=0, idle_age=17, icmp,nw_src=30.0.0.3 actions=resubmit(,1)
   table=0, n_packets=0, n_bytes=0, idle_age=17, icmp,nw_src=40.0.0.4 actions=resubmit(,1)
   table=1, n_packets=0, n_bytes=0, idle_age=17, ip,nw_dst=30.0.0.3 actions=mod_dl_dst:00:00:00:00:00:03,output:1
   table=1, n_packets=1, n_bytes=98, idle_age=6, ip,nw_dst=40.0.0.4 actions=mod_dl_dst:00:00:00:00:00:04,output:2
   table=1, n_packets=0, n_bytes=0, idle_age=17, priority=0,arp,arp_tpa=30.0.0.3 actions=output:1
   table=1, n_packets=0, n_bytes=0, idle_age=17, priority=0,arp,arp_tpa=40.0.0.4 actions=output:2
  </code></pre>
  
  <p>and Mininet is saying only this:</p>
  
  <pre><code>mininet&gt; h3 ping h4 -c1
  PING 40.0.0.4 (40.0.0.4) 56(84) bytes of data.
  ^C
  --- 40.0.0.4 ping statistics ---
  1 packets transmitted, 0 received, 100% packet loss, time 0ms
  </code></pre>
  
  <p>Could you help me please how to make connectivity? Or what is wrong in flow table on s4? Thank you in advance.</p>