====== Wi-Fi Share ====== ===== Introduction ===== This document guides you to share the Wi-Fi connection via the LAN port. ===== Ubuntu ===== ==== Desktop ==== 1. Open ''nm-connection-editor'' ```shell $ nm-connection-editor ``` 2. Click on the ''+'' button to add a new connection {{:products:sbc:common:configurations:wi-fi-share-001.webp?600|}} 3. Select Ethernet and click on the ''create'' button to create a new connection {{:products:sbc:common:configurations:wi-fi-share-002.webp?600|}} 4. Change the method to ''Shared to other computers'', and save the connection {{:products:sbc:common:configurations:wi-fi-share-003.webp?600|}} 5. Open the file ''/etc/network/interfaces'' ```shell $ sudo vi /etc/network/interfaces ``` 6. Add the following line to ensure that ''eth0'' interface is configured as follows: ```txt auto eth0 iface eth0 inet dhcp ``` ==== Server ==== 1. Add a new Ethernet connection ```shell $ sudo nmcli connection add type ethernet con-name "wlantolan" ``` 2. Configure the Ethernet connection type to ''autoconnect'' ```shell $ sudo nmcli connection modify "wlantolan" connection.autoconnect yes ``` 3. Configure the network type to ''shared'' ```shell $ sudo nmcli connection modify "wlantolan" ipv4.method shared ``` 4. Enable the connection ```shell $ sudo nmcli connection up "wlantolan" ``` 5. Open the file ''/etc/network/interfaces'' ```shell $ sudo vi /etc/network/interfaces ``` 6. Add the following line to ensure that ''eth0'' interface is configured as follows: ```txt auto eth0 iface eth0 inet dhcp ```