Thanks so much, Flavio. Your suggestions helped a lot in my debugging.

It turned out that Docker/LXC was messing up with source address setting
via "ip route change" on Ubuntu 14.04. After uninstalling Docker/LXC, it
worked.


Thanks

Changbin


On Fri, Jun 6, 2014 at 1:49 PM, Flavio Leitner <f...@redhat.com> wrote:

> On Wed, Jun 04, 2014 at 12:25:46AM -0400, Changbin Liu wrote:
> > It appears that we can change source address via updating the routing
> table.
> >
> >
> http://www.symantec.com/business/support/index?page=content&id=HOWTO58872
> >
> > But somehow it doesn't work on Ubuntu 14.04. Maybe I missed something.
> >
> > So right now, manually I first delete the default IP on the interface,
> and
> > then update the routing table. I don't have an automated solution yet.
> >
> > Any ideas?
>
> I am not sure about the exact steps you did but replacing the
> route to change the src addr is something quite old, so it would
> surprise me if Ubuntu doesn't work yet.
>
> Anyway, you have to keep in mind two things:
> 1) route does have a cache, you might want to flush it after
>    updating the route.
>
> You can check the current config with:
> # ip route get <network>/<netmask>
>
> or flush the cache if needed:
> # ip route flush all
>
> See ip-route man-page for details.
>
> 2) I am quite sure that sockets with on-going traffic may take
>    sometime to see the update. So, try first with new sockets.
>
> fbl
>
> > Thanks
> >
> > Changbin
> >
> >
> > On Wed, Jun 4, 2014 at 12:15 AM, Vasiliy Tolstov <v.tols...@selfip.ru>
> > wrote:
> >
> > > 2014-06-04 8:12 GMT+04:00 Changbin Liu <changbin....@gmail.com>:
> > > > I figured out the issue. For those who are interested in using VIP as
> > > VXLAN
> > > > endpoint IP: after the backup node takes over VIP, its "source
> address"
> > > also
> > > > needs to be updated.  By default (I tested with Ubuntu 14.04 OS), the
> > > bakcup
> > > > node's source address keeps unchanged. That explains why my VXLAN
> tunnels
> > > > did not work previously.
> > >
> > >
> > > And how you solve source address change?
> > >
> > > --
> > > Vasiliy Tolstov,
> > > e-mail: v.tols...@selfip.ru
> > > jabber: v...@selfip.ru
> > >
>
> > _______________________________________________
> > dev mailing list
> > dev@openvswitch.org
> > http://openvswitch.org/mailman/listinfo/dev
>
>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to