LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-04-2018, 02:41 PM   #1
bulgin
Member
 
Registered: Mar 2010
Posts: 74

Rep: Reputation: Disabled
2 ips 1 nic, cannot remove permanently and where from originate?


Hello.

Ubuntu 16.04


Having issues with 2 ip addresses showing up on 1 nic which I know is not that unusual, except that 1) why would my system create 2 ip addresses on 1 nic (I certainly never created it) and 2) how can I permanently stop that from appearing after every reboot?

Of importance is to get to the bottom of *why* and from *where* this additional IP addresses is coming from.

After boot:

2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
inet 192.168.1.236/24 brd 192.168.1.255 scope global dynamic enp2s0
valid_lft 86309sec preferred_lft 86309sec
inet 192.168.1.4/24 brd 192.168.1.255 scope global secondary enp2s0
valid_lft forever preferred_lft forever

after ip addr del 192.168.1.4/24 dev enp2s0

2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
inet 192.168.1.236/24 brd 192.168.1.255 scope global dynamic enp2s0
valid_lft 74429sec preferred_lft 74429sec

But this doesn't stick on reboot.

cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

nothing uncommented in dnsmasq.conf
 
Old 04-05-2018, 12:38 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
This may work.

"update-rc.d dhcpcd disable
service dhcpcd stop
ip addr del %YOURS-SECOND-IP% dev ethX"


https://raspberrypi.stackexchange.co...y-ip-come-from
https://askubuntu.com/questions/9147...ary-ip-address
 
1 members found this post helpful.
Old 04-08-2018, 11:33 PM   #3
bulgin
Member
 
Registered: Mar 2010
Posts: 74

Original Poster
Rep: Reputation: Disabled
That worked! Thank you.
 
Old 04-09-2018, 01:03 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Thanks for the update.
 
  


Reply

Tags
network


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Blocking ips permanently and throwing away the keys jmstr10 Linux - Security 5 09-24-2010 06:58 AM
how to remove a bridge permanently? yashwanth Linux - Networking 2 12-08-2008 12:09 AM
How to remove module permanently Maverick1182 Linux - Hardware 3 11-04-2006 02:08 PM
How to PERMANENTLY Remove a KLM? RWild Linux - General 7 08-31-2003 11:54 AM

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

All times are GMT -5. The time now is 12:04 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