我试图在我的linux机器中运行SLiRP但执行此命令后:
slirp -P -d -4 debugppp "ttyACM1" "dns 176.66.0.1" "dns 176.66.0.12 " "-vj" "mru 576" "mtu 576"
它显示:
Error: Invalid option: ttyACM1
我确定设备已连接到端口 ttyACM1 ,因为当我运行 dmesg 命令时,它会显示以下详细信息:
[ 2872.180000] usb 1-1: New USB device found, idVendor=11ca, idProduct=0241
[ 2872.180000] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2872.180000] usb 1-1: Product: Trident USB Device 1.1
[ 2872.180000] usb 1-1: Manufacturer: ***** Inc
[ 2872.210000] usb 1-1: configuration #1 chosen from 1 choice
[ 2872.220000] cdc_acm 1-1:1.0: ttyACM1: USB ACM device
我该如何解决这个问题?
答案 0 :(得分:0)
我找到了解决方案,出现错误是因为我将错误的参数传递给SLiRP。正确的命令行应该是:
slirp -P -d -4 debugppp "tty /dev/ttyACM1" "dns 176.66.0.1" "dns 176.66.0.12 " "-vj" "mru 576" "mtu 576"