Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to remove a un-use network interface on Ubuntu 11.10 desktop but failed.

virbr0    Link encap:Ethernet  HWaddr 16:13:97:0c:0f:4f
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:4800 (4.8 KB)

me@linux:~$ sudo ifconfig virbr0 down
me@linux:~$ sudo ifconfig virbr0 unplumb
unplumb: Unknown host
ifconfig: `--help' gives usage information.

unplumb seem usable in Solaris but not in Ubuntu. Any idea?

share|improve this question
    
This question appears to be abandoned and unanswered, could you perhaps add more detail to your question? If this question no longer applies then you can either delete it or answer it yourself if you've solved the problem. Thanks! –  fossfreedom Mar 6 '12 at 22:24
add comment

closed as too localized by jrg Mar 7 '12 at 3:13

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers

Use the commands below

ifconfig virbr0 down
brctl delbr virbr0

(most of the time virbr0 is a bridge created by Virtualbox or Xen like hypervisors)

share|improve this answer
add comment

The procedure is explained in full in this LWN article, but here is a snippet:

In the sysfs tree, every driver now has bind and unbind files associated with it:

$ tree /sys/bus/usb/drivers/ub/
/sys/bus/usb/drivers/ub/
|-- 1-1:1.0 -> ../../../../devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0
|-- bind
|-- module -> ../../../../module/ub
`-- unbind

In order to unbind a device from a driver, simply write the bus id of the device to the unbind file:

echo -n "1-1:1.0" > /sys/bus/usb/drivers/ub/unbind
share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.