Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Share wifi internet to ethernet devices

396 views
Skip to first unread message

Bud Spencer

unread,
Aug 16, 2019, 6:34:53 PM8/16/19
to
What would be the best way to share wireless internet connection to
different wired devices?

I do have switch and all, but don't really know how to do this.


Dan Purgert

unread,
Aug 16, 2019, 8:16:01 PM8/16/19
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Bud Spencer wrote:
> What would be the best way to share wireless internet connection to
> different wired devices?

Do these devices have wireless cards? If not, no wireless LAN.

>
> I do have switch and all, but don't really know how to do this.

Plug everything in ... let your router (probably supplied by the ISP)
handle assigning addresses.
>
>


-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAl1XRzoACgkQjhHd8xJ5
ooF/rggAneC8IWh8yNUz/EJoq59WN6PykGo+j47OWLM9/ZAr22SxF+963za7Y3S2
Xq41YH16GV6waMZjGexBW0WUHWrc5lwaHeVA9jvFSPFCk0gTapLkAjc2hDF0e2m5
XD2LRfVmqUcsL7ntBkpHgcBBZScoAeDeHzbHry/qE2+CTjcCCi4YlOwHspJ2MuZ5
sH9qlY+AzWUjeZ9HSCJ35VL/j/Z3UOme5/QJM5YDufKluCf8EJ7jSH2RWRo7zn8e
CwJpJ0t3fQm4zvj28RTC2G4ByOxpzNPAAm/gNxJ3CXh2ezt7tGX1+ho6JHThdKYs
Fmgsa9kvqBOov3FH7UlNR3UzZCYeuw==
=ehfu
-----END PGP SIGNATURE-----

--
|_|O|_|
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281

Bud Spencer

unread,
Aug 16, 2019, 8:47:43 PM8/16/19
to
On Sat, 17 Aug 2019, Dan Purgert wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Bud Spencer wrote:
>> What would be the best way to share wireless internet connection to
>> different wired devices?
>
> Do these devices have wireless cards? If not, no wireless LAN.

I think you misunderstood what I'm trying to achieve here ...

>> I do have switch and all, but don't really know how to do this.
>
> Plug everything in ... let your router (probably supplied by the ISP)
> handle assigning addresses.

There is no such router. What I'm trying to do is share wifi internet
connection, from phone hotspot or what ever device that might be, to the
other devices that doesn't have wifi via my laptop.


Dan Purgert

unread,
Aug 16, 2019, 9:09:32 PM8/16/19
to
So how does this hotspot create the neteork? wifi?
>
>


-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAl1XU8QACgkQjhHd8xJ5
ooEZkgf/SAfDbhrA64khXps7VZ+iFlHyMWKHylSKtnI7/MZU3oLhjf7sF3ei5sum
IkilY7vZKWSETEISs1pZs2iqmzoMzI+Os7Ie5Zd3vG9l5z8XnMmESkTZtwoMyoI/
asctKQO5PhIRQ4O69QJ2U7U94gSK0iP92yyxeBSTtWkPiP6iFzVHqMFUUF2dPXTP
tmMm5QMrCjNutLSMxYqEh3ByOZgC6n9fFlMge2sBFAzc8VO7Ebe6bFF4kCC3tlTS
DtNmMzZaaBzwvQwoHuonw38/khVM5OpTZfTlVUCZuxy7oxoFuFAuBMTNzuRWhXA0
iXIoFBVZumFHZ4g4Ob7gr6hhb/RwbQ==
=2Uxt

Bud Spencer

unread,
Aug 16, 2019, 9:44:27 PM8/16/19
to
On Sat, 17 Aug 2019, Dan Purgert wrote:

>> There is no such router. What I'm trying to do is share wifi internet
>> connection, from phone hotspot or what ever device that might be, to the
>> other devices that doesn't have wifi via my laptop.
>
> So how does this hotspot create the neteork? wifi?

No. It creates letters that are sent by the mail.

Grant Taylor

unread,
Aug 16, 2019, 11:26:10 PM8/16/19
to
Do you want to do it with Linux? Or are you willing to buy a relatively
inexpensive device?

