[ovs-discuss] ovsdb-client connection refused

2016-12-30 Thread Shravan S K
Hello,

set up : 2 machines running OVS 2.5.0.

m1 - 192.168.20.1
m2 - 192.168.20.2

On m2 ->
$ sudo ovs-vsctl set-manager tcp:192.168.20.1:6640
$ sudo ovs-vsctl show
38bc233b-7431-4aad-aefd-9155aff54ad4
Manager "tcp:192.168.20.1:6640"
ovs_version: "2.5.0"

On m1 ->
$ sudo ovsdb-client -v list-dbs tcp:192.168.20.2:6640
2016-12-30T09:23:13Z|1|poll_loop|DBG|wakeup due to 0-ms timeout
2016-12-30T09:23:13Z|2|poll_loop|DBG|wakeup due to
[POLLOUT][POLLERR][POLLHUP] on fd 3 (192.168.20.2:36486<->) at
../lib/stream-fd.c:151
ovsdb-client: failed to connect to "tcp:192.168.20.2:6640" (Connection
refused)
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] ovsdb-client connection refused

2016-12-30 Thread Flavio Leitner
On Fri, 30 Dec 2016 14:59:27 +0530
Shravan S K  wrote:

> Hello,
> 
> set up : 2 machines running OVS 2.5.0.
> 
> m1 - 192.168.20.1
> m2 - 192.168.20.2
> 
> On m2 ->
> $ sudo ovs-vsctl set-manager tcp:192.168.20.1:6640
> $ sudo ovs-vsctl show
> 38bc233b-7431-4aad-aefd-9155aff54ad4
> Manager "tcp:192.168.20.1:6640"
> ovs_version: "2.5.0"
> 
> On m1 ->
> $ sudo ovsdb-client -v list-dbs tcp:192.168.20.2:6640
> 2016-12-30T09:23:13Z|1|poll_loop|DBG|wakeup due to 0-ms timeout
> 2016-12-30T09:23:13Z|2|poll_loop|DBG|wakeup due to
> [POLLOUT][POLLERR][POLLHUP] on fd 3 (192.168.20.2:36486<->) at
> ../lib/stream-fd.c:151
> ovsdb-client: failed to connect to "tcp:192.168.20.2:6640" (Connection
> refused)

In the first command you are telling to connect to the manager
using tcp at 192.168.20.1 port 6640 where you actually want to
to listen for a connection on that port, i.e.:

# ovs-vsctl set-manager ptcp:6640

-- 
Flavio

___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] OVS bridge absorbing ARP replies

2016-12-30 Thread Flavio Leitner
On Thu, 29 Dec 2016 20:36:05 -0500
Yuanjun Yao  wrote:

> Hi all,
> 
> My network topology is host1(eth1:192.168.1.2)—(eth2:192.168.1.1)host2. I
> added an OVS bridge on host2 and added eth2 as a port. I configured the ip
> address via SDN controller. I could ping from host 1 to host2, but failed
> the other way.
> 
> My configuration commands on host2 are:
> 
> #ovs-vsctl add-br ovsbr1
> 
> #ovs-vsctl add-port ovsbr1 eth2
> 
> Then I set the ip address of ovsbr1 via SDN controller. I can ping from
> host1 to 192.168.1.1. But I can't ping from host 2 to host1. The reason is
> that host2 can't process ARP replies from host1. The result of "arp" shows
> that host 2 doesn't know the mac address of host1.
> 
> I used tcpdump to capture the packets, it shows that ARP replies packets
> from are received at eth2. The result of "ovs-ofctl dump-flows ovsbr1"
> shows that arp replies are matched with the rule whose action is normal, I
> also tried to add a flow that matches the arp replies and its action is
> "Local". None of this works.

You could try to tcpdump the ovsbr1 where the IP address is and see
if the ARP packets are getting there.  It sounds like a firewall issue.

-- 
Flavio

___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] OVS bridge absorbing ARP replies

2016-12-30 Thread Yuanjun Yao
Hi Flavio,

Thanks for your reply. I might misconfigured OVS bridge. I forgot to remove
the IP address from the original interface, that might caused the problem.

On Fri, Dec 30, 2016 at 10:33 AM, Flavio Leitner  wrote:

> On Thu, 29 Dec 2016 20:36:05 -0500
> Yuanjun Yao  wrote:
>
> > Hi all,
> >
> > My network topology is host1(eth1:192.168.1.2)—(eth2:192.168.1.1)host2.
> I
> > added an OVS bridge on host2 and added eth2 as a port. I configured the
> ip
> > address via SDN controller. I could ping from host 1 to host2, but failed
> > the other way.
> >
> > My configuration commands on host2 are:
> >
> > #ovs-vsctl add-br ovsbr1
> >
> > #ovs-vsctl add-port ovsbr1 eth2
> >
> > Then I set the ip address of ovsbr1 via SDN controller. I can ping from
> > host1 to 192.168.1.1. But I can't ping from host 2 to host1. The reason
> is
> > that host2 can't process ARP replies from host1. The result of "arp"
> shows
> > that host 2 doesn't know the mac address of host1.
> >
> > I used tcpdump to capture the packets, it shows that ARP replies packets
> > from are received at eth2. The result of "ovs-ofctl dump-flows ovsbr1"
> > shows that arp replies are matched with the rule whose action is normal,
> I
> > also tried to add a flow that matches the arp replies and its action is
> > "Local". None of this works.
>
> You could try to tcpdump the ovsbr1 where the IP address is and see
> if the ARP packets are getting there.  It sounds like a firewall issue.
>
> --
> Flavio
>
>


-- 
Yuanjun
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss