User:AlpinePhil/Router: Difference between revisions

From Alpine Linux
(Created page with " {{Expand|To include information on ipv6}} This HowTo is written to indicate the basics necessary to get a simple router set up for a network. {{Tip|If your router is going to be a gateway to the internet, ensure you look at the next steps part of this tutorial to ensure that you look at items related to security, in particular setting up a firewall, which goes beyond the scope of this HowTo.}} {{Tip|Throughout this HowTo, it is presumed that you have a router provide...")
(No difference)

Revision as of 19:32, 18 September 2025

This material needs expanding ...

To include information on ipv6

This HowTo is written to indicate the basics necessary to get a simple router set up for a network.

Tip: If your router is going to be a gateway to the internet, ensure you look at the next steps part of this tutorial to ensure that you look at items related to security, in particular setting up a firewall, which goes beyond the scope of this HowTo.
Tip: Throughout this HowTo, it is presumed that you have a router provided by your ISP via which you can get an internet connection
Todo: Include a link to an article on connecting to an ISP directly using something like pppd.


Before You Start

This article presumes that you are familiar with the fundamentals of IP networks. In particular you should have a good understanding of the terms:

  • IP Address
  • Address Mask
  • CIDR (Notation of the form 192.168.1.0/24)

Ensure to Connect your router to your ISP router. This howto will presume throughout that this connection is set up on the interface eth0.

There are two options for your router, depending on whether you wish to use statically or dynamically assigned addresses for your network.

Statically assigned addresses are generally only suitable for networks where there are a very limited number of computers connecting to the router. Moreover, they are unsuitable for situations in which computers which you do not control will need access to your network, for example if you are setting up a router including a wireless interface.

Setting up a network with statically assigned addresses

Setting up a network with dynamically assigned addresses

Adding routes to subnets

Optional Next Steps

  • Set up a firewall on your router
  • Set up pppd on your router to manage an ISP connection directly
  • Set up hostapd to set up a wireless network