0

我正在尝试在我的 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

我该如何解决?

4

1 回答 1

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"
于 2015-02-05T05:35:36.813 回答