[ovs-discuss] Problems Connecting openvswitch to nox controller

Tahir Rauf tahir.rauf1 at gmail.com
Sun Nov 20 05:25:26 UTC 2011


Hi,
After compilation of OVS, you can run the following commands (Commands are
taken from INSTALL.Linux as described by Justin). Go to ovsdb directory
first. In OVS1.1.2, you can found it in openvswitch/utilities.
*
*
*% mkdir -p /usr/local/etc/openvswitch*
*% ./ovsdb-tool create /usr/local/etc/openvswitch/conf.db
../vswitchd/vswitch.ovsschema*
*% ./ovsdb-server /usr/local/etc/openvswitch/conf.db
--remote=punix:/ovs/var/run/openvswitch/db.sock
--remote=db:Open_vSwitch,manager_options --pidfile --detach*
*% cd ../utilities/*
*% ./ovs-vsctl --no-wait init*
*% cd ../vswitchd/*
*% ./ovs-vswitchd unix:/ovs/var/run/openvswitch/db.sock*
*
% ovs-vsctl add-br br0
% ovs-vsctl add-port br0 eth0
% ovs-vsctl add-port br0 vif1.0
*
After that you can connect to controller by using following command
*% ./ovs-vsctl set-controller br0 tcp:10.3.70.116:6633*
--
Regards
Tahir Rauf

On Sun, Nov 20, 2011 at 2:15 AM, Justin Pettit <jpettit at nicira.com> wrote:

> NOX only speak OpenFlow, but the switch is connecting with the management
> protocol.  The argument you're passing to ovs-vswitchd should be to a
> configuration database instance (created by ovsdb-server).
>
> You should get ovsdb-server and ovs-vswitchd running and talking together
> on your local box as described in INSTAL.Linux.  Once you do that, you can
> tell OVS to connect to a controller with the "ovs-vsctl set-controller"
> command, as described in the ovs-vsctl man page.
>
> --Justin
>
>
> On Nov 19, 2011, at 1:06 PM, Theophilus Benson wrote:
>
> > I am trying to connect an openvswitch to a nox controller, but I get a
> JSON related error. Below, I have included the openvswitch command, the
> error from ovs-vswitch as well as the error from the nox controller.
> >
> >
> > Here is the openvswitch command:
> >
> > ovs-vswitchd  tcp:10.10.101.40:10023
> >
> >
> > I get the following error from ovs-vswitchd:
> >
> > Nov 19 15:02:53|00007|reconnect|INFO|tcp:10.10.101.40:10023:
> connecting...
> > Nov 19 15:02:53|00008|reconnect|INFO|tcp:10.10.101.40:10023: connected
> > Nov 19 15:02:53|00009|jsonrpc|WARN|tcp:10.10.101.40:10023: error
> parsing stream: line 0, column 1, byte 1: invalid character U+0001
> > Nov 19 15:02:53|00010|jsonrpc|WARN|tcp:10.10.101.40:10023: received
> OpenFlow data on JSON-RPC channel
> > Nov 19 15:02:53|00011|reconnect|WARN|tcp:10.10.101.40:10023: connection
> dropped (Protocol error)
> > Nov 19 15:02:53|00012|reconnect|INFO|tcp:10.10.101.40:10023: waiting 2
> seconds before reconnect
> >
> >
> > When i look at the nox controller i get this error:
> >
> > 00045|nox|WARN:Error sending features request: Protocol error
> > 00046|openflow|DBG:Passive tcp interface received connection
> > 00047|openflow|WARN:stream: unexpected connection drop in middle of a
> message
> > 00048|openflow|WARN:stream: receive error: Protocol error
> > 00049|nox|WARN:Error sending features request: Protocol error
> > _______________________________________________
> > discuss mailing list
> > discuss at openvswitch.org
> > http://openvswitch.org/mailman/listinfo/discuss
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>



-- 
Tahir Rauf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20111120/f79df652/attachment.html>


More information about the discuss mailing list