LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-04-2017, 10:44 AM   #1
OreCollector
LQ Newbie
 
Registered: Jan 2017
Posts: 10

Rep: Reputation: Disabled
CentOS 7 Network Has Two IPs Only One Configured


I have a CentOS 7 VM that has two IPs. I only want one IP and can only find one configured. Can you please help me understand what I am missing?


Code:
[mdittmer@ops2 ~]$ sudo cat /etc/sysconfig/network-scripts/ifcfg-eno16777984
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME="LAN NIC"
UUID=ba477e78-0d97-4430-8cf2-68c04c089cd6
DEVICE=eno16777984
ONBOOT=yes
DNS1=192.168.100.15
IPADDR=192.168.100.52
PREFIX=24
GATEWAY=192.168.100.1
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
[mdittmer@ops2 ~]$
[mdittmer@ops2 ~]$
[mdittmer@ops2 ~]$
[mdittmer@ops2 ~]$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno16777984: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:0c:29:01:01:c9 brd ff:ff:ff:ff:ff:ff
    inet 192.168.100.170/24 brd 192.168.100.255 scope global dynamic eno16777984
       valid_lft 388004sec preferred_lft 388004sec
    inet 192.168.100.52/24 brd 192.168.100.255 scope global secondary eno16777984
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fe01:1c9/64 scope link
       valid_lft forever preferred_lft forever
 
Old 05-04-2017, 11:39 AM   #2
quemexordium
LQ Newbie
 
Registered: Apr 2017
Location: Zurich, Switzerland
Distribution: Slackware
Posts: 12

Rep: Reputation: Disabled
Found this on the web. Might be useful.

https://superuser.com/questions/1535...interfa#153613

Last edited by quemexordium; 05-04-2017 at 12:49 PM. Reason: Correcting spelling mistake
 
Old 05-04-2017, 12:32 PM   #3
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Have you rebooted the VM? Might just be a holdover and a reboot should fix it.
 
Old 05-04-2017, 12:35 PM   #4
OreCollector
LQ Newbie
 
Registered: Jan 2017
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thank you!

The answer:

Code:
ip addr del 192.168.100.170/24 dev eno16777984
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 6 - DHCPv6 - No IP's being handed out or configured odbod Red Hat 4 06-29-2014 08:12 PM
how to check whether DNS is configured on my os(CentOS) rushikeshgaradade Linux - Newbie 7 03-20-2013 05:55 AM
question about centos/rhel with 2 ips on one network and one to be globally visible. Majed17 Linux - Networking 2 03-01-2013 12:46 AM
Routing to internet through one network, and to local ips in another network IceDane Linux - Networking 6 04-02-2009 01:21 AM
Unsecured wireless network used instead of configured WPA network. SCVirus Ubuntu 3 05-15-2008 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration