Issues creating GRE tunnel (no IPSEC)

ipsec
gre

#1

Hi,

I’m having issues creating a plain GRE tunnel. Configuration items for tun0:

address 172.20.218.65/30 description GRE1 encapsulation gre local-ip 86.45.xx.xx mtu 1400 multicast disable +remote-ip 167.225.xx.xx

It won’t let me commit remote-ip it just throws up the error:

[code][ interfaces tunnel tun0 remote-ip 167.225.xx.xx ]
add tunnel “tun0” failed: Invalid argument

[[interfaces tunnel tun0]] failed[/code]

Any idea what the issue is? I can’t find any reference to this error online.


#2

This looks like a bug, though I’m not sure if I’ve ever seen it.

What VyOS version is it? 1.1.7 or the 1.2.0 nightly build?

There may also be something interesting in /var/log/vyatta/vyatta-commit.log or cfg-stdout.log/cfg-stderr.log


#3

It does seem like a bug as I’ve seen various examples using similar config and no reference to this error. I’m on 1.1.7 which I believe is the latest stable version - have checked those log files and nothing useful (or related) in there at all.

EDIT Just tried with 1.1.6 - same issue.


#4

Am I doing something wrong? The configuration I’m trying to create is the same as I’d setup on a Cisco router.


#5

Right this is a bug. If I blow tun0 away and recreate like this it works fine:

set remote-ip xxxx
set local-ip xxxx
set encap gre

commit

set address xxxxx/30
set desc “description”
set mtu 1400

commit
save

If I try to set and commit all items in one go it gives the error above and refuses to commit the remote-ip.

Tunnel now up and running!


#6

Thanks for sharing that!
Can you create task at https://phabricator.vyos.net
describe issue and reffer to this post?
So this can be fixed in future releases


#7

No problem, done. Hopefully this helps anyone else out in the meantime.


#8

Thanks for sharing the solution. you just saved me


#9

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.