I want to share my laptop’s Wifi-Internet Connection via LAN port.

it works under Linux laptop 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) i686 GNU/Linux

like that:

1. open up a terminal and type:

nm-connection-editor

2. you get this dialog:

nm-connection-editor_screenshot

you click on the Add Button and select Ethernet as connection type and and then “Create”:

Screenshot from 2015-12-19 21:35:57

3. you click on the ipv4 tab and select those options:

Screenshot from 2015-12-19 21:37:43

4. when you restart your network-settings (close it then hit the Windows-Button type Network)

enter network settings gnome3

dialogue you should have something like:

Screenshot from 2015-12-19 21:40:17

all devices connected to your laptop’s LAN port should no get asigned an ip in the range: 10.24.0.XXX and should be able to connect to the internet via your shared Wifi-Internet.

I am not exactly shure where it put’s it’s config files… so unfortunately i can not give you a detailed description on how to acchieve this via terminal only, which might be more reliable and universal, because GUIs keep changing.

ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:d3:61:eb:cd  
          inet addr:10.42.0.1  Bcast:10.42.0.255  Mask:255.255.255.0
          inet6 addr: fe80::216:d3ff:fe61:ebcd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17525 errors:0 dropped:0 overruns:1 frame:1
          TX packets:30580 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1345417 (1.2 MiB)  TX bytes:43861028 (41.8 MiB)
          Interrupt:16 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:318 errors:0 dropped:0 overruns:0 frame:0
          TX packets:318 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:40630 (39.6 KiB)  TX bytes:40630 (39.6 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:18:de:37:b1:59  
          inet addr:192.168.2.31  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::218:deff:fe37:b159/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:31949 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18718 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:44220506 (42.1 MiB)  TX bytes:1808762 (1.7 MiB)

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin