![如何将我的 USB 互联网 USB0 共享到通过 ETH0 连接的 LAN 上的 RPI](https://linux22.com/image/1376657/%E5%A6%82%E4%BD%95%E5%B0%86%E6%88%91%E7%9A%84%20USB%20%E4%BA%92%E8%81%94%E7%BD%91%20USB0%20%E5%85%B1%E4%BA%AB%E5%88%B0%E9%80%9A%E8%BF%87%20ETH0%20%E8%BF%9E%E6%8E%A5%E7%9A%84%20LAN%20%E4%B8%8A%E7%9A%84%20RPI.png)
笔记本电脑 = Linux
RPI=Raspberry Pi
USB 互联网 = 移动网络共享
我可以在计算机上同时安装这两个设备。如果我尝试 ping,则会得到以下结果:
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=43 time=120 ms //USB0 connected ETHO disconnected
64 bytes from 8.8.8.8: icmp_req=2 ttl=43 time=78.7 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=43 time=88.5 ms
64 bytes from 8.8.8.8: icmp_req=4 ttl=43 time=65.8 ms
64 bytes from 8.8.8.8: icmp_req=5 ttl=43 time=252 ms
From 192.168.0.247 icmp_seq=6 Destination Host Unreachable //USB0 connected ETHO connected
From 192.168.0.247 icmp_seq=7 Destination Host Unreachable
From 192.168.0.247 icmp_seq=8 Destination Host Unreachable
64 bytes from 8.8.8.8: icmp_req=14 ttl=43 time=58.5 ms //USB0 connected ETHO disconnected
64 bytes from 8.8.8.8: icmp_req=15 ttl=43 time=56.4 ms
64 bytes from 8.8.8.8: icmp_req=16 ttl=43 time=74.4 ms
我怎样才能做到这一点,以便当两者都连接时,我仍然可以 ping 到互联网,然后才能从我的 RPI 访问互联网。