Set up of fixed IP adress on rhel

Hi,

I want to create a fixed ip address for a domain that is on my own dedicated server running rhel.

I can;t seem to find a tutorial that I understand and would apprecaite if someone could assist.

Also, how do I find out what address to give the domain? surely I shouldn’t just dream one up? lol

bazz

That would be something assigned to you by your ISP (within their block of IP Addresses). Be aware, though, that a fixed (dedicated) IP address will cost you more (from many hosts).

Regards,

DK

Hi,

Is this in regards to your home connection? If you have a dynamic IP address (one that changes every time you reconnect) you will need to contact your ISP into acquiring a static IP (one that doesn’t change every time you reconnect).

If this is a dedicated server in a datacentre - then the commands are as per below:

File: /etc/sysconfig/network-scripts/ifcfg-eth0
Note: you can use vi, nano or whichever editor may be the one that you use.

And enter as per below:

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes

IPADDR=static-ip
NETMASK=netmask (most likely 255.255.255.0 for you)
GATEWAY=gateway-ip

Once you have entered those values - you need to restart networking in order for these changes to apply:

service network restart

notau