Chapter 1. Configuring a Router

In this chapter, we will cover:

  • Setting up the physical network
  • Configuring IPv4
  • Configuring IPv4 permanently
  • Connecting two networks
  • Enabling NAT to the outside
  • Setting up DHCP
  • Setting up a firewall with IPtables
  • Setting up port forwarding
  • Adding VLAN Tagging

Introduction

This chapter introduces some of the basic networking concepts and the methods to utilize them on Linux systems. It provides us with a good base to build upon. We're going to start with two computers connected with a single network cable and work our way from there to configure a router to connect your network to the Internet.

Routers are devices that are configured to span multiple networks and forward packets between them as needed. They also perform

Get Linux Networking Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.