无法在 Ubuntu 16.04 上进行 USB 网络共享

Pra*_*yal 3 usb tethering 16.04

我试图通过 USB 连接我的三星 Galaxy S7,以便在装有 Ubuntu 16.04 的桌面上使用家庭 wifi。当我打开“USB 网络共享”时,我无法连接到任何设备。

Pra*_*yal 5

我发现这篇文章很有帮助https://ubuntuforums.org/showthread.php?t=2359171

ifconfig -a
Run Code Online (Sandbox Code Playgroud)

列出网络接口。我的被​​列为“enp0s20f0u2”。

然后我做到了sudo apt-get install macchanger。有一个提示,我选择了“否”。

然后我跑了sudo macchanger -b -a enp0s20f0u2。在此之后,输出是:

 Ignoring --bia option that can only be used with --random
 Current MAC:   00:00:00:00:00:00 (XEROX CORPORATION)
 Permanent MAC: 00:00:00:00:00:00 (XEROX CORPORATION)
 New MAC:       00:11:a5:16:14:29 (Fortuna Electronic Corp.)
Run Code Online (Sandbox Code Playgroud)

这似乎解决了这个问题


小智 5

检查所有可用的网络接口

ifconfig -a
Run Code Online (Sandbox Code Playgroud)

然后为各自的网络接口使用

ifconfig *name of network interface* up
Run Code Online (Sandbox Code Playgroud)