•  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

How to configure an IP range on Centos 7?

  • Home
  • Client
  • Qa Forum
  • How to configure an IP range on Centos 7?

Posted By: Alsatary | 1 Replies | Last Reply On: Sep 26, 2019 12:36:41

I had to reinstall Centos 7 on my server using IPMI and I am not 100% sure on how to configure the /29 you guys provided for my server.  Can you guys provide steps on how to configure the /29 ip range on my centos 7 server? 

Right now my server has no internet, so please help. 
 

Psychz - Bhaskar

Votes: 0Posted On: Sep 26, 2019 12:36:41
 

Since you have already accessed your server using IPMI and did a fresh install of CentOS 7 on your own, configuring IPs will a piece of cake for you. To do so, you will have to take control of your server again using an IPMI. Once you do so, the following steps will help you to configure an IP range for the system.

Prerequisites

  1. Operating system: CentOS 7
  2. Minimum of one Active network interface
  3. Root permission

Step 1 - Check the network interfaces by using the command:

# ifconfig

The network configuration file in CentOS 7 is stored in “/etc/sysconfig/network-scripts”. There are multiple network files under “network-scripts” directory depending on the number of interfaces configured. The following steps will show you how to bind a range of IPs.

Step 2 - Edit the network interface file to which you want the static IP assigned.

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

Note: This file can be edited using a VI editor to configure static IP in the server. The different parameters to be added are:

 

BOOTPROTO – It is the protocol to be implemented during Boot time. It has to be changed to “static” for static IP configuration.
IPADDR – Edit the IP address in the IPADDR field
PREFIX – Add the IP range that has to be configured.
NETWORK – Add the network IP of the IP range.
GATEWAY – Add the Gateway IP
DNS - Add the address of the DNS server.

Save and close the file.

Step 3 - Restart the network services by the command

# Systemctl restart network

 

This should configure the IP addresses on your machine.

Was this reply helpful?

Related topics

  • Calculate IP address range from subnet
  • 500 Gbps DDoS Protection for /24 IP Range
  • How to configure an IP range on Windows server?
  • CentOS 7: "CALL IT RED HAT 7 LITE"
  • How to assign IP address in Centos?
  • Centos 7 Static IP
  • Setup VPN on CentOS 8
  • Yum Update Not Working on Centos 7
  • Upgrade Centos 6 to Centos 7
  • Quagga Routing - Install, Configure and setup BGP
  • How to temporarily/permanently enable DDoS IP diversion for a Single IP Address?
  • Top Hosting Control Panels For Linux
  • EasyApache 4: better than ever?
  • In Comparison: FreeBSD VS Linux
  • OpenShift vs. Docker
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