HOWTO: Setup a fixed IP address for your computer

From PardusWiki
(Difference between revisions)
Jump to: navigation, search
(Changing the IP address)
 
(3 intermediate revisions by one user not shown)
Line 5: Line 5:
 
==What we need==
 
==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.
 
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.
 
How to get access to the router is in the manual of the router.
  
 
Once you have access to your router check for:
 
Once you have access to your router check for:
 
* DHCP Client Range
 
* DHCP Client Range
* Default Gateway (if not present it will be the IP address to get access to the router)
+
* Default Gateway (if not present in the manual, try the IP address to get access to the router)
 +
 
 +
 
 +
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):
 +
 
 +
{{command|cat /etc/resolv.conf}}
 +
 
 +
and read the value(s) of nameserver.
  
 
==Changing the IP address==
 
==Changing the IP address==
Open Tasma > Internet & Network > Network Manager.  
+
Open System Settings > Network Settings > Network Connections.  
::Remove the mark at the interface and select [Configure connection].
+
::Select the tab and the connection of the interface and select [Edit...].
::Select "Manual" and fill in:
+
      Mark at "Connect automatically"
       Address:  new fixed IP address
+
::Select "IPv4 Address" and fill in/mark at:
       Net mask: 255.255.255.0 (pull-down menu)
+
       Basic settings
 +
      Method: Manual
 +
      IP Address:  new fixed IP address
 +
       Subnet Mask: 255.255.255.0
 
       Gateway:  Default Gateway of the router
 
       Gateway:  Default Gateway of the router
 
           (for 'new fixed IP address' take an address just above the DHCP Client Range)
 
           (for 'new fixed IP address' take an address just above the DHCP Client Range)
::Select [Apply].
+
      DNS Servers: use "..." to add the previous found value(s) of nameserver.
::Mark the interface and the new IP address should appear.
+
      IPv4 is required for this connection
::Check if your internet connection in Firefox is still working and in case of problems return to "Automatic Query (DHCP)" in Network Manager.
+
::Select [OK].
::Close Network Manager and Tasma.
+
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.

Latest revision as of 11:34, 29 October 2011

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