static routing rule deleted when linux bridge up.

asked 2016-05-01 20:35:08 -0500

Carrot gravatar image

I'm using Liberty on Ubuntu 14.04 and I have to use static route cause some routing policy in my company. So Controllers and Computers server have below network configuration.

    auto eth1
    iface eth1 inet static

    up ip route add via 
    up ip route add via

Problem is static route deleted when linux bridge came up. Because Neutron change the interface eth to br, they don't add existing static route.

/usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf ip link add vxlan-1 type vxlan id 1 dev eth1 proxy
/usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf ip link set vxlan-1 up

How can I keep my static routing rule ? PS. I already try to add script in /etc/network/if-*, it's not work cause they use ip command.

edit retag flag offensive close merge delete