Joined: Mar 15, 2021
Messages: 985
Resources: 402
Points: 93
Reaction score: 863
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:
ip route

Find default route :
In my case

default via dev eth0.2 proto dhcp onlink

Try to use same subnet if you don't want to do complex routing.

So gateway is, I will choose my server IP to be

br-lan adapter will be configured on subnet

Open and edit Network INTERFACES

nano /etc/network/interfaces

source /etc/network/interfaces.d/*
# Network is managed by Network manager
auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet static

auto br-lan
iface br-lan inet static

after saving and closing file execute the following command.

 systemctl restart networking

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):

Ubuntu turn on WiFi

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:

Ubuntu Wi-Fi settings

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:

Turn on Wi-FI Hotspot Ubuntu Gnome

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:

Ubuntu Hotspot details

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:
  • Tags
    debian into laptop linux networking networking guide old redhat server turn ubuntu
  • Top