Page MenuHomeVyOS Platform

Does not possible to configure tunnel mode gre-bridge
Closed, ResolvedPublicBUG


To create gretap we must to use ip link instead of ip tunnel. With ip tunnel command possible to create only limited interfaces

[email protected]:~$ sudo ip tunnel help
Usage: ip tunnel { add | change | del | show | prl | 6rd } [ NAME ]
	 [ mode { ipip | gre | sit | isatap | vti } ] [ remote ADDR ] [ local ADDR ]

Reproducing steps:

set interfaces tunnel tun1 address ''
set interfaces tunnel tun1 encapsulation 'gre-bridge'
set interfaces tunnel tun1 local-ip ''
set interfaces tunnel tun1 remote-ip ''
Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/", line 196, in <module>
  File "/usr/libexec/vyos/conf_mode/", line 185, in apply
    tun = klass(tunnel['ifname'], **conf)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 68, in __init__
    super().__init__(ifname, **config)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 264, in __init__
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/", line 76, in _create
    self._cmd('{} {}'.format(create.format(**self.config), options))
  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 179, in cmd
    raise OSError(code, feedback)
OSError: [Errno 255] failed to run command: ip tunnel add tun1 mode gretap local remote ttl 255
exit code: 255

cmd 'ip tunnel add tun1 mode gretap local remote ttl 255'
returned (out):

returned (err):
Unknown tunnel mode "gretap"

[[interfaces tunnel tun1]] failed
Commit failed


Difficulty level
Easy (less than an hour)
Why the issue appeared?
Design mistake
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

c-po changed the task status from Open to In progress.Jan 12 2021, 4:16 PM
c-po claimed this task.
c-po triaged this task as High priority.
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Why the issue appeared? from Will be filled on close to Design mistake.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
SrividyaA set Issue type to Bug (incorrect behavior).Aug 30 2021, 3:48 PM