HOWTO: Setup a fixed IP address for your computer
(→Changing the IP address) |
(→Changing the IP address) |
||
| (7 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | |||
== Introduction== | == 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. | 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. | ||
| Line 6: | 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 | + | * 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 | + | Open System Settings > Network Settings > Network Connections. |
| − | :: | + | ::Select the tab and the connection of the interface and select [Edit...]. |
| − | ::Select " | + | Mark at "Connect automatically" |
| − | Address: new fixed IP address | + | ::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 | 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 [ | + | DNS Servers: use "..." to add the previous found value(s) of nameserver. |
| − | + | IPv4 is required for this connection | |
| − | ::Check if your internet connection in Firefox is still working and in case of problems return to "Automatic | + | ::Select [OK]. |
| − | ::Close Network | + | 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:
- DHCP Client Range
- 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):
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.