•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Backup
    • Content Delivery Network
    • Colocation Hosting
    • Dedicated Hosting
    • DDoS Mitigation
    • IP Transit
    • Private Cloud
    • Wavelength
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • Dedicated Servers
    • Colocation
    • Private Cloud
    • DDos Protection
    • IP Transit
    • CDN
    • Backup
  • 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

  • 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
  • Views: (11813)
  • Votes: (-17)
Was this article helpful?
VOTE

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 like this :

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

 

 

Hosting Services
  • Dedicated Hosting
  • Colocation Hosting
  • Backup
  • IP Transit
  • DDoS Mitigation
Support
  • Portal Login
  • Knowledgebase
  • Community
Company
  • About Us
  • Contact Us
  • Network
  • Data Centers
  • Looking Glass
  • Affiliates
  • Reseller
  • Blog
Policies
  • Privacy Policy
  • Acceptable Usage Policy
  • Terms and Conditions
  • Service Level Agreement
Company
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801
Subscribe to Our Mailing List
* indicates required
Copyright © 2023 Psychz Networks, A Profuse Solutions Inc Company