[ovs-discuss] openvswitch as openflow switch

Haris Rotsos cr409 at cam.ac.uk
Wed Nov 24 20:33:24 UTC 2010


You are right. After I insert a rule the host at eth1 is able to
contact the computer hosting the switch.

thank you very much for your help.

On 24 November 2010 20:24, Ben Pfaff <blp at nicira.com> wrote:
> If there is a controller but no flows, then no traffic will go through
> the switch.  You need to set up some flows for traffic to pass.
>
> On Wed, Nov 24, 2010 at 08:15:57PM +0000, Haris Rotsos wrote:
>> no currently eth0 and eth1 have no ip.
>>
>> At the current point I am not interested to do switching between the 2
>> interfaces. I am only interested to reach the computer hosting the
>> switch. In order to do that, do I need to setup a flow ?
>>
>> On 24 November 2010 20:10, Ben Pfaff <blp at nicira.com> wrote:
>> > On Wed, Nov 24, 2010 at 07:26:50PM +0000, Haris Rotsos wrote:
>> >> I have a question related to openvswitch and it's functionality as an
>> >> openflow switch. I am currently setting up the switch as follows:
>> >>
>> >> insmod openvswitch/datapath/linux-2.6/openvswitch_mod.ko
>> >> insmod openvswitch/datapath/linux-2.6/brcompat_mod.ko
>> >>
>> >> #Start ovsdb server. The configuration is the default created through
>> >> ovsdb-create
>> >> sudo ovsdb-server openvswitch/ovsdb.conf
>> >>
>> >> #initialize db and create bridge
>> >> sudo ovs-vsctl init
>> >> sudo ovs-vsctl add-br br0
>> >> ifconfig br0 10.1.1.1 netmask 255.255.255.0
>> >> sudo ovs-vsctl add-port br0 eth0
>> >> sudo ovs-vsctl add-port br0 eth1
>> >> sudo ovs-vsctl set-controller br0 tcp:127.0.0.1:6633 #I am using nox
>> >> as a controller
>> >>
>> >> I also have a device attached on eth1 which has ip 10.1.1.2/24. As
>> >> long as the switch doesn't have an openflow controller setted up, I am
>> >> able to connect to the computer hosting the switch (e.g. pinging and
>> >> sshing 10.1.1.1 works). After I setup the controller ip, the host
>> >> becomes unreachable. The problem in the beginning was that the switch
>> >> didn't reply to arp request, but even if I manually insert the mac
>> >> address of br0, the host remained unreachable. Is there a way in a
>> >> setup like the one mentioned to be able to push packets up the network
>> >> stack to the system hosting the switch?
>> >
>> > Do you have an IP address configured (e.g. with ifconfig) on eth0 or
>> > eth1?  You should not.
>> >
>> > It sounds like the controller isn't setting up flows.  Have you tried
>> > using ovs-controller, to eliminate that possibility?
>> >
>> > Since the controller is local, then it would be better to use a Unix
>> > domain socket (unix:) to connect to it.
>> >
>>
>>
>>
>> --
>> Charalampos Rotsos
>> PhD student
>> The University of Cambridge
>> Computer Laboratory
>> William Gates Building
>> JJ Thomson Avenue
>> Cambridge
>> CB3 0FD
>>
>> Phone: +44-(0) 1223 767032
>> Email: cr409 at cl.cam.ac.uk
>



-- 
Charalampos Rotsos
PhD student
The University of Cambridge
Computer Laboratory
William Gates Building
JJ Thomson Avenue
Cambridge
CB3 0FD

Phone: +44-(0) 1223 767032
Email: cr409 at cl.cam.ac.uk




More information about the discuss mailing list