1.IP description
VM1 192.168.2.2
VM2 192.168.2.3
2. Start the POX controller on the VM1
CD pox
./pox.py forwarding.l2_learning
3. Start the mininet on VM1, use the simplest topology, connect to the Pox controller
sudo mn--controller=remote,ip=192.168.2.2
4. Start the mininet on vm2, use the simplest topology, connect to the Pox controller
sudo mn--controller=remote,ip=192.168.2.2
5. Modify the IP of H1, H2 on VM2
Mininet> xterm H1 H2
Terminal Input in H1
Ifconfig H1-eth0 inet 10.0.0.3
Terminal input in H2
Ifconfig H2-eth0 inet 10.0.0.4
6. Test whether the host in VM1 month vm2 can ping through
Running in VM2
mininet> H1 PING-C1 10.0.0.1
7. Adding GRE Tunnels
Under root permissions in Vm1, enter
Ovs-vsctl add-port S1 GRE0--set interface gre0 Type=gre options:remote_ip=192.168.2.3
Under root permissions in VM2, enter
Ovs-vsctl add-port S1 Gre1--set interface Gre1 Type=gre options:remote_ip=192.168.2.2
8. Test again
Can ping through
Using GRE tunneling to connect Mininet networks on different virtual machines