-
Notifications
You must be signed in to change notification settings - Fork 1
Servidor Raspberry Pi
Snakefoxu edited this page Dec 20, 2025
·
2 revisions
🌐 Idioma / Language: English | Español
Guía paso a paso para configurar un servidor USB/IP en Raspberry Pi OS.
- Raspberry Pi (cualquier modelo con USB)
- Raspberry Pi OS (Debian-based)
- Conexión a red local
- Dispositivo USB para compartir
# 1. Actualizar sistema
sudo apt update && sudo apt upgrade -y
# 2. Instalar USB/IP
sudo apt install -y linux-tools-generic
# 3. Cargar módulo del kernel
sudo modprobe usbip_host
# 4. Iniciar daemon
sudo usbipd -Dsudo usbip list -lSalida ejemplo:
- busid 1-1.4 (0bda:8152)
Realtek Semiconductor Corp. : RTL8152 Fast Ethernet Adapter
sudo usbip bind -b 1-1.4sudo usbip list -lDebería mostrar (attached) junto al dispositivo.
sudo nano /etc/systemd/system/usbipd.serviceContenido:
[Unit]
Description=USB/IP Daemon
After=network.target
[Service]
Type=forking
ExecStart=/usr/sbin/usbipd -D
ExecStartPost=/bin/sleep 1
ExecStartPost=/usr/sbin/usbip bind -b 1-1.4
Restart=on-failure
[Install]
WantedBy=multi-user.targetActivar:
sudo systemctl daemon-reload
sudo systemctl enable usbipd
sudo systemctl start usbipdsudo nano /etc/rc.localAñadir antes de exit 0:
modprobe usbip_host
usbipd -D
sleep 2
usbip bind -b 1-1.4sudo usbip unbind -b 1-1.4# Dispositivos compartidos
sudo usbip list -l
# Conexiones activas
sudo usbip port
# Logs
journalctl -u usbipd -fSi tienes firewall activo, abre el puerto 3240:
sudo ufw allow 3240/tcp- El
bus-id(ej:1-1.4) puede cambiar si reconectas el dispositivo - Algunos dispositivos USB no son compatibles con USB/IP
- El servidor debe estar en la misma red que el cliente Windows