LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to manually add IPs to cPanel-expired server [CENTOS 7.9? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-manually-add-ips-to-cpanel-expired-server-%5Bcentos-7-9-a-4175732423/)

PWR24 01-04-2024 04:02 AM

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.

nini09 01-04-2024 02:36 PM

Like following.
DEVICE=eno1
BOOTPROTO=none
ONBOOT=yes
PREFIX=24
IPADDR=192.168.2.203

michaelk 01-04-2024 03:28 PM

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.


All times are GMT -5. The time now is 03:54 PM.