Marks-Man
Administrator
Joined: Mar 15, 2021
Messages: 1,044
Resources: 405
Points: 113
Reaction score: 1,275
This tutorial will show you how to turn your old laptop into a router.
Install Linux (Debian or Ubuntu)
Install a Network Switch to extend ethernet ports in order to hookup multiple devices.
Before editing Network Interfaces file, you must know your gateway IP of the main CPE or AP that connects you with your ISP.
In my case I am connected with my ISP by wireless connection(DHCP).
To know your gateway connect directly to your laptop ethernet port
open terminal and type following command:
Find default route :
In my case
Try to use same subnet if you don't want to do complex routing.
So gateway is 192.168.15.1, I will choose my server IP to be 192.168.15.250
br-lan adapter will be configured on 10.168.1.0/24 subnet
IP 10.168.1.254
Open and edit Network INTERFACES
#
after saving and closing file execute the following command.
1. To create a Wi-Fi hotspot, the first thing you'll need to do is to turn on your Wi-Fi (if not already enabled):
This is done by going to the System menu and selecting Wi-Fi Off > Turn On.
2. Next, select Wi-Fi Settings from the system Wi-Fi menu:
3. In the Wi-Fi Settings window, click on the Gnome menu icon from the window upper right-hand side corner, and select Turn On Wi-Fi Hotspot:
Your new Wi-Fi hotspot uses AP (infrastructure) mode by default in Ubuntu 18.04, and the network SSID and password, as well as the security type (WPA/WPA2 is used by default in Ubuntu 18.04) are presented on the next screen - which is displayed immediately after your enable the Wi-Fi hotspot:
If you are ok with the defaults and don't want to change anything, that's all you have to do to create a Wi-Fi hotspot in Ubuntu 18.04.
Install Linux (Debian or Ubuntu)
Install a Network Switch to extend ethernet ports in order to hookup multiple devices.
Before editing Network Interfaces file, you must know your gateway IP of the main CPE or AP that connects you with your ISP.
In my case I am connected with my ISP by wireless connection(DHCP).

To know your gateway connect directly to your laptop ethernet port
open terminal and type following command:
Find default route :
In my case
Try to use same subnet if you don't want to do complex routing.
So gateway is 192.168.15.1, I will choose my server IP to be 192.168.15.250
br-lan adapter will be configured on 10.168.1.0/24 subnet
IP 10.168.1.254
Open and edit Network INTERFACES
#
after saving and closing file execute the following command.
How to create a Wi-Fi hotspot in Ubuntu 18.04 using Gnome desktop
1. To create a Wi-Fi hotspot, the first thing you'll need to do is to turn on your Wi-Fi (if not already enabled):

This is done by going to the System menu and selecting Wi-Fi Off > Turn On.
2. Next, select Wi-Fi Settings from the system Wi-Fi menu:

3. In the Wi-Fi Settings window, click on the Gnome menu icon from the window upper right-hand side corner, and select Turn On Wi-Fi Hotspot:

Your new Wi-Fi hotspot uses AP (infrastructure) mode by default in Ubuntu 18.04, and the network SSID and password, as well as the security type (WPA/WPA2 is used by default in Ubuntu 18.04) are presented on the next screen - which is displayed immediately after your enable the Wi-Fi hotspot:

If you are ok with the defaults and don't want to change anything, that's all you have to do to create a Wi-Fi hotspot in Ubuntu 18.04.
Last edited: