← 返回命令列表

Linux command

usbip 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Example

usbip list -l

Bind

sudo usbip bind -b [bus_id]

Example

sudo modprobe vhci-hcd

Attach

sudo usbip attach -r [ip_address] -b [bus_id]

Example

usbip port

Detach

sudo usbip detach -p [port]

Unbind

usbip unbind -b [bus_id]

说明

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.

参数

-l, --local
List local devices
-r, --remote _IP_
Remote server address
-b, --busid _ID_
Device bus ID
-p, --port _PORT_
Port number for detach

FAQ

What is the usbip command used for?

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.

How do I run a basic usbip example?

Run `usbip list -l` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l, --local do in usbip?

List local devices