I am configuring a GRE tunnel in Linux 2.6.26 and I've been facing a very strange problem for which I could not find any solution.
I have created a GRE tunnel called gre0
, but no matter what I do, I am simply unable to delete this tunnel. The command ip tunnel del gre0
fails with the response ioctl: Operation not permitted
. Any attempt to change the addresses of the tunnel also fails.
The following commands illustrate the problem:
# ip tunnel del gre0
ioctl: Operation not permitted
# ip tunnel change gre0
# ip tunnel change gre0 remote <some address> local <some address>
ioctl: No such file or directory
I can create, change and delete other tunnels without any problem, but gre0
just sticks there and does not go away, even if I reboot or take the interfaces down.
If I remove the ip_gre
module, the tunnel disappears. As soon as I insert the module again, gre0
reappears and the problem continues.
I have two questions:
- What can I do to get rid of this pesky tunnel? I suspect this might be a kernel or a module bug.
- Where such persistent data (in this case, the information for
gre0
, but this applies to any other setup I may be even unaware of) is stored?
If any other information is needed, please let me know.
Thanks a lot for any help.