IP Network issue

Issues related to configuring your network
Post Reply
Ankurb123
Posts: 1
Joined: 2021/05/14 17:24:06

IP Network issue

Post by Ankurb123 » 2021/05/14 18:28:27

Hello Team,
We have the CentOS dedicated server. CentOS Linux release 7.9.2009 (Core)

uname -r
3.10.0-1160.25.1.el7.x86_64

We have added the multiple IPs to the server by creating file "ifcfg-eno1-range1" and added the below content in it

cat ifcfg-eno1-range1 We have the below additional IPs from X.X.X.2 to X.X.X.65
========================
IPADDR_START=45.156.119.2
IPADDR_END=45.156.119.65
PREFIX=24
GATEWAY=45.156.119.1
DEVICE=eno1
ARPCHECK=no
CLONENUM_START=1
#FUTURECLONENUM=5
========================
And main configuration file as below

=========================

ifcfg-eno1
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO="static"
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=d17c4f94-6125-4659-b163-155506f496ef
DEVICE=eno1
ONBOOT=yes
IPADDR=173.208.147.107
PREFIX=26
GATEWAY=173.208.147.65
DNS1=8.8.8.8
DOMAIN=8.8.4.4
IPV6_PRIVACY=no
=========================

But when we reboot the server or restart the network service the additional 64 IPs automatically removed. But when we do ifup it assign using ifup ifcfg-eno1-range1

Why the IPs are automatically unassigned. How it be parmanent. Is the created file temporary.

Both IP sunbent and G/W are diffent. How can we do it or we are doing some misconfiguration.

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: IP Network issue

Post by TrevorH » 2021/05/14 23:59:11

You missed

ONBOOT=yes
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply