8 bits only: Let’s build a router, part 2

What is IP

IPv6 packet header breakdown
datagram packet switching

How does IP work?


e.g. Creating two distinct ranges of IP addresses from one by using subnetting

That’s all great, but…..

Static IP and DHCP

Traffic to addresses of form 192.168.0.* to eth1

Traffic to addresses of form 192.168.1.* to eth2

Traffic to addresses of form 192.168.2.* to eth3

sudo ifup <interface name>

A router using a router to be a router…

Setting up a DHCP server

sudo apt install isc-dhcp-server.

It’s also worth noting that IP addresses assigned by each interface will be in the same subnet as that network interface. (e.g. interface assigns IP addresses of form 192.168.1.*, same for other two interfaces). This is important because it means any traffic intended for the interfaces assigned these IPs which goes to our router will be forwarded to the switch shared by those interfaces and the router, because of our earlier configuration of the subnets for each of the router’s network interfaces, which routes all traffic in the subnet to the corresponding interface.

Sudo systemctl restart isc-dhcp-server

Is that it?

Looking Forward




Working on storage management and infrastructure at Azure SQL

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Regarding Virgo store!

To humbly transform the design

Setting up a Jenkins Server on a Digital Ocean Droplet

Creating AR Applications with Asteroid

7 Lessons Learned from Passing My Azure Data Fundamentals Exam

04 of 100 Days Of Code

What I learned about screening coders

Creating Editable Tables With Flutter

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aashray Anand

Aashray Anand

Working on storage management and infrastructure at Azure SQL

More from Medium

More hacking on automating Wordle

Remote X11 access from VPSs

Compile your LaTeX documents faster on Windows with Docker

Just a simple Makefile to avoid to repeat yourself