title: Ubuntu, remove network TAP interface
body: <p>I'm creating a network interface via a program in order to build a bridge between a simulated network (NS-3) and the real Linux host. So when the "bridged" node receive a packet in NS-3, the real Linux host receive the packet.</p>
  
  <p>But when I run the program again, it can't "erase" or delete the network interface because "device or resource is busy".</p>
  
  <p>I tried to shut the interface down (<code>ifconfig &lt;myInterface&gt; down</code>), restart the networking service (<code>service networking restart</code>), tried to delete the TAP interface with tunctl (<code>tunctl -d myInterface</code>), but even after hours, I'm still not able to delete or reuse this interface. "Device or resource is busy".</p>
  
  <p>Can you please explain me how to delete or erase or reuse the interface?</p>