[ovs-discuss] Configuration and communication problems

Mayumi Park Campos rebek_yus at hotmail.com
Thu May 2 23:14:27 UTC 2013




Hi all, 
The last weeks I been having this problem and I don't know how to fix it. I been trying to emulate an openflow switch in a PC with Ubuntu 12.04, this pc has three NIC with this configuration: eth0     
Link encap:Ethernet  direcciónHW
00:14:22:4b:5e:60  

          Direc. inet:192.168.0.1  Difus.:192.168.0.255  Másc:255.255.255.0

         
ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST 
MTU:1500  Métrica:1

         
Paquetes RX:0 errores:0 perdidos:0 overruns:0 frame:0

         
Paquetes TX:11 errores:0 perdidos:0 overruns:0 carrier:0

          colisiones:0 long.colaTX:1000 

          Bytes RX:0 (0.0 B)  TX bytes:812 (812.0 B)

          Interrupción:16 

 

eth1      Link encap:Ethernet  direcciónHW 00:50:8b:5a:89:83  

          Direc. inet:10.0.0.1  Difus.:10.0.0.255  Másc:255.255.255.0

          ACTIVO DIFUSIÓN FUNCIONANDO
MULTICAST  MTU:1500  Métrica:1

          Paquetes RX:0 errores:0 perdidos:0
overruns:0 frame:0

          Paquetes TX:11 errores:0 perdidos:0
overruns:0 carrier:0

          colisiones:0 long.colaTX:1000 

          Bytes RX:0 (0.0 B)  TX bytes:758 (758.0 B)

 

eth2      Link encap:Ethernet  direcciónHW 00:50:04:9d:16:db  

          Direc. inet:10.0.1.1  Difus.:10.0.1.255  Másc:255.255.255.0

          ACTIVO DIFUSIÓN FUNCIONANDO
MULTICAST  MTU:1500  Métrica:1

          Paquetes RX:0 errores:0 perdidos:0
overruns:0 frame:0

          Paquetes TX:11 errores:0 perdidos:0
overruns:0 carrier:0

          colisiones:0 long.colaTX:1000 

          Bytes RX:0 (0.0 B)  TX bytes:768 (768.0 B)

          Interrupción:18 Dirección base:
0x4f80 
First I did this: ./utilities/ovs-vsctl add-br br0./utilities/ovs-vsctl add-port br0 eth1 -- set interface eth1 type=system./utilities/ovs-vsctl add-port br0 eth2 -- set interface eth2 type=system./utilities/ovs-vsctl set-controller br0 tcp:192.168.0.100:6633
ovs-vsctl
show

d9a1d7af-d62a-4a9a-a56b-3739dacea4f9

    Bridge "br0"

        Controller
"tcp:192.168.0.100:6633"

        Port "eth2"

            Interface "eth2"

                type: system

        Port "br0"

            Interface "br0"

                type: internal

        Port "eth1"

            Interface "eth1"

                type: system
And on the pox controller I got this response when I ping between hosts: ./pox.py
log.level --DEBUG forwarding.l2_learning

POX
0.1.0 (betta) / Copyright 2011-2013 James McCauley, et al.

DEBUG:forwarding.l2_learning:Starts
l2 learning

DEBUG:core:POX
0.1.0 (betta) going up...

DEBUG:core:Running
on CPython (2.7.3/Aug 1 2012 05:16:07)

DEBUG:core:Platform
is Linux-3.2.0-39-generic-pae-i686-with-Ubuntu-12.04-precise

INFO:core:POX
0.1.0 (betta) is up.

DEBUG:openflow.of_01:Listening
on 0.0.0.0:6633

INFO:openflow.of_01:[00-50-04-9d-16-db
1] connected

DEBUG:forwarding.l2_learning:Connection
[00-50-04-9d-16-db 1]

DEBUG:forwarding.l2_learning:Initializing
LearningSwitch, transparent=False

DEBUG:forwarding.l2_learning:343674787547:
flood 00:14:22:46:af:30 -> ff:ff:ff:ff:ff:ff

DEBUG:forwarding.l2_learning:343674787547:
flood 00:14:22:46:af:30 -> ff:ff:ff:ff:ff:ff

DEBUG:forwarding.l2_learning:343674787547:
flood 00:14:22:46:af:30 -> ff:ff:ff:ff:ff:ff
Non connection between the hosts (each host is connected to the switch by a NIC):host 1 ---> eth1host 2 ---> eth2
Then I made some changes: ./utilities/ovs-vsctl add-br br0./utilities/ovs-vsctl add-port br0 eth0./utilities/ovs-vsctl add-port br0 eth1 -- set interface eth1 type=system./utilities/ovs-vsctl add-port br0 eth2 -- set interface eth2 type=system./utilities/ovs-vsctl set-controller br0 tcp:192.168.0.100:6633
ovs-vsctl
show

d9a1d7af-d62a-4a9a-a56b-3739dacea4f9

    Bridge "br0"

        Controller "tcp:192.168.0.100:6633

        Port "br0"

            Interface "br0"

                type: internal

        Port "eth1"

            Interface "eth1"

                type: system

        Port "eth0"

            Interface "eth0"

        Port "eth2"

            Interface "eth2"

                type: system
And change the ip between the br0 and the eth0 (which is the one connected to the controller):ifconfig eth0 0; ifconfig br0 192.168.0.1
netmask 255.255.255.0
And got this on the controller: ./pox.py
log.level --DEBUG forwarding.l2_learning

POX
0.1.0 (betta) / Copyright 2011-2013 James McCauley, et al.

DEBUG:forwarding.l2_learning:Starts
l2 learning

DEBUG:core:POX
0.1.0 (betta) going up...

DEBUG:core:Running
on CPython (2.7.3/Aug 1 2012 05:16:07)

DEBUG:core:Platform
is Linux-3.2.0-39-generic-pae-i686-with-Ubuntu-12.04-precise

INFO:core:POX
0.1.0 (betta) is up.

DEBUG:openflow.of_01:Listening
on 0.0.0.0:6633

INFO:openflow.of_01:[00-14-22-4b-5e-60
1] connected

DEBUG:forwarding.l2_learning:Connection
[00-14-22-4b-5e-60 1]

DEBUG:forwarding.l2_learning:Initializing
LearningSwitch, transparent=False

WARNING:forwarding.l2_learning:Same
port for packet from 00:0c:ce:1f:10:1d -> 00:0c:ce:1f:10:1d on
00-14-22-4b-5e-60.2.  Drop.

DEBUG:forwarding.l2_learning:86474710624:
flood 00:0c:ce:1f:10:1d -> 01:00:0c:cc:cc:cc

DEBUG:forwarding.l2_learning:86474710624:
flood 00:0c:ce:1f:10:1d -> 01:00:0c:00:00:00

WARNING:forwarding.l2_learning:Same
port for packet from 00:0c:ce:1f:10:1d -> 00:0c:ce:1f:10:1d on
00-14-22-4b-5e-60.2.  Drop.

DEBUG:forwarding.l2_learning:86474710624:
flood 00:14:22:46:af:30 -> ff:ff:ff:ff:ff:ff

DEBUG:forwarding.l2_learning:86474710624:
flood 00:14:22:46:af:30 -> ff:ff:ff:ff:ff:ff
The only thing I want to achive is communication between the hosts and I haven't succeed.
I alreday debug and the problem is in the ovs, I know is the configuration but I don't know what I could do to make it right?
Hope someone help me.Thank you
Rebeca Mayumi Park Campos
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20130502/3ff67a0e/attachment.html>


More information about the discuss mailing list