I would recommend static network addresses for servers, anyway. It's much easier that way.
You can set up a static network address by changing your /etc/sysconfig/network-scripts/ifcfg-xxxx file (xxxx is the name of your network interface, like eth0, em1, p33p1, etc...)
For example, here is the ifcfg file on one of my machines that has a static network address.
Code:
NM_CONTROLLED="yes"
BOOTPROTO=none
DEVICE="p33p2"
ONBOOT=yes
HWADDR=6C:62:6D:7C:0C:31
TYPE=Ethernet
IPADDR0=192.168.1.20
PREFIX0=24
GATEWAY0=192.168.1.254
DNS1=192.168.1.254
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System p33p2"
chances are, on your system, these are the only 5 lines you will need to change:
Code:
BOOTPROTO=none ------------------------ BOOTPROTO=dhcp tells it to use DHCP and dynamic addressing
IPADDR0=192.168.1.20 ------------------- network address you wish to assign
PREFIX0=24 --------------------------------- netmask - equilivant to 255.255.255.0
GATEWAY0=192.168.1.254 ---------------- address of router/gateway
DNS1=192.168.1.254 ----------------------- address of your DNS server (I used my router address, which pulls DNS from my ISP)