Commit 49fc700b authored by nanahira's avatar nanahira

fix incorrect interface

parent 95c63088
...@@ -35,9 +35,9 @@ handle_gateway() { ...@@ -35,9 +35,9 @@ handle_gateway() {
GATEWAY_ADDRESS=$(subnetcalc "$BRIDGE_IP" -n | grep "Host Range" | awk '{print $7}') GATEWAY_ADDRESS=$(subnetcalc "$BRIDGE_IP" -n | grep "Host Range" | awk '{print $7}')
fi fi
ip route replace default via "$GATEWAY_ADDRESS" table "$GATEWAY_NEXT_HOP_MARK" ip route replace default via "$GATEWAY_ADDRESS" dev "$BRIDGE_NAME" table "$GATEWAY_NEXT_HOP_MARK"
{% if br.type != "dhcp" %} {% if br.type != "dhcp" %}
ip route add default via "$GATEWAY_ADDRESS" metric "$GATEWAY_NEXT_HOP_MARK" ip route add default via "$GATEWAY_ADDRESS" dev "$BRIDGE_NAME" metric "$GATEWAY_NEXT_HOP_MARK"
{% endif %} {% endif %}
ip rule add pref 100 fwmark "$GATEWAY_NEXT_HOP_MARK" lookup "$GATEWAY_NEXT_HOP_MARK" ip rule add pref 100 fwmark "$GATEWAY_NEXT_HOP_MARK" lookup "$GATEWAY_NEXT_HOP_MARK"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment