Tutorials Turn Linux Server into a router (UBUNTU).

Marks-Man

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

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

Read more

Continue reading...
 
Top