Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete a network interface? [closed]

I tried to create an IPIP tunel using the ip tunnel add command. Now I want to delete it but it won't go away!

tunl0     Link encap:IPIP Tunnel  HWaddr   
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

$ sudo ifdown tunl0
ifdown: interface tunl0 not configured
$ sudo ifconfig tunl0 down
$ /sbin/ip tunnel del tunl0
delete tunnel tunl0 failed: Operation not permitted

What should I do?

like image 660
Bruce Avatar asked Apr 10 '26 19:04

Bruce


1 Answers

Not really programming related (it needs to go to serverfault.com). It was answered here: https://serverfault.com/questions/247767/cannot-delete-gre-tunnel

like image 180
Burhan Khalid Avatar answered Apr 12 '26 08:04

Burhan Khalid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!