Sharing WiFi over Ethernet in Ubuntu 18

Published on

200 words · 1 min read

Posted in DevOps with tags linux, networking


I wanted to share my Ubuntu 18 desktop’s WiFi connection over Ethernet to my Raspberry Pi - however, some of the software you need to do this is no longer readily available, as it is superseded by the new settings app in Ubuntu 18.

So now, you can only share your WiFi connection over Ethernet by directly opening the connection editor, which you can do through the terminal:

nm-connection-editor

When it opens, select the wired connection item, clicking the edit button (the cog). In that menu, switch to the IPv4 tab, and select the method: “shared to other computers”.

Screenshot of the connection editor with settings opened.

Screenshot of the connection editor with settings opened.

After that, save everything and connect your cable if you haven’t already, and DHCP should kick-in and set everything up for you!

You could even connect a switch or hub and share the connection further, if you wanted.

Note that if you need to get the IP address of the connection, you can use ifconfig. You’ll only need this if DHCP doesn’t automatically configure everything.



commit: 976aa2c
author: Matt Crook
date:   2023-12-06T22:03:22+1300

migrate from old blog