Description of problem: ip tunnel add does not exit with an error when creating a tunnel with the same remote and local address of another tunnel. Version-Release number of selected component (if applicable): iproute-2.4.7-14 How reproducible: [root@yztiklettur root]# ip tunnel add testing123 mode ipip remote 192.168.1.1 local 192.168.1.12 [root@yztiklettur root]# ip tunnel add testingabc mode ipip remote 192.168.1.1 local 192.168.1.12 [root@yztiklettur root]# echo $? 0 [root@yztiklettur root]# ip tunnel sit0: ipv6/ip remote any local any ttl 64 nopmtudisc tunl0: ip/ip remote any local any ttl inherit nopmtudisc testing123: ip/ip remote 192.168.1.1 local 192.168.1.12 ttl inherit Actual results: The command does not return with an error. Expected results: The command should return with an error. Additional info: All errata has been applied.
Reproduced here. Seems like ioctl() does everything correctly and returns no error when creating new tunnel over an existing one, so it's not internall problem of iproute. Will need some rework for iproute or changes in ioctl ..
Ok, I've added a warning message when tunnel already exists, please check iproute-2.6.14-7