•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Infrastructure
      • iColocation
    • Compute
      • cMetal
      • cVirtual
    • Storage
      • sObject
      • sBlock
    • Networking
      • nIP Transit
      • nWavelength
    • Protection
      • pBackup
      • pDDoS
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
    • Status
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • new-colocation-header-img
      Infrastructure
      • iColocation
    • new-compute-header-img
      Compute
      • cMetal
      • cVirtual
    • new-storage-header-img
      Storage
      • sObject
      • sBlock
    • new-networking-header-img
      Networking
      • nIP Transit
      • nWavelength
    • new-protection-header-img
      Protection
      • pBackup
      • pDDoS
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

Centos add virtual IP(s)

  • Home
  • Client
  • Knowledgebase
  • Network
  • Centos add virtual IP(s)

Table Of Content

    Related Articles

    • IPv4 Subnets Explained: /31, /30, /29, /28, /27, /26 (How Many IPs You Can Actually Use)
    • Setup VPN on CentOS 8
    • Data Center Redundancy: N+1
    • What is the difference between Latency, Bandwidth and Throughput?
    • How To Point A Domain Name To An IP Address
    • How to do a speed test using Psychz looking glass?
    • Quagga Routing - Install, Configure and setup BGP
    • Guide to establish a GRE Tunnel and BGP peering session on MikroTik RouterOS
    • Common Types of Network Attacks
    • Community Strings For Psychz Networks
    • IPv4 - Subnetting made easy

    Centos add virtual IP(s)

    Publisher: Psychz Networks January 05,2015

    The first step before configuring any IP on any Linux machine is to run

    # ifconfig

    this will show you how many other IP addresses are configured.

    The following snippet shows that eth1 is the only IP configured on the server.

    eth1 Link encap:Ethernet HWaddr 00:25:90:67:09:E5
    inet addr:192.168.100.1 Bcast:104.149.3.47 Mask:255.255.255.0
    inet6 addr: fe80::225:90ff:fe67:9e5/64 Scope:Link

    You can add several virtual IP addresses to a physical network interface.

    Create a configuration file called ifcfg-<interface name>:0 in /etc/sysconfig/network-scripts/

    The syntax of the configuration will be as follows :

    DEVICE="eth0"
    BOOTPROTO="static"
    ONBOOT="yes"
    IPADDR=x.x.x.x
    GATEWAY=x.x.x.x
    NETMASK=255.255.255.0
    TYPE=Ethernet

    Then restart the service and you should be good to go.

    service network restart

    Views: (1561) Votes: (0)

    Related Articles

    • IPv4 Subnets Explained: /31, /30, /29, /28, /27, /26 (How Many IPs You Can Actually Use)
    • Setup VPN on CentOS 8
    • Data Center Redundancy: N+1
    • What is the difference between Latency, Bandwidth and Throughput?
    • How To Point A Domain Name To An IP Address
    • How to do a speed test using Psychz looking glass?
    • Quagga Routing - Install, Configure and setup BGP
    • Guide to establish a GRE Tunnel and BGP peering session on MikroTik RouterOS
    • Common Types of Network Attacks
    • Community Strings For Psychz Networks
    • IPv4 - Subnetting made easy
    Copyright © 2026 Psychz Networks,
    A Profuse Solutions Inc Company
    Hosting Services
    • Catalog
    Infrastructure
    • iColocation
    Compute
    • cMetal
    • cVirtual
    Storage
    • sObject
    • sBlock
    Networking
    • nIP Transit
    • nWavelength
    Protection
    • pBackup
    • pDDoS
    Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
    Policies
    • Acceptable Usage Policy
    • Privacy Policy
    • Service Level Agreement
    • Terms and Conditions
    Support
    • Community
    • Knowledge Base
    • Open A Ticket
    • Status
    Get In Touch
    • Psychz Networks,
      A Profuse Solutions Company
      611 Wilshire Blvd #300
      Los Angeles,California 90017
      USA
    • US/Canada: 800-933-1517
    • International: 626-549-2801