Diff for "Router"


Differences between revisions 44 and 46 (spanning 2 versions)
Revision 44 as of 2007-02-14 09:00:24
Size: 3708
Editor: CPE004010100002-CM0013718cb08a
Comment:
Revision 46 as of 2007-02-14 09:17:59
Size: 4176
Editor: CPE004010100002-CM0013718cb08a
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma section-numbers on
Line 33: Line 35:
== Setting Up Your Network Interfaces == == Internal Network Information ==
Line 35: Line 37:
=== Device Naming Overview ===

|| __'''eth0'''__ || network adapter connected to the WAN (Wide Area Network: your broadband connection) ||
|| __'''eth1'''__ || network adapter connected to a hub or switch ||
|| __'''wlan0'''__ || wireless network adapter ||

It is important to note that the names of the network devices above (__'''eth0'''__, __'''eth1'''__, and __'''wlan0'''__) are used as convention. It is very likely that your router will recognize its devices under different names (for exampl,e madwifi calls its wireless device __'''ath0'''__). Please substitute the names of your device accordingly. For information about how to change the names of your network devices, try `man iftab`.


=== Internal Network Configuration ===

Here are the values we'll use to set up our internal network. Advanced users use caution when changing them as the changes will need to be reflected in all further router configuration.
Here are the values we'll use to set up your internal network. ''Advanced users use caution when changing them as the changes will need to be reflected in all further router configuration.''
Line 59: Line 50:

== Setting Up Your Network Interfaces ==

=== Device Naming Overview ===

|| __'''eth0'''__ || network adapter connected to the WAN (Wide Area Network, i. e., your broadband connection) ||
|| __'''eth1'''__ || network adapter connected to a hub or switch ||
|| __'''wlan0'''__ || wireless network adapter ||
|| __'''br0'''__ || network bridge between __'''eth1'''__ and __'''wlan0'''__ that will treat the two like one device ||

It is important to note that the names of the network devices above (__'''eth0'''__, __'''eth1'''__, and __'''wlan0'''__) are used as convention. It is very likely that your router will recognize its devices under different names (for exampl,e madwifi calls its wireless device __'''ath0'''__). Please substitute the names of your device accordingly. For information about how to change the names of your network devices, try `man iftab`.

=== Configuring Network Interfaces ===

Please follow the applicable instructions in one of the following sections to configure your network interfaces,
 1. Wired Only
 2. Wireless only
 3. Both Wired and Wireless

==== Wired Only ====

==== Wireless Only ====

==== Both Wired and Wireless ====

This is where the new Ubuntu Router page is in development, please visit ["UbuntuWirelessRouter/New"] for more information


1. Setting up an Ubuntu Wired/Wirless Router

TableOfContents

1.1. Preface

This article exists due a lack of concise information and easily followed instructions on the subject of setting up an wired and/or wireless Ubuntu router. It is intended for advanced users who have or would like to set up a dedicated Ubuntu installation acting as a router at home or in their office. The end result is a powerful router that can provide functionality similar to popular products (for example, the Linksys WRT54G).

1.2. Prerequisites

1.2.1. Broadband Connection

A broadband connection like a cable or DSL modem is required. Your broadband service provider must either provide the necessary information to configure your IP address statically or provide a dynamically assigned address via DHCP. If your connection requires PPPoE (as can often be the case with DSL service), you'll find the existing the article ["ADSLPPPoE"] may be of value.

1.2.2. Router Hardware

You'll need a dedicated computer to act as the router. The computer can use old hardware and having the minimum requirements to install Ubuntu should suffice. The author of this article runs his router on a P3 600mhz processor with 256MB of RAM. You are encouraged use this as a server for other applications perhaps by installing postfix, apache, mysql, and/or samba. This guide recommends a server installation of Ubuntu, but there's no reason why a desktop installation wouldn't work. If you plan to be able to access the router remotely, install ssh before proceeding.

The following needs to be physically installed and recognized by the kernel on your router:

  • A network adapter connected to the broadband cable or DSL modem
  • For a wired network,

    • Another network adapter connected to a hub or switch
  • For a wireless network,

    • A wireless network adapter (which must be able to be set in "master" mode)
      • If your wireless network adapter is not recognized by your server installation of Ubuntu, it may use the madwifi chipset (like the D-Link DWL-G520). Please visit ["Router/Madwifi"] for more information.

  • For both a wired and wireless network,

    • All of the above

1.3. Internal Network Information

Here are the values we'll use to set up your internal network. Advanced users use caution when changing them as the changes will need to be reflected in all further router configuration.

Router

Address

192.168.0.1

Network

192.168.0.0

Netmask

255.255.255.0

Broadcast

192.168.0.255

Clients

Addresses

192.168.0.2 - 192.168.0.254

Netmask

255.255.255.0

Broadcast

192.168.0.255

Gateway

192.168.0.1

1.4. Setting Up Your Network Interfaces

1.4.1. Device Naming Overview

eth0

network adapter connected to the WAN (Wide Area Network, i. e., your broadband connection)

eth1

network adapter connected to a hub or switch

wlan0

wireless network adapter

br0

network bridge between eth1 and wlan0 that will treat the two like one device

It is important to note that the names of the network devices above (eth0, eth1, and wlan0) are used as convention. It is very likely that your router will recognize its devices under different names (for exampl,e madwifi calls its wireless device ath0). Please substitute the names of your device accordingly. For information about how to change the names of your network devices, try man iftab.

1.4.2. Configuring Network Interfaces

Please follow the applicable instructions in one of the following sections to configure your network interfaces,

  1. Wired Only
  2. Wireless only
  3. Both Wired and Wireless

1.4.2.1. Wired Only

1.4.2.2. Wireless Only

1.4.2.3. Both Wired and Wireless

Router (last edited 2017-08-31 21:44:51 by ckimes)