ServePath Dedicated Server Hosting
What's This? GoGrid - Cloud & Hybrid Infrastructures

Worldwide: +1 415.869.7000

  • Customer Login
  • Email Us
  • Request A Call
  • Live Chat
  • Dedicated Hosting
  • Hybrid Hosting
  • Managed Services
  • Why ServePath
  • Company
  • Support

Support

  • Support
  • Knowledge Base
  • FAQs
  • Resource Center
  • Dedicated Server Flash Tutorials
  • Professional Services
  • Dedicated Service Teams
  • New Customer Starter Kit

Questions? Call Us!

Live Chat

Server Specials

From: $179.99 /month

Start Saving Now

Microsoft WebsiteSpark Hosting for your professional web design and development business. Microsoft BizSpark Hosting for your Startup

Red Hat IP Configuration

  • Linux Servers
  • Managed Services
  • Professional Services
  • Cloud Hosting

The IP configurations on the Red Hat distribution of the Linux operating system are stored in the directory /etc/sysconfig/network-scripts/. Each interface, as well as sub-interface, requires a unique configuration file.

The below example assigns the interface eth0 an IP address of 192.168.1.42 on a class C network with 192.168.1.1 as the gateway.

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

DEVICE=eth0
IPADDR=192.168.1.42
NETMASK=255.255.255.0
ONBOOT=yes
GATEWAY=192.168.1.1

In order to assign multiple IP addresses on the same interface (eth0), there must be a configuration file for the sub-interface eth0:0 (incrementing as necessary). The below example will add three more IP addresses to the same interface:

/etc/sysconfig/network-scripts/ifcfg-eth0:0:

DEVICE=eth0:0
IPADDR=192.168.1.41
NETMASK=255.255.255.0
ONBOOT=yes

/etc/sysconfig/network-scripts/ifcfg-eth0:1:

DEVICE=eth0:1
IPADDR=192.168.1.44
NETMASK=255.255.255.0
ONBOOT=yes

/etc/sysconfig/network-scripts/ifcfg-eth0:2:

DEVICE=eth0:2
IPADDR=192.168.1.45
NETMASK=255.255.255.0
ONBOOT=yes

Note that a gateway statement is not necessary in this file because the same gateway was defined in /etc/sysconfig/network-scripts/ifcfg-eth0.

To update your system's IP configuration after making changes to the /etc/sysconfig /network-scripts/ directory, execute:

# service network restart

Make sure to double-check your configuration as this could leave your server unreachable.


  • Dedicated Hosting
    • Load Balanced Server Networks
    • Dedicated Server Specials
    • Compare Dedicated Server Packages
  • Hybrid Hosting
    • Hybrid Hosting Case Studies
    • Sample Hybrid Network Configurations
  • Managed Services
    • Security Services
    • Backup & Storage
    • Networking Services
    • Monitoring Services
    • Content Delivery Network
    • Load Balancing
  • Why ServePath
    • Service Level Agreement
    • San Francisco Datacenter
    • Screaming Fast Network™
    • Certifications
    • Customer Testimonails
    • Customer Case Studies
  • Company
    • Contact ServePath
    • ServePath Leadership
    • Partners
    • News & Press
    • Events
    • Awards
    • Referral Programs
    • Careers
  • Support
    • Knowledge Base
    • FAQs
    • Resource Center
    • Dedicated Server Flash Tutorials
    • Professional Services
    • Dedicated Service Teams
    • New Customer Starter Kit

Use of ServePath services is subject to our Terms of Service, SLA, AUP, and Privacy Policy. Copyright © 2001 - 2010 ServePath. All rights reserved.