1 .TH USBIP "8" "February 2009" "usbip" "System Administration Utilities"
3 usbipd \- USB/IP server daemon
10 provides USB/IP clients access to exported USB devices.
12 Devices have to explicitly be exported using
14 before usbipd makes them available to other hosts.
16 The daemon accepts connections from USB/IP clients
17 on TCP port 3240 by default.
21 \fB\-4\fR, \fB\-\-ipv4\fR
23 Bind to IPv4. Default is both.
27 \fB\-6\fR, \fB\-\-ipv6\fR
29 Bind to IPv6. Default is both.
33 \fB\-e\fR, \fB\-\-device\fR
35 Run in device mode. Rather than drive an attached device, create a virtual UDC to bind gadgets to.
39 \fB\-D\fR, \fB\-\-daemon\fR
41 Run as a daemon process.
45 \fB\-d\fR, \fB\-\-debug\fR
47 Print debugging information.
51 \fB\-PFILE\fR, \fB\-\-pid FILE\fR
53 Write process id to FILE.
55 If no FILE specified, use /var/run/usbipd.pid
58 \fB\-tPORT\fR, \fB\-\-tcp\-port PORT\fR
60 Listen on TCP/IP port PORT.
63 \fB\-h\fR, \fB\-\-help\fR
65 Print the program help message and exit.
69 \fB\-v\fR, \fB\-\-version\fR
77 offers no authentication or authorization for USB/IP. Any
78 USB/IP client can connect and use exported devices.
82 server:# modprobe usbip-host
87 server:# usbip list --local
88 - List driver assignments for usb devices.
90 server:# usbip bind --busid=1-2
91 - Bind usbip-host.ko to the device of busid 1-2.
92 - A usb device 1-2 is now exportable to other hosts!
93 - Use 'usbip unbind --busid=1-2' when you want to shutdown exporting and use the device locally.
95 The following example shows the usage of device mode
97 server:# modprobe usbip-vudc
98 - Use /sys/class/udc/ interface.
99 - usbip-host is independent of this module.
101 server:# usbipd -e -D
102 - Start usbip daemon in device mode.
104 server:# modprobe g_mass_storage file=/tmp/tmp.img
105 - Bind a gadget to usbip-vudc.
106 - in this example, a mass storage gadget is bound.
108 server:# usbip list --device
109 - List gadgets exported by local usbipd server.
111 server:# modprobe -r g_mass_storage
112 - Unbind a gadget from usbip-vudc.
113 - in this example, the previous mass storage gadget is unbound.
116 \fBusbip\fP\fB(8)\fB\fP