Page MenuHomeVyOS Platform

Cannot create new VTI interface
Closed, ResolvedPublic


I can't generate a VTI interface on the latest nightly (1.4-rolling-202106011750).

[email protected]# set interfaces vti vti0 address
[email protected]# commit
[ interfaces vti vti0 ]
VyOS had an issue completing a command.

We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):
- Make sure you are running the latest version of the code available at
- Consult the forum to see how to handle this issue
- Join our community on slack where our users exchange help and advice

When reporting problems, please include as much information as possible:
- do not obfuscate any data (feel free to contact us privately if your 
  business policy requires it)
- and include all the information presented below

Report Time:      2021-06-02 11:02:58
Image Version:    VyOS 1.4-rolling-202106011750
Release Train:    sagitta

Built by:         [email protected]
Built on:         Wed 02 Jun 2021 01:17 UTC
Build UUID:       1707d047-a33a-41f6-aebb-d4d01d3d848a
Build Commit ID:  9a572897c12a4a

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  innotek GmbH
Hardware model:   VirtualBox
Hardware S/N:     0
Hardware UUID:    7e1ab7cd-7b0d-2140-b5f5-b68d5c74d723

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/", line 83, in <module>
  File "/usr/libexec/vyos/conf_mode/", line 73, in apply
    tmp = VTIIf(**vti)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 264, in __init__
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 53, in _create
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 51, in _cmd
    return cmd(command, self.debug)
  File "/usr/lib/python3/dist-packages/vyos/", line 161, in cmd
    raise OSError(code, feedback)
FileNotFoundError: [Errno 2] failed to run command: ip link add vti0 type vti
exit code: 2

cmd 'ip link add vti0 type vti'
returned (out):

returned (err):
RTNETLINK answers: File exists

[[interfaces vti vti0]] failed
Commit failed

Which boils down to this:

$ sudo ip link add vti0 type vti
RTNETLINK answers: File exists
$ sudo ip link show vti0
Device "vti0" does not exist.
$ sudo ip link
4: [email protected]: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ipip brd
$ sudo ip link delete ip_vti0
$ sudo ip link show ip_vti0
4: [email protected]: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ipip brd


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

It seems after that commit
but it is not a root case

In the LTS

[email protected]:/home/vyos# ip link add name vti55 type vti 
RTNETLINK answers: File exists

In LTS it doesn't create a tunnel interface if it not present in ipsec configuration

[email protected]# set interfaces vti vti23 address
[email protected]# commit
[ interfaces vti vti23 ]
Warning: Interface vti23 is not referenced in vpn configuration.

[email protected]# compare 
No changes between working and active configurations
[email protected]# sudo ip -d tunnel show
ip_vti0: ip/ip remote any local any ttl inherit nopmtudisc key 0
vti1: ip/ip remote local ttl inherit nopmtudisc key 9437185
vti2: ip/ip remote local ttl inherit nopmtudisc key 9437186
c-po changed the task status from Open to Confirmed.Jun 3 2021, 7:38 AM
c-po claimed this task.