On 04/08/2014 12:54 PM, "Jóhann B. Guðmundsson" wrote:
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.
Well thanks for the comment . I am open for the change . Leaving tom to
comment on this .
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
Thanks,
Susant
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel