V
V
Vlad2021-04-04 13:42:54
CentOS
Vlad, 2021-04-04 13:42:54

How to add additional IPv4 to VPS?

Rented a VPS, installed Centos 8 and ISP Manager.
I ordered an additional IPv4, but they told me to add it somewhere on the server myself so that I could use it. The instructions were given at the link https://contabo.com/blog/configuring-additional-ip...

Help me figure out how to add a new IP?
As I understand it, I need to add some kind of entry to the /etc/sysconfig/network-scripts/ifcfg-eth0 file?
But I can't figure out which one?

Now this file has the following content:

# Generated by parse-kickstart
TYPE=Ethernet
DEVICE=eth0
UUID=22ac4f0f-d703-49d3-9756-494f107dbca4
ONBOOT=yes
IPADDR=62.171.151.28
NETMASK=255.255.224.0
GATEWAY=62.171.128.1
IPV6INIT=yes
DNS1=213.136.95.10
DNS2=213.136.95.11
PROXY_METHOD=none
BROWSER_ONLY=no
PREFIX=19
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME="System eth0"
IPV6ADDR="2a02:c207:2055:9589:0000:0000:0000:0001/64"
IPV6_DEFAULTGW="fe80::1"
IPV6_DEFAULTDEV="eth0"


Info about the new IP:
109.205.176.239

Please use the following network configuration:
Network:	109.205.176.0
Gateway:	109.205.176.1
Broadcast:	109.205.183.255
Netmask:	255.255.248.0
Prefix:		/21

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Dmitriev, 2021-04-04
@SignFinder

Google not?
https://itisgood.ru/2019/03/25/dobavlenie-vtorichn...

J
justhostRU, 2021-04-06
@justhostRU

https://kb.justhost.ru/article/1473 you can use our article to configure the Centos network

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question