IP Settings for new server

divinelighting

Verified User
Joined
Mar 17, 2008
Messages
108
I am colocating a server so I need to be sure that IP settings are correct before it gets installed. This is a new minimal Centos 6.2 x64 build destined for Directadmin. There will be no other hardware installed. I have 5 usable IP's.

The following is my best guess as to the settings I need to have when I send out the server. Please help me out with the questions.

If my server is karuna.divineled.com, would it look like this?

/etc/sysconfig/network
NETWORKING=yes
HOSTNAME="karuna.divineled.com"
GATEWAY="xxx.xxx.xxx.xxx" <- THIS WILL BE PROVIDED BY DATACENTER
GATEWAYDEV="eth0"
FORWARD_IPV4="yes"


/etc/resolv.conf
search divineled.com - <- SHOULD THIS BE MYDOMAIN.COM?
nameserver XXX.XXX.XXX.XXX - <- SHOULD THIS BE 8.8.8.8 Google?
nameserver XXX.XXX.XXX.XXX - <- 8.8.4.4?

/etc/hosts
::1 localhost6.localdomain6 localhost6 <-ENTER EXACTLY AS SHOWN?
# Do not remove the following line, or various programs
# that require network functionality will fail.
111.222.333.444 karuna.divineled.com karuna <-MY FIRST IP ADDRESS?
127.0.0.1 localhost <- ???

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=111.222.333.255 <- ???
IPADDR=XXX.XXX.XXX.XXX <- SERVER'S FIRST IP?
NETMASK=255.255.255.248 <-THIS NUMBER WAS PROVIDED
NETWORK=111.222.333.0 <- ???
ONBOOT=yes

Most of this info comes from http://www3.wiredgorilla.com/content/view/346/51/
but I want to double check with folks here because if I get locked out it will be a major bummer.

Last question. I currently own but do not use divineled.com. If I have future plans for it for an ecommerce site, should I reserve another domain name for the server name, such as divineledserver.com?

Thanks for helping a newbie out!
 
I post here my actual files just hiding the ips.

Code:
>cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=SERVER_HOSTNAME
GATEWAY=GATEWAY_IP

Code:
>cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

Code:
>cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost
::1                     localhost6
SERVER_IP            SERVER_HOSTNAME

Code:
>cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet
DEVICE=eth0
BOOTPROTO=static
HWADDR=NIC_MAC_ADDRESS
IPADDR=SERVER_IP
NETMASK=SERVER_SUBNET_MASK
ONBOOT=yes

Ofc you need to set just the main ip, the additional will be added from DirectAdmin CP

Regarding the last question, no, the hostname is just one, choose your one and you will not have to configure anything else.

karuna.divineled.com is ok as hostname.

Remember to manage DNS of divineled.com and add A record for karuna (with server main IP) and (probably this have to be done by your datacenter) the reverse from IP to same hostname.

Hope has been enough clear.

Regards
 
Back
Top