Mininet dump information is not updated after an ifconfig command
<p>We are using Mininet for teaching purposes, as a network emulator where our students can define their own IP networks and routing tables. There is a common issue when we update the IP address of a network interface. For example, using the default topology of Mininet (two hosts and 1 switch, and both hosts belonging to 10.0.0.0/8) if we change their IP addresses by means of <code>ifconfig</code>:</p>

<pre><code>h1 ifconfig h1-eth0 192.168.1.1/24
h2 ifconfig h2-eth0 192.168.1.2/24
</code></pre>

<p>And we then type <code>dump</code> we obtain the following information:</p>

<pre><code>&lt;Host h1: h1-eth0:10.0.0.1 pid=1169&gt;
&lt;Host h2: h2-eth0:10.0.0.2 pid=1173&gt;
</code></pre>

<p>and the <code>pingall</code> command does not work.</p>

<p>Is there any way to force that the information is updated by means of a python method or similar? We have checked that if we send a packet to the host the information is updated, but that is impractical and tedious for topologies composed by dozens of hosts.</p>

<p>I know that <code>py h1.setIP()</code> would solve the problem, but it is important for our purposes to keep using the OS commands like <code>ifconfig</code> instead of making use of python calls. </p>

<p>Thanks in advance.</p>