peering_interfaces.j2 441 B

1234567891011121314151617181920
  1. {% if peers is defined %}
  2. {% for peer in peers %}
  3. {% if peer.gre_endpoint is defined %}
  4. auto {{peer.name}}
  5. iface {{peer.name}} inet tunnel
  6. mode gre
  7. ttl 64
  8. mtu 1400
  9. netmask 255.255.255.255
  10. address {{peer.source_ipv4}}
  11. dstaddr {{peer.peer_ipv4}}
  12. local {{primary_v4_address}}
  13. endpoint {{peer.gre_endpoint}}
  14. iface {{peer.name}} inet6 static
  15. address {{peer.source_ipv6}}
  16. {% endif %}
  17. {% endfor %}
  18. {% endif %}