Hi,

I am using OVS (v1.10) switches in my OpenFlow testbed, and I want to
configure theirs buffers remotely by controller. I installed OVS on
the controller too. It has only one port: eth0 10.0.0.1/24

On the switch that I want to configure remotely I used this commands:

ovs-vsctl add-br br0
ovs-vsctl add-port br0 eth1

ifconfig eth0 10.0.0.2 netmask 255.255.255.0 up # this interface I
didn't use in br definition

ovs-vsctl set-manager ptcp:10.0.0.1:6633

On the controller side I used:

ovs-vsctl --db=tcp:10.0.0.2 show

but I didn't succeed to connect. This is message I got:

ovs-vsctl --db=tcp:10.0.0.2 show
2014-04-01T10:34:45Z|00001|reconnect|WARN|tcp:10.0.0.2: connection
attempt failed (No route to host)
ovs-vsctl: tcp:10.0.0.2: database connection failed ()

I can ping controller from switch. Clearly I am doing something wrong,
so please help.

This is content of /var/log/openvswitch/ovsdb-server.log
--------------------------
2014-04-01T10:35:03Z|00001|vlog|INFO|opened log file
/var/log/openvswitch/ovsdb-server.log
2014-04-01T10:35:03Z|00002|ovsdb_server|INFO|ovsdb-server (Open vSwitch) 1.10.0
2014-04-01T10:35:03Z|00003|socket_util|ERR|10.0.0.1:6633: port number
must be specified
2014-04-01T10:35:03Z|00004|socket_util|ERR|10.0.0.1:6633: port number
must be specified
2014-04-01T10:35:03Z|00005|reconnect|INFO|ptcp:10.0.0.1:6633: listening...
2014-04-01T10:35:03Z|00006|reconnect|WARN|ptcp:10.0.0.1:6633: listen
attempt failed (Address family not supported by protocol)
2014-04-01T10:35:03Z|00007|reconnect|INFO|ptcp:10.0.0.1:6633: waiting
1 seconds before trying to listen again
2014-04-01T10:35:04Z|00008|socket_util|ERR|10.0.0.1:6633: port number
must be specified
2014-04-01T10:35:04Z|00009|reconnect|INFO|ptcp:10.0.0.1:6633: listening...
2014-04-01T10:35:04Z|00010|reconnect|WARN|ptcp:10.0.0.1:6633: listen
attempt failed (Address family not supported by protocol)
2014-04-01T10:35:04Z|00011|reconnect|INFO|ptcp:10.0.0.1:6633: waiting
2 seconds before trying to listen again
2014-04-01T10:35:06Z|00012|socket_util|ERR|10.0.0.1:6633: port number
must be specified
2014-04-01T10:35:06Z|00013|reconnect|INFO|ptcp:10.0.0.1:6633: listening...
2014-04-01T10:35:06Z|00014|reconnect|WARN|ptcp:10.0.0.1:6633: listen
attempt failed (Address family not supported by protocol)
2014-04-01T10:35:06Z|00015|reconnect|INFO|ptcp:10.0.0.1:6633: waiting
4 seconds before trying to listen again
2014-04-01T10:35:10Z|00016|socket_util|ERR|10.0.0.1:6633: port number
must be specified
2014-04-01T10:35:10Z|00017|reconnect|INFO|ptcp:10.0.0.1:6633: listening...

---------

also I tried with ovs-vsctl set-manager ptcp:6633:10.0.0.1

Then ovsdb-server log was like this:

-----------------------
2014-04-01T10:38:25Z|00007|socket_util|ERR|6633:10.0.0.1: bind: Cannot
assign requested address
2014-04-01T10:38:25Z|00008|ovsdb_jsonrpc_server|ERR|ptcp:6633:10.0.0.1:
listen failed: Cannot assign requested address
2014-04-01T10:38:29Z|00009|socket_util|ERR|6633:10.0.0.1: bind: Cannot
assign requested address
2014-04-01T10:38:29Z|00010|ovsdb_jsonrpc_server|ERR|ptcp:6633:10.0.0.1:
listen failed: Cannot assign requested address
2014-04-01T10:38:29Z|00011|socket_util|ERR|6633:10.0.0.1: bind: Cannot
assign requested address
2014-04-01T10:38:29Z|00012|ovsdb_jsonrpc_server|ERR|ptcp:6633:10.0.0.1:
listen failed: Cannot assign requested address
2014-04-01T10:38:34Z|00013|socket_util|ERR|6633:10.0.0.1: bind: Cannot
assign requested address
2014-04-01T10:38:34Z|00014|ovsdb_jsonrpc_server|ERR|ptcp:6633:10.0.0.1:
listen failed: Cannot assign requested address
2014-04-01T10:38:34Z|00015|socket_util|ERR|6633:10.0.0.1: bind: Cannot
assign requested address
2014-04-01T10:38:39Z|00016|socket_util|ERR|6633:10.0.0.1: bind: Cannot
assign requested address
2014-04-01T10:38:39Z|00017|socket_util|ERR|6633:10.0.0.1: bind: Cannot
assign requested address
-------------------

Thank is advance on your help.

Regards,

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

Reply via email to