]> git.proxmox.com Git - mirror_ifupdown2.git/commit
Add support GRE/SIT tunnels. (#20)
authorMaximilian Wilhelm <max+gh@rfc2324.org>
Sat, 28 Jan 2017 22:54:43 +0000 (23:54 +0100)
committerJulien Fortin <julien@cumulusnetworks.com>
Tue, 26 Jun 2018 20:23:05 +0000 (23:23 +0300)
commit68ef17db2428262a7e763fa6ca97b48dacedffe0
tree6c3cc41489737b5f4f86b2785717ebfec1b650a6
parent394176082048e60cb1917d5095d9af5c3634460a
Add support GRE/SIT tunnels. (#20)

This commit adds support for configuring GRE/IPIP/SIT tunnel interfaces as know
from previous versions of ifupdown. Currently only configuration checks for GRE
and SIT tunnels are implemented.

A tunnel interface configuration could look like this:

auto gre42
iface gre42 inet tunnel
        mode     gre
        local    198.51.100.1
        endpoint 203.0.113.2
#
# optional tunnel attributes
        ttl      64
        mtu      1400
tunnel-physdev eth0
        #
        address  192.0.2.42/31
        address  2001:db8:d0c:23::42/64

auto he-ipv6
iface he-ipv6 inet tunnel
mode sit
endpoint 203.0.113.6
local    198.51.100.66
#
# optional tunnel attributes
ttl 255
mtu 1466
tunnel-physdev vrf_external
#
address 2001:db8:666::2/64

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
etc/network/ifupdown2/addons.conf
ifupdown2/addons/tunnel.py [new file with mode: 0644]
ifupdown2/ifupdown/networkinterfaces.py
ifupdown2/ifupdownaddons/LinkUtils.py