You are here: Portal Home > Knowledgebase > Linux > Configure IP Networking
Please Login

Configure IP Networking

Centos based system use the file /etc/sysconfig/network to read the saved hostname at system boot. This is set using the init script /etc/rc.d/rc.sysinit

  vi /etc/sysconfig/network

NETWORKING=yes
HOSTNAME="my.domainname.com"
GATEWAY="111.222.333.1"
GATEWAYDEV="eth0"
FORWARD_IPV4="yes"

 

 

TCP/IP Network Configuration Files

This configures Linux so that it knows which DNS server will be resolving domain names into IP addresses

  vi /etc/resolv.conf

 

search name-of-domain.com - Name of your domain or ISP's domain if using their name server
nameserver XXX.XXX.XXX.XXX - IP address of primary name server
nameserver XXX.XXX.XXX.XXX - IP address of secondary name server

Locally resolve node names to IP addresses

vi /etc/hosts

 

::1             localhost6.localdomain6 localhost6
# Do not remove the following line, or various programs
# that require network functionality will fail.
111.222.333.444            yourname.server.com yourname
127.0.0.1               localhost

 

Configuration settings for your first ethernet port

vi /etc/sysconfig/network-scripts/ifcfg-eth0

 

DEVICE=eth0
BOOTPROTO=static
BROADCAST=111.222.333.255
IPADDR=111.222.333.444
NETMASK=255.255.255.0
NETWORK=111.222.333.0
ONBOOT=yes
GATEWAY=111.222.333.1
 

Then you need to restart your network

 

service network restart



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Can I manage my own DNS? (Views: 3504)
cPanel email logs (Views: 1359)

Client Login

best hosting
Remember Me  

Search

uk web hosting

managed server
 
All Content © 2000-2011 Fast2host Limited. All Rights Reserved.
UK Company Registration Number: 05348700VAT Number: GB 884 9830 61 — BGP4 Network AS48825

Fast2host provides the best in hosting. Should you find that our services do not meet your specifications, we offer a full refund, providing your service cancellation is made within 30 days of opening your account. (The 30 day guarantee applies to Shared Hosting Solutions, for other solution guarantees please see 30 Day Money Back Guarantee.)

With the latest cloud VPS technology and infrastructure located in the UK, within our own datacenter, we can help your business thrive on the internet. Fast2host can setup and host sites whatever your hosting needs. Whether you're just establishing a presence on the internet, or you want to manage, maintain and monitor an eBusiness web hosting solution, we can help.

This is what makes Fast2host different, we provide a unique web hosting service for each client, including adult web hosting, providing close contact and support to create 100% satisfaction. We are here to help and support you throughout.

A dedicated server can be rebooted remotely. Cloud vps hosting allows you to reinstall OS instantly. Cpanel hosting you can restore files yourself. 100% White Label Reselling hosting you can make money today.