1
我試圖使用ip tunnel add命令創建一個IPIP tunel。現在我想刪除它,但它不會消失!如何刪除網絡接口?
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
我該怎麼辦?
可以*你*發現三個命令之間的區別? – 2011-12-18 04:44:01
不,我只是想嘗試一堆東西來刪除界面。最後一個命令是以root身份執行的,如果這是你所指的。 – Bruce 2011-12-18 04:46:07
如果最後一個命令是以root身份執行的,爲什麼會提示通常的'$'而不是'#'?爲什麼手術不被允許?仔細檢查或三重檢查。 :) – sarnold 2011-12-18 05:36:37