If you're willing to buy the device, look for (what I know to be called)
a "gaming adapter". It is effectively a wireless client that connects
(bridges) to a wired network. So it could connect the switch of wired
devices to the wired network.

You can get Linux to do the same thing with bridging and / or routing.



--
Grant. . . .
unix || die

Carlos E.R.

unread,
Aug 17, 2019, 5:16:11 AM8/17/19
to
Trivial: connect to the hotspot by WiFi. Any computer nearby can do the
same simultaneously, up to a limit. In my case, six machines. Enough for
my laptop and tablet.

Else: Connect a wifi router to that wifi hot spot. The router has
ethernet out cables.

Other: get an extra SIM card, put it on a router that can do the
connection instead of the computer and sets up a proper wifi hotspot +
ethernet. There are some ISPs here that give you both sim and router
with the contract.

--
Cheers, Carlos.

Bud Spencer

unread,
Aug 17, 2019, 8:21:08 AM8/17/19
to
On Sat, 17 Aug 2019, Carlos E.R. wrote:

>
> Trivial: connect to the hotspot by WiFi. Any computer nearby can do the
> same simultaneously, up to a limit. In my case, six machines. Enough for
> my laptop and tablet.

Yes.

> Else: Connect a wifi router to that wifi hot spot. The router has
> ethernet out cables.

No.

> Other: get an extra SIM card, put it on a router that can do the
> connection instead of the computer and sets up a proper wifi hotspot +
> ethernet. There are some ISPs here that give you both sim and router
> with the contract.

And again no.

Initial question was about how to do all this with a laptop, for example.

Bud Spencer

unread,
Aug 17, 2019, 8:22:33 AM8/17/19
to
On Fri, 16 Aug 2019, Grant Taylor wrote:

>
> Do you want to do it with Linux? Or are you willing to buy a relatively
> inexpensive device?

Yes and no.

That's why I did ask for input ...

David Brown

unread,
Aug 17, 2019, 9:23:27 AM8/17/19
to
Is this what you have:


