LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-04-2024, 04:02 AM   #1
PWR24
LQ Newbie
 
Registered: Jan 2024
Posts: 1

Rep: Reputation: 0
Question How to manually add IPs to cPanel-expired server [CENTOS 7.9?


Hi, and happy New Year!

Please help I have a trouble because don't know how to manually add IPs to cPanel server without active license. The problem is most instructions use Network Manager but it's not used by cPanel.

So I have few IPs with gateway's from datacenter.

OS CentOS 7.9

I go to: /etc/sysconfig/network-scripts/

Code:
-rw-r--r--. 1 root root   277 Oct 27  2021 ifcfg-eno1
-rw-r--r--. 1 root root   387 Jul 13 19:25 ifcfg-eno2
-rw-r--r--. 1 root root   285 Oct 27  2021 ifcfg-enp4s0f0
-rw-r--r--. 1 root root   285 Oct 27  2021 ifcfg-enp4s0f1
-rw-r--r--. 1 root root   254 May 22  2020 ifcfg-lo
[...]
File ifcfg-eno1
Code:
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eno1
UUID=af0a55c8-44d0-44a2-801c-b481fc2bd678
DEVICE=eno1
ONBOOT=no

File ifcfg-enp4s0f0
Code:
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp4s0f0
UUID=ed163125-06a0-425a-8514-3d077e54aa8c
DEVICE=enp4s0f0
ONBOOT=no
So can't find current assigned IPs to copy settings to new.
 
Old 01-04-2024, 02:36 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
Like following.
DEVICE=eno1
BOOTPROTO=none
ONBOOT=yes
PREFIX=24
IPADDR=192.168.2.203
 
Old 01-04-2024, 03:28 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,716

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Welcome to LinuxQuestions.

License expired from whom, the data center?

The current IPs seem to be assigned by a DHCP server and can be accessed by running the command
ip a

If the output does not show any addresses you need to contact the data center. You can not blindly add IP addresses because that may cause an address conflict and disrupt the network and whomever else has that same address.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
directory in cPanel“userdata” different from the /var/cpanel/users/ directory? jobair121 Linux - Server 1 09-10-2014 03:18 PM
Unifying permissions between two servers (CentOS + Webmin/CentOs +Cpanel) and rsync d60eba Linux - Server 1 01-01-2010 12:55 PM
Cpanel/WHM Died at /usr/local/cpanel/Cpanel/Hulk.pm line 92. liang3391 Linux - Software 1 06-22-2009 02:02 PM
cURL: Server has many IPs, how would I make a cURL script use those IPs to send data? guest Programming 0 04-11-2009 11:42 AM
How to manually add SATA driver manually when kernel boot? aixilin Linux - Kernel 6 08-15-2008 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration