So you need to set up static ip.
This guide was written by bacon665, Many thanks to his efforts and time. It is much appreciated.
*This Guide does not cover GUI configuration utilities
The first thing we need to do is decide how you are going to be editing the config files.
This requires the text editor of your choice, and ROOT access.
Here is a nice set of text editors:
nano
VIM
Emacs
OpenOfficeWriter
G-edit
Any text editor should work.
We need to gain ROOT access for the editor(or take ownership of the file), there are several ways of doing this.
In a command Prompt:
for UserMode based distros (debian/ubuntu/Knoppix/and their derrivatives)
~@domain $- sudo
or
~@domain $- chown
in the case of chown you can open the file in a text editor without worrying about root
For Runlevel based systems (Fedora/RedHat/Gentoo/And their derivatives)
~@Domain $-su -
Password:
Root@Domain $-
and then launch your text editor.
Or you can log in as root open a text editor and edit the files that way.
Step One: Add DNS entries.
1: Open the file /etc/resolv.conf
2: Add some DNS addresses.
To do this add the following to the file
nameserver XXX.XXX.XXX.XXX - IP address of primary name server
nameserver XXX.XXX.XXX.XXX - IP address of secondary name server
nameserver xxx.xxx.xxx.xxx
you can add as many as you want but remember to substitute xxx.xxx.xxx.xxx with addresses.
Step Two: Static IP (for runlevel based users) (Usermode see Step Three)
The example command for these systems is:
/sbin/ifconfig eth0 192.168.10.12 netmask 255.255.255.0 broadcast 192.168.10.255
Network address by convention would be the lowest: 192.168.10.0
Broadcast address by convention would be the highest: 192.168.10.255
The gateway can be anything, but following convention: 192.168.10.1
Note these changes will not be permanent
To execute this command upon start up add the command to /etc/rc.d/rc.local
you may SKIP step three because you are now done.
Step Three: Static IP (for Usermode Distributions)
We need to edit the file: /etc/network/interfaces
Here is an example configuration:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 208.88.34.106
netmask 255.255.255.248
broadcast 208.88.34.111
network 208.88.34.104
gateway 208.88.34.110
Congratulations you are done. That wasn't so hard now was it?
This guide was written by bacon665, Many thanks to his efforts and time. It is much appreciated.
