Using GRE tunneling to connect Mininet networks on different virtual machines

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.