2nd_vnic_interface.cfg.j2 1.1 KB

1234567891011121314151617181920212223
  1. # ip rule regeln um FF Trafic erstmal über den ospf link zu dem alten sndor1 zu schicken und da per NAT weiterzuleiten
  2. auto {{ secondary_vnic }}
  3. iface {{ secondary_vnic }} inet static
  4. address {{ secondary_vnic_ip4 | ipaddr('address') }}
  5. netmask {{ secondary_vnic_ip4 | ipaddr('netmask') }}
  6. pre-up ip rule add from 10.0.0.0/8 table ffnet
  7. pre-up ip rule add to 10.0.0.0/8 table ffnet
  8. pre-up ip rule add from {{ dudl_ipv4 }} table ffnet
  9. pre-up ip rule add to {{ dudl_ipv4 }} table ffnet
  10. pre-up ip -6 rule add from {{ dudl_ipv6 }} table ffnet
  11. pre-up ip -6 rule add to {{ dudl_ipv6 }} table ffnet
  12. post-up ip route add default via 192.168.100.5 dev eth1 table ffnet
  13. pre-down ip route del default via 192.168.100.5 dev eth1 table ffnet
  14. post-down ip rule del from 10.0.0.0/8 table ffnet
  15. post-down ip rule del to 10.0.0.0/8 table ffnet
  16. # post-down ip rule del from {{ dudl_ipv4 }} table ffnet
  17. # post-down ip rule del to {{ dudl_ipv4 }} table ffnet
  18. # post-down ip -6 rule del from {{ dudl_ipv6 }} table ffnet
  19. # post-down ip -6 rule del to {{ dudl_ipv6 }} table ffnet