Welcome to the IPFire Wiki

This wiki is a community-maintained resource about everything there is to know about IPFire. Join us and help us improving it!

Looking for something?

Use the search and find answers to everything about IPFire. If you cannot find what you are looking for, join our community and talk to fellow IPFire users, developers and everybody else involved in the project.

IPFire Community

Differences in Revisions: Step 5: Network Setup

Fixing capitalisation of acronym: NIC
# Step 5: Network Setup
 
![](/en/installation/install_network_selection1.png "Choose your network configuration ")
 
Now you are getting to the heart of IPFire, the setup of the network.
As described in the preparation steps, you should already know how your own network will be set up in the following steps.
 
![](/en/installation/installer_netcard_address02.png)
 
In a standard IPFire installation it is **<color green>Green</color>** + **<color red>Red</color>**, which means 2 Networks. Typically you have one network for your home computers, your **<color green>Green</color>** network, and then an Internet connection for the other network, your **<color red>Red</color>** network.
 
A maximum of 4 networks is possible - namely **<color green>Green</color>**, **<color blue>Blue</color>**, **<color orange>Orange</color>** and **<color red>Red</color>**.
 
| **<color red>Red</color>** | WAN | External network, Connected to the Internet (typically a connection to your ISP) |
| **<color green>Green</color>** | LAN | Internal/Private network, connected locally |
| **<color orange>Orange</color>** | [DMZ](http://en.wikipedia.org/wiki/DMZ_%28computing%29) | The DeMilitarized Zone, an unprotected/Server network accessible from the internet |
| **<color blue>Blue</color>** | [WLAN](http://en.wikipedia.org/wiki/WLAN) | Wireless Network, A separate network for wireless clients |
 
When using **<color blue>Blue</color>**, it is recommended to assign it to a nic and connect a separate access point to it. Still it is also possible to assign a **supported** [wireless card](http://wiki.ipfire.org/en/hardware/networking) **<color blue>Blue</color>** status but the "hostapd" add on will be required to handle wireless connections.
When using **<color blue>Blue</color>**, it is recommended to assign it to a NIC and connect a separate access point to it. It is also possible to assign a **supported** [wireless card](http://wiki.ipfire.org/en/hardware/networking) **<color blue>Blue</color>** status but the "hostapd" add on will be required to handle wireless connections.
 
 
 
 
#### Assigning the NICs
 
![](/en/installation/installer_netcard_assignment.png "Assign NICs ")
 
All of the previously chosen networks must have a network interface card (NIC) assigned.
In some cases, you may not have a NIC to assign to Red -- for example when using a dialup modem. For more information about the different linktypes, see [here](/en/installation/linktypes).
If you know what MAC address is related to which NIC you can assign them now.
 
In the simplest network, Red and Green, you basically have a 50/50 chance. The easiest thing is just assign one to each, if you can't ping out from your IPFire installation, change the network cables and try again. Keep in mind that you may have to reset your ISP's equipment (cable modem, etc.) before it will recognize a new device. A different NIC counts as a different device.
 
 
![](/en/installation/installer_netcard_assignment1.png)
 
![](/en/installation/installer_netcard_assignment2.png)
 
#### Network Addresses
 
![](/en/installation/installer_netcard_address1.png)
 
Assign addresses to your network interfaces. Any valid IP address [reserved for a LAN](http://en.wikipedia.org/wiki/Private_network) will work here (like 192.168.*.*). It is standard practice for the interface to be on .1 of the range for a local network. Here you must configure your networks and subnet masks. A standard setting for a <color green>Green</color> interface would be 192.168.0.1 with a subnet mask of 255.255.255.0.
 
 
 
![](/en/installation/installer_netcard_address2.png)
 
![](/en/installation/installer_netcard_address3.png)
 
This warning can be ignored when installing from a physical CD, since you are not yet connected to a network. You will have to take care when modifying networking settings afterwards from a remote shell using the command "setup".
 
![](/en/installation/installer_netcard_address04.png)
 
![](/en/installation/installer_netcard_address4.png)
 
 
 
The "**<color red>Red</color>**" interface is special because its configuration depends on your ISP and the way it configures your external connection (your Internet connection).
 
![](/en/installation/installer_netcard_address6.png)
 
 
Depending on your [connection type](/en/installation/linktypes) you must setup your corresponding details.
If you are unsure, try DHCP. If necessary, get the required settings from your ISP, such as which type of authentication is required, and what authentication credentials (if any) you will have to provide.
 
#### DNS and Gateway Installation
 
![](/en/installation/install_dnsgateway1.png)
 
In addition to specifying your [connection type](/de/installation/linktypes) you might have to set up your Gateway (the next hop after your IPFire) and most probably your preferred DNS (Domain Name Service) servers. If you've selected DHCP in the previous step, then these values will be configured automatically, so no need to specify them here.
 
 
![](/en/installation/install_dnsgateway2.png)
 
##### DHCP Server
 
![](/en/installation/install_dhcp1.png)
 
The last thing to configure is the DHCP (Dynamic Host Configuration Protocol) Server for the Green Interface.
You just have to enable the DHCP server by enabling the tick within the brackets and enter the start and end values of your desired IP range.
A widely used range is 192.168.0.2 and 192.168.0.254 so type it into the corresponding fields unless you prefer another IP range. You can not use the IP Address of your Green Interface and also the last IP of your green network range. P.e. for your 192.168.0.0/24 network it is 192.168.0.255 you can not use. You can narrow always it down to a smaller range if you do not plan to use that many PCs in your green network, or to reserve space for static IPs. These settings can always be changed later with the web interface ( your administrative client must have an IP out of the green network, probably by a temporary static setting ).
The configuration of DHCP with "setup" is possible during installation only.
 
[](./step6)