Configure Linux Networking
Login as root. Edit /etc/sysconfig/network-scripts/ifcfg-eth0. Set the IP Address, gateway, and subnetmask to the assigned values from the ISP
DEVICE=eth0 BOOTPROTO=none IPADDR=22.214.171.124 NETMASK=255.255.255.224 ONBOOT=yes USERCTL=no TYPE=Ethernet GATEWAY=126.96.36.199
127.0.0.1 colosolutions.globalnetwatch.com localhost.localdomain localhost colosolutions
NETWORKING=yes HOSTNAME=colosolutions.globalnetwatch.com GATEWAY=188.8.131.52 GATEWAYDEV="eth0" FORWARD_IPV4="yes"
Edit /etc/resolv.conf and set up the DNS servers. The first entry should be a local DNS server provided by the Colocation ISP. If the ISP provides a second nameserver, list that as well. Fill the remaining (max. 3 total) with GNW DNS servers as backup.
search globalnetwatch.com nameserver 184.108.40.206 nameserver 220.127.116.11 nameserver 18.104.22.168
In the examples above, I'm configuring an ethernet interface 'eth0' with the IP address '22.214.171.124' and a network mask of '255.255.255.0'. The 'up' that trails the command tells the interface that it should become active, but can usually be omitted, as it is the default. To shutdown an interface, you can just call ifconfig eth0 down. To restart all network interfaces type service network restart.