Re: [systemd-devel] systemd-networkd version 241 not setting up tunnel of type GRE with Local=any

2019-07-01 Thread Susant Sahani
Care to open an issue at GitHub ?

On Fri, Jun 28, 2019 at 7:52 PM Christian Rohmann
 wrote:
>
> Hello systemd-devel,
>
> after a recent update to systemd 241 my previously working GRE tunnel
> does not work anymore:
>
> Jun 28 13:58:54 localhost systemd-networkd[637]: mytunnel:
> vti/ipip/sit/gre/gretap/erspan tunnel without a local IPv4 address
> configured in /etc/systemd/network/mytunnel.netdev. Ignoring
> Jun 28 13:58:54 localhost systemd-networkd[637]:
> /etc/systemd/network/eth0.network:5: Tunnel is invalid, ignoring
> assignment: mytunnel
>
>
> The configs are:
>
> --- cut ---
>
>
> $ cat /etc/systemd/network/mytunnel.netdev
>
> [NetDev]
> Name=mytunnel
> Kind=gre
>
> [Tunnel]
> Local=local
> Remote=192.168.1.1
>
> $ cat /etc/systemd/network/mytunnel.network
>
> [Match]
> Name=mytunnel
>
> [Network]
> Address=192.168.255.1/24
> DHCP=no
> LinkLocalAddressing=no
>
> [Route]
> Gateway=192.168.255.2
> Destination=172.16.0.0/16
>
>
> $ cat /etc/systemd/network/eth0.network
>
> [Match]
> Name=eth0
>
> [Network]
> DHCP=yes
> Tunnel=mytunnel
>
> [DHCP]
> UseDNS=true
> UseNTP=false
>
> --- cut ---
>
>
> A found https://github.com/systemd/systemd/issues/12041 which requires
> the "Local" variable to be set.
> As soon as I add a static IP to the "Local=" variable (the one eth0
> received from DHCP) the tunnel works again.
> According to https://github.com/systemd/systemd/issues/12041 a value of
> "any" would be possible as well though.
>
>
> Certainly this looks like a support question, but I am more or less
> getting at the recent change and if it really works as it should after
> forcing "Local=" to be present in Tunnel configurations
>
>
>
> Regards
>
> Christian
>
>
> ___
> systemd-devel mailing list
> systemd-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel



-- 
Susant
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] systemd-networkd version 241 not setting up tunnel of type GRE with Local=any

2019-06-28 Thread Christian Rohmann
Hello systemd-devel,

after a recent update to systemd 241 my previously working GRE tunnel
does not work anymore:

Jun 28 13:58:54 localhost systemd-networkd[637]: mytunnel:
vti/ipip/sit/gre/gretap/erspan tunnel without a local IPv4 address
configured in /etc/systemd/network/mytunnel.netdev. Ignoring
Jun 28 13:58:54 localhost systemd-networkd[637]:
/etc/systemd/network/eth0.network:5: Tunnel is invalid, ignoring
assignment: mytunnel


The configs are:

--- cut ---


$ cat /etc/systemd/network/mytunnel.netdev

[NetDev]
Name=mytunnel
Kind=gre

[Tunnel]
Local=local
Remote=192.168.1.1

$ cat /etc/systemd/network/mytunnel.network

[Match]
Name=mytunnel

[Network]
Address=192.168.255.1/24
DHCP=no
LinkLocalAddressing=no

[Route]
Gateway=192.168.255.2
Destination=172.16.0.0/16


$ cat /etc/systemd/network/eth0.network

[Match]
Name=eth0

[Network]
DHCP=yes
Tunnel=mytunnel

[DHCP]
UseDNS=true
UseNTP=false

--- cut ---


A found https://github.com/systemd/systemd/issues/12041 which requires
the "Local" variable to be set.
As soon as I add a static IP to the "Local=" variable (the one eth0
received from DHCP) the tunnel works again.
According to https://github.com/systemd/systemd/issues/12041 a value of
"any" would be possible as well though.


Certainly this looks like a support question, but I am more or less
getting at the recent change and if it really works as it should after
forcing "Local=" to be present in Tunnel configurations



Regards

Christian


___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel