Marks-Man

Administrator
Joined: Mar 15, 2021
Messages: 768
Resources: 335
Points: 63
Reaction score: 370
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.

images

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

268672-7k739.png


To know your gateway connect directly to your laptop ethernet port

open terminal and type following command:
Code:
ip route

Find default route :
In my case

Code:
default via 192.168.15.1 dev eth0.2 proto dhcp onlink

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


#
Code:
nano /etc/network/interfaces

Code:
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
address 192.168.15.250
gateway 192.168.15.1
netmask 255.255.255.0


auto br-lan
iface br-lan inet static
        address 10.168.1.254
       netmask 255.255.255.0

after saving and closing file execute the following command.

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