External Wifi source (such as neighbour's Wifi network)

---- Wifi ----

Laptop with Wifi and Ethernet port, running Linux

---- Ethernet cable ----

Ethernet switch

---- Ethernet cables -----

Other PC's, games consoles, etc., connected by Ethernet




And what you want is for your laptop to act as a router between the Wifi
and your Ethernet LAN?

Should the other Ethernet devices have addresses only on the private
Ethernet LAN, or should they be logically attached to the Wifi?


That is straightforward to set up if you are familiar with IP tables and
routing - your laptop would be set up as a router with masquerading,
DHCP, etc., like a normal NAT router setup. Or you have bridging
between the two laptop interfaces - it depends on the logical network
setup you want.

An off-the-shelf device is going to be simpler to use and work with, and
means that everything is still connected even when your laptop is
sleeping, but that is up to you.

Bud Spencer

unread,
Aug 17, 2019, 11:03:01 AM8/17/19
to
On Sat, 17 Aug 2019, David Brown wrote:

> External Wifi source (such as neighbour's Wifi network)

Not neighbour's ... 1.5 km to the nearest ...

> ---- Wifi ----
>
> Laptop with Wifi and Ethernet port, running Linux
>
> ---- Ethernet cable ----
>
> Ethernet switch
>
> ---- Ethernet cables -----
>
> Other PC's, games consoles, etc., connected by Ethernet

True thing!


> And what you want is for your laptop to act as a router between the Wifi and
> your Ethernet LAN?
>
> Should the other Ethernet devices have addresses only on the private Ethernet
> LAN, or should they be logically attached to the Wifi?
>
>
> That is straightforward to set up if you are familiar with IP tables and
> routing - your laptop would be set up as a router with masquerading, DHCP,
> etc., like a normal NAT router setup. Or you have bridging between the two
> laptop interfaces - it depends on the logical network setup you want.
>
> An off-the-shelf device is going to be simpler to use and work with, and
> means that everything is still connected even when your laptop is sleeping,
> but that is up to you.

Yes and not all of them, but some.

I figured that I'll pop rpi to do the thing for me, so thanks for the
entertaining inputs you all!


William Unruh

unread,
Aug 17, 2019, 11:11:22 AM8/17/19
to
On 2019-08-17, Dan Purgert <d...@djph.net> wrote:
>
> Bud Spencer wrote:
>> What would be the best way to share wireless internet connection to
>> different wired devices?
>
> Do these devices have wireless cards? If not, no wireless LAN.

From what he said, I would assume that there is one computer which has a
wireless card which can link to some router/switch which has access to
the WWW. That computer and the others in his house only have ethernet
connection to that, or another, router. So his question is -- can he get
his ethernet connected machines to be able to access the WWW via that
one machine which is connected to the WWW by its wireless connection?

The answer is yes. The clue is NAT-- Network address translation. The
wireless machine needs connection to both the wireless and to the
ethernet that all of the others are connected to. Then you need to tell
the other machines that for outside addresses, it must route the packets
throught that machine which has both wireless and wired. That machine
has its firewall software set up to route all of those packets through
the wireless using NAT.

Carlos E.R.

unread,
Aug 17, 2019, 2:44:09 PM8/17/19
to
On 17/08/2019 14.21, Bud Spencer wrote:
> On Sat, 17 Aug 2019, Carlos E.R. wrote:
>
>>
>> Trivial: connect to the hotspot by WiFi. Any computer nearby can do the
>> same simultaneously, up to a limit. In my case, six machines. Enough for
>> my laptop and tablet.
>
> Yes.
>
>> Else:  Connect a wifi router to that wifi hot spot. The router has
>> ethernet out cables.
>
> No.

It doesn't have cables or you do not like it? :-)

>
>> Other: get an extra SIM card, put it on a router that can do the
>> connection instead of the computer and sets up a proper wifi hotspot +
>> ethernet. There are some ISPs here that give you both sim and router
>> with the contract.
>
> And again no.
>
> Initial question was about how to do all this with a laptop, for example.

Well, I knew how to do it with openSUSE and SuSEfirewal2. I'm not
familiar with a generic method.

--
Cheers, Carlos.

Ken Hart

unread,
Aug 17, 2019, 8:22:14 PM8/17/19
to
TP-Link AC750 Dual Band Wi-Fi Range Extender w/ Gigabit Ethernet Port
NETGEAR WiFi Range Extender EX3700

These devices are wifi range extenders with an ethernet jack. I would
think you could plug a LAN switch into the ethernet port for using
multiple devices. Both are in the $25-$30 range on Amazon.

I do not have any personal experience with either of these devices.

--
Ken Hart
kwh...@frontier.com

Grant Taylor

unread,
Aug 17, 2019, 11:37:01 PM8/17/19
to
Get the Linux machine to connect to the wireless and bridge the wireless
interface to a wired interface. Plug the wired interface into the switch.

brctl add-br br0
brctl add-if br0 wlan0
brctl add-if br0 eth0

That's from memory, so the syntax might not be completely correct.

You can do the same thing with the ip command from iproute2. I don't
remember the exact syntax. It might be something like the following:

ip link add br0 type bridge
ip link set dev wlan0 master br0
ip link set dev eth0 master br0

Which ever method you use, remember to bring all of the interfaces up;
br0, wlan0, eth0.

Jorgen Grahn

unread,
Aug 19, 2019, 7:59:16 AM8/19/19
to
You can ignore the wireless aspect; it's a higher-layer problem.

+--------+
A | router | B
-----+ +------
| | 192.168.x.0/24
+--------+

A is your wireless connection with the Internet behind it; B is your
wired one, with a switch on it.

The router should probably run a DHCP server for the B network
(although fixed addresses would work too) and should NAT traffic
for clients on B. Should also offer DNS.

You can easily do this with Linux (or OpenBSD, or some other OS, or
dedicated hardware).

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .

Stefan Monnier

unread,
Aug 25, 2019, 5:06:32 PM8/25/19
to
0 new messages