Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for December 5, 2013
Deadline scheduling: coming soon?
LWN.net Weekly Edition for November 27, 2013
ACPI for ARM?
LWN.net Weekly Edition for November 21, 2013
can i share over ethernet, as opposed to just wireless? If so, I guess I missed that functionality, I had alot of pain trying to do it myself while still having networkmanager work.
Udev and systemd to merge
Posted Apr 6, 2012 12:20 UTC (Fri) by cortana (subscriber, #24596)
Posted Apr 6, 2012 14:39 UTC (Fri) by Eckhart (guest, #74500)
Posted Apr 6, 2012 19:44 UTC (Fri) by scientes (guest, #83068)
as someone that has basic understanding of the networking, and has done this manually, this makes perfect sense, the other way you talk of is confusing, and would be way less capable.
If it wasn't for ipv4 exhaustion, sharing your internet connection could as simple as turning on ipv4 packet forwarding. (now there is also address allocation issues, so DHCP) the complexity, and ever difference between upstream, and downstream, somes from Network Address Translation.
Posted Apr 6, 2012 20:02 UTC (Fri) by cortana (subscriber, #24596)
Posted Apr 6, 2012 20:23 UTC (Fri) by scientes (guest, #83068)
sure maybe the language needs to be made clearer, "share Internet to this interface?"
Posted Apr 6, 2012 20:37 UTC (Fri) by cortana (subscriber, #24596)
Posted Apr 6, 2012 20:39 UTC (Fri) by khim (subscriber, #9252)
It's my internet connection I want to share, so I naturally expect to set its interface, the upstream one, to 'share with other computers'; the upstream connection is what I'm sharing, and is therefore be the object in the sentence "Share my internet connection with other computers".
Well, it'll be nice psychology study which will show just why Joe Average gets the facts backward, but this logic is obviously quite strange.
Let's forget about network, routing, packets, etc. Suppose my neighbour lost electrical power and I, ever the helpful guy, want to share my grid power connection with him (electrical grid, not Internet).
Now, I have two choice:
1. I can go find out where and how my own house itself is connected to grid and try to change that global connection. I can even succeed and survive (if I'm lucky).
2. I can change my local connection configuration: just plug extension cord to my wall socket and attach appliances of my neighbour to it.
Somehow when electrical grid is concerned everyone automatically assumes solution #2 is right, but for Internet they want go and try to change WAN#1 (their WAN connection)? WHY? What's so special about Internet?
P.S. This phenomenon is quite obviously present because Microsoft tries to “help” here. It ALSO makes no sense to change WAN configuration when you share it even in Windows, but hey, if people en masse want to do this strange thing then this is how it should be done. As a result when you share network connection you must “alter” WAN connection, but this is illusion. When you try to “share” WAN connection in Windows WAN connection is not changed at all. Instead Windows goes and silently changes LAN connection behind your back.
The end result is essentially the same as with Linux, but with a twist: in simple cases everything “just works”, but in complex cases you must imagine these behind the scenes changes and do complex dance (Ok, I need to change this network in this and that way, but this is impossible to do so I need to create fictive temporary network and change THIS, then I can delete it because it's unneeded and I can fix THAT and but this well mean that networks will be disconnected but this can be fixed later…) I hate that.
Posted Apr 6, 2012 20:54 UTC (Fri) by scientes (guest, #83068)
#2. The Linux way of electricity networking does exist in your 2nd electrical example, its called a Widow-maker or other similarly ominous names. (for good reason)
Posted Apr 6, 2012 21:25 UTC (Fri) by khim (subscriber, #9252)
The Linux way of electricity networking does exist in your 2nd electrical example, its called a Widow-maker or other similarly ominous names. (for good reason)
Widow-maker is used to attach to the upstream, to “WAN” power grid (this is what you “naturally expect” for some reason). This is Windows way.
In Linux you share your wall outlets (you local in-house “LAN” electric network) instead.
the entire concept of LAN vs. WAN only propagates this confusion
Why? WAN == WIDE area network (think city-level or even wider electrical network), LAN == LOCAL area network (think you own tiny in-house network with dozen or two plugs and few appliances). If you want to share electricity with someone you most definitely will do it using your local network (unless you have some serious reasons to use thing which is called Widow-maker or other similarly ominous names).
Posted Apr 6, 2012 14:32 UTC (Fri) by Eckhart (guest, #74500)
This is perfectly possible with NetworkManager. Just create a wired connection, set method to Shared, and NetworkManager will start a DHCP server on your wired connection.
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds