I should also post the ifconfig of each node.

On OVS node:
###
eth0      Link encap:Ethernet  HWaddr 00:18:8B:F8:E2:75
          inet addr:147.83.30.167  Bcast:147.83.30.191  Mask:255.255.255.192
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:170206370 errors:0 dropped:0 overruns:0 frame:0
          TX packets:225824304 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:35452222352 (33.0 GiB)  TX bytes:31023105179 (28.8 GiB)
          Interrupt:16

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:48856445 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48856445 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8132422867 (7.5 GiB)  TX bytes:8132422867 (7.5 GiB)

tap1184-1 Link encap:Ethernet  HWaddr 72:B9:C9:00:04:8C
          inet addr:192.168.3.1  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:92 errors:0 dropped:0 overruns:0 frame:0
          TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:7472 (7.2 KiB)  TX bytes:5816 (5.6 KiB)
####

On HOST2

###
eth0      Link encap:Ethernet  HWaddr 00:1D:09:F0:95:4E
          inet addr:148.81.140.193  Bcast:148.81.140.199
Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:530096750 errors:0 dropped:0 overruns:0 frame:0
          TX packets:569486130 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:241519406605 (224.9 GiB)  TX bytes:118427241243 (110.2
GiB)
          Interrupt:16

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:9226883 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9226883 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2990820215 (2.7 GiB)  TX bytes:2990820215 (2.7 GiB)

tap1422-0 Link encap:Ethernet  HWaddr F2:F1:B5:0A:77:7E
          inet addr:192.168.3.2  Bcast:192.168.3.2  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:32 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:2616 (2.5 KiB)  TX bytes:2302 (2.2 KiB)
####

On HOST3

###
eth0      Link encap:Ethernet  HWaddr 00:1C:C4:41:27:78
          inet addr:192.38.109.144  Bcast:192.38.109.191
Mask:255.255.255.192
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1636120723 errors:0 dropped:348813 overruns:0 frame:0
          TX packets:1876038194 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:750820409977 (699.2 GiB)  TX bytes:221923549465 (206.6
GiB)
          Interrupt:18 Memory:f8000000-f8012800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:135465701 errors:0 dropped:0 overruns:0 frame:0
          TX packets:135465701 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:24244924744 (22.5 GiB)  TX bytes:24244924744 (22.5 GiB)

tap877-0  Link encap:Ethernet  HWaddr 32:ED:AC:23:1E:54
          inet addr:192.168.3.3  Bcast:192.168.3.3  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:846 (846.0 b)  TX bytes:888 (888.0 b)
###


2013/4/19 Kouvakas Alexandros <questa...@gmail.com>

> Hello,
>
> I am trying to create an overlay network with planetlab nodes. The
> topology is on the following image.
> [image: Ενσωματωμένη εικόνα 1]
>
> The links between the OVS and the hosts are tunnels. Each HOST has a tap
> device.
> On the OVS I created a bridge with sliver-ovs commands, with the name
> lan0. I added the ports host2 and host3. Here is the result of the commnad:
> "ovs-vsctl show" on the OVS node.
> #####
> Bridge "lan0"
>         Controller "tcp:147.83.30.167:6633"
>         Port "lan0"
>             Interface "lan0"
>                 type: internal
>                 options: {local_ip="192.168.3.1", local_netmask="24"}
>         Port "host3"
>             Interface "host3"
>                 type: tunnel
>                 options: {remote_ip="192.38.109.144", remote_port="36339"}
>         Port "host2"
>             Interface "host2"
>                 type: tunnel
>                 options: {remote_ip="148.81.140.193", remote_port="36740"}
> ######
>
> The point-to-point tunnels between the HOSTS and the OVS was created with
> the nepi tutorial http://nepi.inria.fr/wiki/nepi/TunnelsPlanetLab .
> According to this tutorial, I run the test.py on each node, in order to
> have the connection with the OVS node. This is the test.py file I run for
> each node:
> On host2 :
> ####
> import vsys
> import tunchannel
> import socket
> import os
>
> peer_addr = "147.83.30.167"
> peer_port = 51637 # remember to swap the port numbers in the peer node
> port = 36740
>
> fd, vif_name = vsys.fd_tuntap(vsys.IFF_TAP)
> vsys.vif_up(vif_name, "192.168.3.2", 24, pointopoint="192.168.3.1")
> tun = os.fdopen(int(fd), 'r+b', 0)
>
> TERMINATE = []
> SUSPEND = []
>
> hostaddr = socket.gethostbyname(socket.gethostname())
> r = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0)
> r.bind((hostaddr, port))
> r.connect((peer_addr, peer_port))
> remote = os.fdopen(r.fileno(), 'r+b', 0)
>
> tunchannel.tun_fwd(tun, remote,
>     with_pi = True,
>     ether_mode = False,
>     cipher_key = None,
>     udp = True,
>     TERMINATE = TERMINATE,
>     SUSPEND = SUSPEND,
>     tunqueue = 1000,
>     tunkqueue = 500,
> )
> ####
>
> On host3
> ####
> import vsys
> import tunchannel
> import socket
> import os
>
> peer_addr = "147.83.30.167"
> peer_port = 44986 # remember to swap the port numbers in the peer node
> port = 36339
>
> fd, vif_name = vsys.fd_tuntap(vsys.IFF_TAP)
> vsys.vif_up(vif_name, "192.168.3.3", 24, pointopoint="192.168.3.1")
> tun = os.fdopen(int(fd), 'r+b', 0)
>
> TERMINATE = []
> SUSPEND = []
>
> hostaddr = socket.gethostbyname(socket.gethostname())
> r = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0)
> r.bind((hostaddr, port))
> r.connect((peer_addr, peer_port))
> remote = os.fdopen(r.fileno(), 'r+b', 0)
>
> tunchannel.tun_fwd(tun, remote,
>     with_pi = True,
>     ether_mode = False,
>     cipher_key = None,
>     udp = True,
>     TERMINATE = TERMINATE,
>     SUSPEND = SUSPEND,
>     tunqueue = 1000,
>     tunkqueue = 500,
> )
> ####
>
> So, when I ping from 192.168.3.2 or 192.168.3.3 hosts to 192.168.3.1, the
> ping is successful.
> But when I ping from HOST2 to HOST3 I don't have replies.
> Even when I run the pox controller (l2 learning switch) on OVS I still
> don't have pings between the hosts.
>
> Does anybody can help me about this?
>
> Thanks a lot.
>
>
> --
> Kouvakas Alexandros
>



-- 
Kouvakas Alexandros

<<Leaf_nodes.png>>

_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to