USBIP(8)
π USBIP(8) π
Okay bestie, this is the manual for usbipd, which lives in the System Administration Utilities crowd π It's the section 8 page, so you know it's the admin stuff.
β¨ NAME β¨
okay so usbipd is the USB/IP server daemon π¦ It's the thing that shares USB devices with other machines over the network.
π» SYNOPSIS β¨
usbipd [options]
π DESCRIPTION β¨
okay so usbipd gives USB/IP clients access to exported USB devices π
bestie, you have to explicitly export a device with usbip bind first. Until you do that, usbipd won't make it available to other hosts. No cap, it's a whole permission thing π
The daemon listens for USB/IP clients on TCP port 3240 by default πΈ
π OPTIONS β¨
-4,--ipv4β binds to IPv4. The default is both π¦-6,--ipv6β binds to IPv6. The default is both π¦-e,--deviceβ runs in device mode π§. Instead of driving an attached device, it creates a virtual UDC that you can bind gadgets to. Main character energy β¨-D,--daemonβ runs as a daemon process π-d,--debugβ prints debugging information π₯-PFILE,--pid FILEβ writes the process id to FILE π. If you don't specify a FILE, it uses/var/run/usbipd.pidπ-tPORT,--tcp-port PORTβ listens on TCP/IP port PORT π-h,--helpβ prints the program help message and exits π-v,--versionβ shows the version β
π LIMITATIONS β¨
bestie, be careful!! usbipd has no authentication or authorization for USB/IP. Any USB/IP client can connect and use your exported devices π
π§ EXAMPLES β¨
Here's the basic flow for sharing a device π«Ά
server:# modprobe usbip-host
server:# usbipd -D
server:# usbip list --local
server:# usbip bind --busid=1-2
modprobe usbip-hostloads the module πΈusbipd -Dstarts the usbip daemon πusbip list --locallists driver assignments for USB devices π¦usbip bind --busid=1-2bindsusbip-host.koto the device with busid1-2. Now USB device1-2is exportable to other hosts, periodt β¨- When you want to stop exporting and use the device locally again, run
usbip unbind --busid=1-2π₯
The next example shows device mode π
server:# modprobe usbip-vudc
server:# usbipd -e -D
server:# modprobe g_mass_storage file=/tmp/tmp.img
server:# usbip list --device
server:# modprobe -r g_mass_storage
modprobe usbip-vudcloads the module, and it's accessed through the/sys/class/udc/interface πusbip-hostis independent of this module, so no mixing them up πusbipd -e -Dstarts the usbip daemon in device mode π§modprobe g_mass_storage file=/tmp/tmp.imgbinds a gadget tousbip-vudc. In this example, it's a mass storage gadget πusbip list --devicelists the gadgets exported by the localusbipdserver πmodprobe -r g_mass_storageunbinds the gadget fromusbip-vudc. In this example, the previous mass storage gadget gets unbound π
π«Ά SEE ALSO β¨
usbip(8) is your bestie for the client side π
okay that's the whole tea π this page is from usbip, dated February 2009, and it's the USBIP(8) page. Stay iconic, bestie πβ¨
π¦ where this page comes from
- alpine 3.23: linux-tools-doc 6.19.14-r0 Β· GPL-2.0-only
- alpine 3.24: linux-tools-doc 7.1.5-r0 Β· GPL-2.0-only
- arch rolling: usbip 7.3.1-1 Β· GPL-2.0-only
- nixos 26.05: usbip-linux 7.3.1
- nixos 26.05: usbip-linux-xanmod 7.2.15
- nixos 26.05: usbip-linux-zen 7.2.14
- nixpkgs unstable: usbip-linux 7.3.1
- nixpkgs unstable: usbip-linux-xanmod 7.2.15
- nixpkgs unstable: usbip-linux-zen 7.2.14
- ubuntu jammy: linux-intel-iot-realtime-tools-common 5.15.0-1073.75
- ubuntu jammy: linux-intel-iotg-tools-common 5.15.0-1112.118
- ubuntu jammy: linux-intel-iotg-tools-common 5.15.0-1114.120
- ubuntu jammy: linux-nvidia-tegra-igx-tools-common 5.15.0-1018.18
- ubuntu jammy: linux-nvidia-tegra-tools-common 5.15.0-1030.30
- ubuntu jammy: linux-tools-common 5.15.0-198.208
- ubuntu jammy: linux-tools-common 5.15.0-202.212
- ubuntu jammy: linux-xilinx-zynqmp-tools-common 5.15.0-1053.57
- ubuntu noble: linux-tools-common 6.8.0-146.146
- ubuntu noble: linux-tools-common 6.8.0-147.147
- ubuntu noble: linux-tools-common 6.8.0-31.31
- ubuntu questing: linux-tools-common 6.17.0-41.41
- ubuntu questing: linux-tools-common 6.17.0-5.5
- ubuntu resolute: linux-tools-common 7.0.0-14.14
- ubuntu resolute: linux-tools-common 7.0.0-38.38
- ubuntu resolute: linux-tools-common 7.0.0-42.42
- ubuntu stonking: linux-tools-common 7.3.0-10.10
- ubuntu stonking: linux-tools-common 7.3.0-9.9
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms