<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 04/08/2014 03:22 AM, Susant Sahani
wrote:<br>
</div>
<blockquote
cite="mid:1396927371-24614-1-git-send-email-susant@redhat.com"
type="cite">
<pre wrap="">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</pre>
</blockquote>
<br>
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.<br>
<br>
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<br>
<br>
<code><code>tunnel0</code>.netdev</code><br>
<pre><code>[NetDev]
Name=</code><code><code>tunnel0</code>
Kind=tunnel
</code><code>[Match]
Name=enp2s0
.network
[Network]
</code><code><code># one of the following</code>
Mode=ipip | gre | sit | isatap | vti <--
Address=192.168.0.15/24
Gateway=192.168.0.1</code></pre>
<br>
Or<br>
<br>
<code>tunnel0.netdev</code><br>
<pre><code>[NetDev]
Name=</code><code><code>tunnel0</code>
Kind=tunnel
</code><code>[Match]
Name=enp2s0
.network
[Network]
</code><code><code># one of the following</code>
Mode=ipip | gre | sit | isatap | vti <--
</code><code>DHCP=yes</code>
</pre>
<br>
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=<code>ipip |
gre | sit | isatap | vti</code>
<br>
<br>
JBG<br>
<br>
</body>
</html>