[systemd-devel] [PATCH 1/1] networkd: Introduce ipip tunnel

"Jóhann B. Guðmundsson" johannbg at gmail.com
Tue Apr 8 00:24:47 PDT 2014


On 04/08/2014 03:22 AM, Susant Sahani wrote:
> file: ipip.netdev
> --------------------------
> [NetDev]
> Name=ipip-tun
> Kind=ipip
>
> [Tunnel]
> Local=192.168.8.102
> Remote=10.4.4.4
> TTL=64
> MTUBytes=1480
>
> file: ipip.network
> --------------------------
> [Match]
> Name=eth0
>
> [Network]
> Tunnel=ipip-tun

I think this is worse from previous example since now you have moved 
the  network definitions out from the network file and into the net 
device file.

The best way to define this from my pov is like this since the tunnel is 
the network device type aka Kind=tunnel and the mode is the operation 
mode of that tunnel

||tunnel0|.netdev|

|[NetDev]
Name=|||tunnel0|
Kind=tunnel

||[Match]
Name=enp2s0

.network

[Network]
|||# one of the following|
Mode=ipip | gre | sit | isatap | vti <--
Address=192.168.0.15/24
Gateway=192.168.0.1|


Or

|tunnel0.netdev|

|[NetDev]
Name=|||tunnel0|
Kind=tunnel

||[Match]
Name=enp2s0

.network

[Network]
|||# one of the following|
Mode=ipip | gre | sit | isatap | vti <--
||DHCP=yes|


or if you want to be consistent with how it's done with bridging you 
would swap the Mode= in the [Network] section to Tunnel=|ipip | gre | 
sit | isatap | vti|

JBG

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140408/679e4c06/attachment.html>


More information about the systemd-devel mailing list