在 Ubuntu 16.04 服务器上获取 AT&T Velocity USB 加密狗

在 Ubuntu 16.04 服务器上获取 AT&T Velocity USB 加密狗

前言:此设备连接到 Ubuntu 桌面版时工作正常。它会创建一个新的网络接口并提供互联网连接。

但是,当我尝试将其连接到服务器版本时,网络接口未创建。

详细信息:加密狗:AT&T Velocity USB(ZTE MF861)

dmesg显示的日志:

[ 1883.698974] usb 1-2: new high-speed USB device number 12 using xhci_hcd
[ 1883.848256] usb 1-2: New USB device found, idVendor=19d2, idProduct=1405
[ 1883.848263] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1883.848268] usb 1-2: Product: ZTE Mobile Broadband
[ 1883.848271] usb 1-2: Manufacturer: ZTE,Incorporated
[ 1883.848274] usb 1-2: SerialNumber: MF8610ZTED000000
[ 1883.873568] cdc_ether 1-2:1.0 usb0: register 'cdc_ether' at usb-0000:00:14.0-2, CDC Ethernet Device, xx:yy:zz:aa:bb:cc
[ 1883.884895] usb-storage 1-2:1.2: USB Mass Storage device detected
[ 1883.885327] scsi host7: usb-storage 1-2:1.2
[ 1883.890212] cdc_ether 1-2:1.0 enp0s20f0u2: renamed from usb0
[ 1884.884482] scsi 7:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[ 1884.886942] sr 7:0:0:0: [sr0] scsi-1 drive
[ 1884.887332] sr 7:0:0:0: Attached scsi CD-ROM sr0
[ 1884.887493] sr 7:0:0:0: Attached scsi generic sg1 type 5
[ 1888.176279] usb 1-2: USB disconnect, device number 12
[ 1888.176364] cdc_ether 1-2:1.0 enp0s20f0u2: unregister 'cdc_ether' usb-0000:00:14.0-2, CDC Ethernet Device
[ 1889.127002] usb 1-2: new high-speed USB device number 13 using xhci_hcd
[ 1889.276301] usb 1-2: New USB device found, idVendor=19d2, idProduct=1405
[ 1889.276307] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1889.276312] usb 1-2: Product: ZTE Mobile Broadband
[ 1889.276315] usb 1-2: Manufacturer: ZTE,Incorporated
[ 1889.276318] usb 1-2: SerialNumber: MF8610ZTED000000
[ 1889.299753] cdc_ether 1-2:1.0 usb0: register 'cdc_ether' at usb-0000:00:14.0-2, CDC Ethernet Device, xx:yy:zz:aa:bb:cc
[ 1889.307434] usb-storage 1-2:1.2: USB Mass Storage device detected
[ 1889.307934] scsi host8: usb-storage 1-2:1.2
[ 1889.312973] cdc_ether 1-2:1.0 enp0s20f0u2: renamed from usb0
[ 1890.308585] scsi 8:0:0:0: CD-ROM            ZTE      USB SCSI CD-ROM  2.31 PQ: 0 ANSI: 2
[ 1890.311823] sr 8:0:0:0: [sr0] scsi-1 drive
[ 1890.312058] sr 8:0:0:0: Attached scsi CD-ROM sr0
[ 1890.312185] sr 8:0:0:0: Attached scsi generic sg1 type 5
[ 2087.529644] usbcore: registered new interface driver usbserial
[ 2087.529654] usbcore: registered new interface driver usbserial_generic
[ 2087.529662] usbserial: USB Serial support registered for generic

有人可以指导我如何让它工作吗?

我尝试联系中兴通讯支持,但他们没有提供 Linux 故障排除服务。

编辑 dhclient -v enp0s20f0u2 的输出是:

sc@sc:~$ sudo dhclient -v enp0s20f0u2
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/enp0s20f0u2/xx:yy:zz:aa:bb:cc
Sending on   LPF/enp0s20f0u2/xx:yy:zz:aa:bb:cc
Sending on   Socket/fallback
DHCPDISCOVER on enp0s20f0u2 to 255.255.255.255 port 67 interval 3    (xid=0xf2cb26af)
DHCPREQUEST of 192.168.1.153 on enp0s20f0u2 to 255.255.255.255 port 67 (xid=0x6f2bafc2)
DHCPOFFER of 192.168.1.153 from 192.168.1.1
DHCPACK of 192.168.1.153 from 192.168.1.1
bound to 192.168.1.153 -- renewal in 39672 seconds.
sc@sc:~$ 

答案1

我建议您将文件编辑/etc/network/interfaces为类似以下内容:

auto lo
iface lo inet loopback

auto enp0s20f0u2
iface enp0s20f0u2 inet static
address 192.168.1.25
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1 8.8.8.8

我建议使用静态地址,以便您可以通过 ssh 和 ftp 访问服务器。务必选择路由器、交换机或其他接入点中的 DHCP 服务器使用的范围之外的静态地址。

让系统读取并使用更改:

sudo ip addr flush dev enp0s20f0u2
sudo ifdown enp0s20f0u2 && sudo ifup -v enp0s20f0u2

你連線了嗎?

ping -c3 192.168.1.1
ping -c3 www.google.com

可能需要重新启动。

相关内容