HOWTO: Setup a fixed IP address for your computer

From PardusWiki
Jump to: navigation, search

Introduction

When you use your PardusPC in a LAN network for sharing printer(s) or remote file sharing with another LinuxPC(ssh) or WindowsPC(samba) it is highly advisable to give all computers a fixed IP address.

This is to prevent problems after a restart of the computer(s).

What we need

We need to know the "DHCP Client Range" and the "Default Gateway" of the router. The DHCP Client Range can only be found after making contact with the router.

How to get access to the router is in the manual of the router.

Once you have access to your router check for:


We also need to know the value(s) of the used DNS Servers in DHCP mode.

The value of the used DNS servers can be obtained with the command (in konsole):

cat /etc/resolv.conf

and read the value(s) of nameserver.

Changing the IP address

Open System Settings > Network Settings > Network Connections.

Select the tab and the connection of the interface and select [Edit...].
     Mark at "Connect automatically"
Select "IPv4 Address" and fill in/mark at:
     Basic settings
     Method: Manual
     IP Address:  new fixed IP address
     Subnet Mask: 255.255.255.0
     Gateway:  Default Gateway of the router
         (for 'new fixed IP address' take an address just above the DHCP Client Range)
     DNS Servers: use "..." to add the previous found value(s) of nameserver.
     IPv4 is required for this connection
Select [OK].

Temporary remove the mark "Enable networking" in Network Management in the task bar.

Check if your internet connection in Firefox is still working and in case of problems return to "Automatic (DHCP)" in Network Connections.
Close Network Connections.
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox