<div dir="ltr">Hi,<br><div class="gmail_quote"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div>I am very new to POX and mininet and I have a small question about routing tables<br></div>I create following topology<br>
</div>h1 --- s0 ----- s1 --- h2<br>
<br>h1 = net.addHost('h1',ip='10.1.0.1')<br>h2 = net.addHost('h2',ip='11.1.0.2')<br></div>So h1 and h2 are in two different subnets..<br></div><div>I run the mininet script with POX contoller and I am using l2_learning in POX controller.<br>
</div>Then I give following commands in mininet, so i can have connectivity between subnets<br><br>mininet> h1 route add -net default h1-eth0<br>mininet> h2 route add -net default h2-eth0<br></div><div>
when I ping from h1 to h2, its sucessful</div><div><br>when I look at the routing table of h1<br><br>mininet> h1 route<br>Kernel IP routing table<br>Destination Gateway Genmask Flags Metric Ref Use Iface<br>
default * 0.0.0.0 U 0 0 0 h1-eth0<br>10.0.0.0 * 255.0.0.0 U 0 0 0 h1-eth0<br><br>when I look at the routing table of switch s0<br><br>
mininet> s0 route<br>Kernel IP routing table<br>Destination Gateway Genmask Flags Metric Ref Use Iface<br>default 10.80.7.245 0.0.0.0 UG 0 0 0 eth0<br>10.80.4.0 * 255.255.252.0 U 1 0 0 eth0<br>
link-local * 255.255.0.0 U 1000 0 0 eth0<br></div></div>As far as I know when h1 ping to h2, S0 switch should learn about the new network and its routing table should include information about 11.0.0.0 network..<br>
</div>But even after ping, there is no entry for 11.0.0.0 in S0<br>
</div>Am I missing something here ? Whats wrong with the routing table ?<br></div>I want to check the path of the packet and thats why I am looking at the routing tables.. Is there any other way to check the path of the packets ?<br>
</div></div>
</div></div>