[ovs-dev] Can VXLAN work with VIP (Keepalived)?

Flavio Leitner fbl at redhat.com
Fri Jun 6 17:49:50 UTC 2014


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.tolstov at selfip.ru>
> wrote:
> 
> > 2014-06-04 8:12 GMT+04:00 Changbin Liu <changbin.liu at 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.tolstov at selfip.ru
> > jabber: vase at selfip.ru
> >

> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev




More information about the dev mailing list