I am getting connection error when I try to use ovs-ofctl to control a remote ovs. I am running v1.7.0.

I have my ovs bridge 'lan0' created on a host 192.168.43.148, and I can do 'ovs-ofctl show lan0' on the host locally without problem. To try this remotely, I've restarted my ovsdb-server on that host with "--remote=ptcp:6633" added to its options.

From a remote machine, now ovs-vsctl works:

%% ovs-vsctl --db=tcp:192.168.43.148:6633 show
a1d19b92-c343-4297-b0ab-072761a6b687
    Bridge "lan0"
        Controller "tcp:192.168.43.148"
        fail_mode: secure
        Port "lan0"
            Interface "lan0"
                type: internal
        Port "lan0p1"
            Interface "lan0p1"
        Port "lan0p0"
            Interface "lan0p0"

But from the same remote machine, ovs-ofctl does not work:

%% ovs-ofctl show tcp:192.168.43.148
ovs-ofctl: connecting to tcp:192.168.43.148 (Connection reset by peer)
%% ovs-ofctl show tcp:192.168.43.148:6633
ovs-ofctl: connecting to tcp:192.168.43.148:6633 (Connection reset by peer)

I also tried the syntax suggested in this thread, it prompted a usage error:

%% ovs-ofctl tcp:192.168.43.148 show lan0
ovs-ofctl: unknown command 'tcp:192.168.43.148'; use --help for help

What I did wrong here?

-Qiaobing


On 7/13/12 9:30 AM, Ben Pfaff wrote:
On Fri, Jul 13, 2012 at 06:06:50PM +0800, Kris zhang wrote:
I want to know if i can use ovs-ofctl to manage the remote ovs which in
another host?

For example:

ovs-ofctl tcp:192.168.1.2 add-flow br0 action=normal
Yes.
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss


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

Reply via email to