Comment 6 for bug 1718227

Revision history for this message
Crashbit (crashbit-gmail) wrote :

I have a problem with tinc and netplan.

I've using Ubuntu 17.10 server. When I try to start tincd daemon with systemd, it doesn't start.
When start tinc daemon without systemd, it runs correct.

Fail:
crashbit@sun:~$ sudo systemctl start tinc
crashbit@sun:~$ sudo systemctl status tinc
● tinc.service - Tinc VPN
   Loaded: loaded (/lib/systemd/system/tinc.service; enabled; vendor preset: enabled)
   Active: active (exited) since Thu 2018-02-15 00:58:30 CET; 20s ago
  Process: 26868 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
 Main PID: 26868 (code=exited, status=0/SUCCESS)
      CPU: 1ms

feb 15 00:58:30 sun systemd[1]: Starting Tinc VPN...
feb 15 00:58:30 sun systemd[1]: Started Tinc VPN.

crashbit@sun:~$ ifconfig | grep cephnet
crashbit@sun:~$

--------------------

Succes:

crashbit@sun:~$ sudo tincd -c /etc/tinc/cephnet/ -n cephnet
Both netname and configuration directory given, using the latter...
crashbit@sun:~$ ifconfig | grep cephnet
cephnet: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
crashbit@sun:~$

-----------------------

crashbit@sun:/etc/netplan$ cat 01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    enp129s0f0:
            dhcp4: false

  bridges:
    lxdbr0:
            interfaces: [enp129s0f0]
            addresses: [172.26.0.2/24]
            gateway4: 172.26.0.1
            parameters:
                    stp: false
                    forward-delay: 0
            nameservers:
                    addresses: [172.26.0.5]
crashbit@sun:/etc/netplan$