This document guides you to share the Wi-Fi connection via the LAN port.
1. Open nm-connection-editor
$ nm-connection-editor
2. Click on the +
button to add a new connection
3. Select Ethernet and click on the create
button to create a new connection
4. Change the method to Shared to other computers
, and save the connection
5. Open the file /etc/network/interfaces
$ sudo vi /etc/network/interfaces
6. Add the following line to ensure that eth0
interface is configured as follows:
auto eth0 iface eth0 inet dhcp
1. Add a new Ethernet connection
$ sudo nmcli connection add type ethernet con-name "wlantolan"
2. Configure the Ethernet connection type to autoconnect
$ sudo nmcli connection modify "wlantolan" connection.autoconnect yes
3. Configure the network type to shared
$ sudo nmcli connection modify "wlantolan" ipv4.method shared
4. Enable the connection
$ sudo nmcli connection up "wlantolan"
5. Open the file /etc/network/interfaces
$ sudo vi /etc/network/interfaces
6. Add the following line to ensure that eth0
interface is configured as follows:
auto eth0 iface eth0 inet dhcp