Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ip addr show showing 2 IPs in same Network Card

MSABRAApr 7 2022

Hi
 ip addr command show showing 2 IPs in same nic card. Actually one ip is assigned by DHCP server during OS installation and we want to get rid off this ip we want to use only static ip assigned to Server.
I tried with below command but after reboot again ip is getting assigned to nic card.

ip addr del x.x.x.x/24 dev eth0

I also edited my ifcfg-eth0 like below but still after reboot i am getting 2 ips address.
[root@test-machine01 network-scripts]# pwd
/etc/sysconfig/network-scripts
[root@meducas2db1 network-scripts]#
[root@meducas2db1 network-scripts]# cat ifcfg-eth0
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="eth0"
UUID="e83c3691-8c75-4611-8cc1-16a5089c13ca"
DEVICE="eth0"
ONBOOT="yes"
IPADDR="x.x.x.x"
GATEWAY="x.x.x.x"
DNS1="x.x.x.x"
DNS2="x.x.x.x"
IPV6_PRIVACY="no"
NM_CONTROLLED="no"
[root@test-machine01 network-scripts]#
Kindly help regarding this.

Best Regards
Jamsher

Comments
Post Details
Added on Apr 7 2022
10 comments
574 views