•  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
      • nCDN
      • nIP Transit
      • nWavelength
    • Protection
      • pBackup
      • pDDoS
  •  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
    • 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
      • nCDN
      • nIP Transit
      • nWavelength
    • new-protection-header-img
      Protection
      • pBackup
      • pDDoS
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

어떻게를 CentOS 7 IP 범위를 구성하는 방법?

  • Home
  • Client
  • Qa Forum
  • 어떻게를 CentOS 7 IP 범위를 구성하는 방법?

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

나는 IPMI를 사용하여 내 서버를 CentOS 7을 다시 설치했고, 나는 나의 서버 제공 / 29 너희들을 구성하는 방법에 대한 100 % 확신합니다. 너희들은 내 CentOS에 7 서버에서 / 29의 IP 범위를 구성하는 방법에 대한 단계를 제공 할 수 있습니까?

지금 내 서버에는 인터넷이있다, 그래서 도움을 주시기 바랍니다.

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

  • CentOS에 7 : "RED HAT 7 LITE IT를 CALL"
  • 어떻게를 CentOS 7 MongoDB를 확보하는 방법?
  • Is Centos 8 the last stable OS release?
  • Is there any ARM version of CentOS?
  • How to assign IP address in Centos?
  • Centos Packet Capture
  • Setup VPN on CentOS 8
  • Yum Update Not Working on Centos 7
  • Upgrade Centos 6 to Centos 7
  • Linux의 경우 최고 호스팅 제어 패널
  • Installation of Lamp Stack on CentOS 7
  • sBlock - Backup on RHEL, CentOS, AlmaLinux & Rocky Linux
  • EasyApache 4 : 이전보다 더 나은?
  • 오픈 소스 프록시 서버 솔루션
  • FreeBSD의 VS 리눅스 : 비교
Copyright © 2025 Psychz Networks,
A Profuse Solutions Inc Company
Hosting Services
Infrastructure
  • iColocation
Compute
  • cMetal
  • cVirtual
Storage
  • sObject
  • sBlock
Networking
  • nCDN
  • 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
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