LinuxCommandLibrary

usbip

TLDR

List local devices

$ usbip list -l
copy
Bind device on server
$ sudo usbip bind -b [bus_id]
copy
Load kernel module on client
$ sudo modprobe vhci-hcd
copy
Attach to remote device
$ sudo usbip attach -r [ip_address] -b [bus_id]
copy
List attached devices
$ usbip port
copy
Detach from device
$ sudo usbip detach -p [port]
copy
Unbind device
$ usbip unbind -b [bus_id]
copy

SYNOPSIS

usbip COMMAND [OPTIONS]

DESCRIPTION

usbip enables sharing USB devices over IP networks. Devices can be exported from a server and attached to clients as if they were locally connected.
The server runs the usbipd daemon and binds devices for sharing. Clients load the vhci-hcd kernel module and attach to remote devices.

PARAMETERS

-l, --local

List local devices
-r, --remote IP
Remote server address
-b, --busid ID
Device bus ID
-p, --port PORT
Port number for detach

COMMANDS

list

List USB devices
bind
Bind device for remote sharing
unbind
Unbind device from sharing
attach
Attach to remote USB device
detach
Detach from remote device
port
Show attached remote devices

CAVEATS

Requires kernel modules on both server and client. Network latency affects device performance. Not suitable for high-bandwidth devices. Security depends on network configuration.

SEE ALSO

lsusb(8)

Copied to clipboard