Deleting tunnel interface

Posted on Posted in IT

If you want to remove an ip address simply use del instead of `add.

So ip addr del 10.0.0.2/24 dev tun2 to remove an IP. But since you want to remove the interface that doesn’t really matter.

To remove an tun* interface simply use ip link del name or in your case ip link delete tun2.

Source: http://superuser.com/questions/603344/openvpn-usage-how-to-modify-ip-address-and-how-to-remove-a-tun-interface

 

Leave a Reply