APC

Route traffic between networks using a Pi

A deep-dive into Pi networking solutions resulted in this tutorial. The goal was to uncover a Pi configuration that would enable the routing of network traffic from a wired network to a wireless network. The aim is to build a network router using a Raspberry Pi. The Pi router would be responsible for moving network traffic between a wired Ethernet network and a wireless Wi-Fi network.

The Ethernet network is a local area network (LAN) with hosts (PCs) connected. The Wi-Fi connects to a larger network via a network access point (AP). A router is required to move traffic between the two networks. We’re going to build that routing device while exploring the network theory. Strap in, people!

The Pi router will use a number of networking services. The LAN side of the Pi will require DHCP services to provide host’s private IP addresses when they connect. The Wi-Fi side of the Pi will need to be configured to connect to an AP in the other network. Because the wired and wireless networks are separate, the Pi needs to route traffic between these two networks interfaces. The network address translation (NAT) service will be used to route the LAN network traffic back and forth to the Wi-Fi network.

Internet protocol (IP) basics

Before examining the Pi configuration, let’s review some of the networking theory involved. We’ll start by introducing some IP address concepts. An IP address is the convention used to identify (address) devices in a network that uses the transport control protocol/internet protocol (TCP/ IP). The IP address provides the same function for network

You’re reading a preview, subscribe to read more.

More from APC

APC8 min readIntelligence (AI) & Semantics
Working With Robots: Will It Make Us Lazy?
We explore the trends and technologies that are set to shape the future Robots make us lazy. Not because Roombas are vacuuming our houses, but because humans have a habit of slacking off when sharing tasks. That’s according to recent research that h
APC2 min read
Reviews
35 Asus Zenbook 14 OLED 36 Acer Helios Neo 18 37 Samsung 990 Evo 38 MSI MPG 321URX QD-OLED 39 Samsung Odyssey G9 OLED 40 Benq XL2546X 41 Thermaltake Tower 300 Micro Case 42 Sapphire 7600 XT 43 Sapphire Nitro+ RX 7900 GRE 45 XP Pen Artist Pro 16 44 Wa
APC3 min read
Asus Zenbook 14 OLED (UX3405)
PRICE $2,399 WEB asus.com/au Asus has been putting out some cracking laptops in recent years, and while the Zenbook 14 OLED isn’t perfect, it offers a compelling range of features for a quite reasonable price. The UX3405 sits in the diverse Zenbook

Related Books & Audiobooks