interface recieves dynamic ip while only static is set

Issues related to configuring your network
Post Reply
surgeon76
Posts: 1
Joined: 2017/09/17 14:24:20

interface recieves dynamic ip while only static is set

Post by surgeon76 » 2017/09/17 14:55:27

Hello.

I has CentOS 6.9 installed.

My problem is:

eth0 setup is static:
DEVICE="eth0"
BOOTPROTO=static
HWADDR="10:BF:48:40:56:A0"
IPV6INIT="no"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
UUID="0f494552-d0f2-4be7-bfd3-d137977b136e"
DEFROUTE=yes
IPADDR=192.168.100.11
PREFIX=22
GATEWAY=192.168.100.1
DNS1=8.8.8.8
DNS2=8.8.4.4
But every time I reboot I'm getting two ip addresses - static and dynamic (second from my DHCP server):
Hostname: localhost.localdomain
Date: Sun 2017-09-17 17:35 MSK

Uptime: 6:49
Load average: 0.00 0.00 0.00

Network interfaces:
eth0 192.168.100.11/22
192.168.101.241/22

tun0 10.1.0.249/16
Default gateway: 192.168.100.1

Occupied disk space:
/ 3.2G/458G
/dev/shm 0/1.9G
/boot 61M/283M
Then, after some period (day or two), static address can disappear and only dynamic left.

Additional conditions: NetworkManager not present in system. OpenVPN installed and working.
After down and up eth0 without rebooting, I have only static ip (that can disappear as it was described above, being replaced with dynamic one).

Question: where dynamic address is taken from? What I need to do to understand what is happening?

P.S. I'm not advanced in linux.

Post Reply