HOWTO: Setup a fixed IP address for your computer

From PardusWiki
Revision as of 10:48, 29 October 2011 by Atolboo (Talk | contribs)
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 Manager (P2008: Tasma > Internet & Network > Network Manager).

Remove the mark at the interface and select [Edit connection].
Select/mark "Use Manual Settings" and fill in:
     Address:  new fixed IP address
     Net mask: 255.255.255.0 (pull-down menu)
     Gateway:  Default Gateway of the router
         (for 'new fixed IP address' take an address just above the DHCP Client Range)
Select [Apply].
Mark the interface and the new IP address should appear.
Check if your internet connection in Firefox is still working and in case of problems return to "Automatic Query (DHCP)" in Network Manager.
Close Network Manager.
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox