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

    address 10.168.244.2
    netmask 255.255.255.0
    up ip route add 192.168.0.0/16 via 10.168.244.1 
    up ip route add 10.248.0.0/16 via 10.168.244.1

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