1. server (srv006)
curl -ns http://d01cid.ddns.net/sharel/bin/inst-usbip | sh -s "master"
cat /etc/usbipd.conf
#
#[master]
port = /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_a4043befde19ec11b8287fe5f01c6278-if00-port0
#[role]
role = master
#[slave]
master = 10.1.25.150
2. slave (srv014)
curl -ns http://d01cid.ddns.net/sharel/bin/inst-usbip | sh -s "slave"
cat /etc/usbipd.conf
#
#[master]
port = /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_a4043befde19ec11b8287fe5f01c6278-if00-port0
#[role]
role = slave
#[slave]
master = 10.1.25.150
3. debugging
lsmod | grep usb
usbip_host 45056 0
usbip_core 45056 2 usbip_host,vhci_hcd
ll /dev/serial/by-id/
total 0
lrwxrwxrwx 1 root root 13 Nov 21 23:13 usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_a4043befde19ec11b8287fe5f01c6278-if00-port0 -> ../../ttyUSB1
lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU Tablet
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 10c4:ea60 Silicon Labs CP210x UART Bridge
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub