如何与我的覆盆子pi 2B共享我的PC的互联网? [英] How can I share my PC's internet with my raspberry pi 2B?

查看:109
本文介绍了如何与我的覆盆子pi 2B共享我的PC的互联网?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

理想情况下,我可以在每台设备的以太网端口之间使用飞线,但即便如此,我认为有些 - 对我来说 - 重量级配置是必要的。避免房间之间的布线是一个非常重要的事情,我的主要ADSL WiFi路由器在休息室,我希望我的卧室在我的卧室。



接下来,我有一个TP-LINK 3G / 4G无线路由器,它有一个用于3G / 4G调制解调器的USB端口,但如果USB调制解调器出现故障,还有一个用于备份的WAN端口。我认为我最好的选择是将我的PC以太网连接到路由器上的WAN端口,但如果我直接这样做,路由器就会说没有WAN存在。我想,如果可能的话,我需要在我的电脑和路由器上进行一些网络设置,将它们放到同一个子网或其他东西上,或者让我的电脑看起来像广域网。



以上是否有可能,我应该怎么做?我还有一个无线范围扩展器,带有一个以太网端口,但我想这是用于设置,或连接到互联网消费者的局域网(我的电脑),而不是我作为互联网提供商的Pi。



我的尝试:



我试过连接我的电脑(联想T520i笔记本电脑) )到Wifi路由器上的WAN端口,没有任何乐趣。如果我将它连接到普通的LAN端口,我至少可以到达路由器的控制面板,但是通过WAN端口,路由器会说:不要!我失去了所有的通讯。



我没有尝试过任何更多因为我不想在我的笔记本电脑上摆弄网络设置而且可能在这里丢失所有通讯同样,这意味着我也失去了谷歌和论坛;

Ideally I could just use a flylead between the Ethernet ports on each device, but even then I think some - for me - heavyweight configuration would be necessary. Avoiding wiring between rooms is a very high priority, and my main ADSL WiFi router is in the lounge, and I want my Pi in my bedroom.

Next up, I have a TP-LINK 3G/4G Wireless Router, which has a USB port for a 3G/4G modem, but also a WAN port for backup if the USB modem fails. I'm thinking my best bet here is connect my PC Ethernet to the WAN port on the router, but if I just do that straight, the router says there is no WAN present. I imagine, if possible, it would take some networking setup on my PC and on the router, to get them onto the same subnet or something, or to make my PC look like a WAN.

Is any of the above possible, and how should I go about it? I also have a Wireless Range Extender, with one Ethernet port, but I imagine that is for setup, or connection to the 'LAN' (my PC) for an internet consumer, not to my Pi as an internet provider.

What I have tried:

I have tried connecting my PC (Lenovo T520i laptop) to the WAN port on the Wifi router, with no joy. If I connect it to a normal LAN port, I can at least reach the router's control panel, but with the WAN port, the router says, "No wan!" and I lose all comms.

I havne't tried anything more because I don't want to fiddle with the network settings on my laptop and perhaps lose all comms here as well, the implication being I lose Google and forums as well;

推荐答案

我建​​议你买一个Wifi加密狗(例如Tenda)并将其插入其中一个覆盆子Pi的USB端口。在树莓上配置您的家庭Wifi(请参阅通过命令行设置WiFi 以获取说明)。然后你的Raspberry Pi将能够访问互联网,就像你的笔记本电脑一样。
I recommend you buy a Wifi dongle (e.g. Tenda) and plug it into one of the Raspberry Pi's USB ports. Configure your home Wifi on the raspberry (see Setting WiFi up via the command line for instructions). Then your Raspberry Pi will be able to access the internet, the same way your laptop can.


这篇关于如何与我的覆盆子pi 2B共享我的PC的互联网?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