Second IP via DHCP. Why? [duplicate]Ubuntu 18.04 minimal server has two IP addresses!how to configure dhcp?14.04 no internet connection when I up the bridge interface (for LXC container)Raspberry Pi 3B with Ubuntu Server(CLI) with No Ethernet Recognition and No Wlan0 ListHow to enable wireless on Ubuntu Server 18.04 via CLI?

How to play a devious character when you are not personally devious?

Why am I having wrong IPs in my DNS?

Why distinguish u/v but not i/j?

Do European politicians typically put their pronouns on their social media pages?

A word/phrase means "a small amount" (of a color)

"Du hast es gut", small talk meaning?

Is there a high level reason why the inverse square law of gravitation yields periodic orbits without precession?

What do you call this when cats hunch their backs and their fur stands on end?

Ambiguity - Should it be "mindful of committing logical fallacies" or "mindful of not committing logical fallacies"?

Is a for loop using arrays better than using field splitting on a simple variable?

"traversal failed: u: Bad message" when deleting an extremely large directory in Linux

Should I stop applying faculty positions after I take on a postdoc job

Should I be charging for the social media versions of designs?

Is the ''yoi'' meaning ''ready'' when doing karate the same as the ''yoi'' which means nice/good?

What are modes in real world?

Parents suppressing the teaching

How does kinetic energy work in braking a vehicle?

Does animal blood, esp. human, really have similar salinity as ocean water, and does that prove anything about evolution?

How could be generated a sequence of random dates, given year interval?

Why is Eastern Switzerland called Suisse orientale in French?

Why do we use the Greek letter μ (Mu) to denote population mean or expected value in probability and statistics

Plain Hunt Bell-Ringing

Would the minimum payment or full CC amount be considered monthly debt?

Shrinkage priors



Second IP via DHCP. Why? [duplicate]


Ubuntu 18.04 minimal server has two IP addresses!how to configure dhcp?14.04 no internet connection when I up the bridge interface (for LXC container)Raspberry Pi 3B with Ubuntu Server(CLI) with No Ethernet Recognition and No Wlan0 ListHow to enable wireless on Ubuntu Server 18.04 via CLI?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0


















This question already has an answer here:



  • Ubuntu 18.04 minimal server has two IP addresses!

    1 answer



I have a secondary IP on my ens160 interface and I don't know why :) System is Ubuntu 17.10. Any hints where to dig here?



1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:0c:29:07:bd:e3 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.5/24 brd 192.168.0.255 scope global ens160
valid_lft forever preferred_lft forever
inet 192.168.0.165/24 brd 192.168.0.255 scope global secondary ens160
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fe07:bde3/64 scope link
valid_lft forever preferred_lft forever


192.168.0.5 is my static ip, configured via netplan:



network:
version: 2
renderer: networkd
ethernets:
ens160:
dhcp4: no
dhcp6: no
addresses: [192.168.0.5/24]
gateway4: 192.168.0.254
nameservers:
addresses: [8.8.8.8,1.1.1.1]









share|improve this question


















marked as duplicate by Sergiy Kolodyazhnyy, dessert, Zanna, karel, Kulfy May 30 at 6:48


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.



















  • I think the secondary address is configured statically somewhere. A DHCP assigned address seem to contain the keyword dynamic (ie. inet 192.168.0.165/24 brd 192.168.0.255 scope global dynamic secondary ens160). Your output of the command ip addr doesn't.

    – user822833
    May 2 '18 at 16:25












  • Check out these locations for configurations files that might cause your problem: /run/netplan/*.yaml, /etc/netplan/*.yaml and /lib/netplan/*.yaml.

    – user822833
    May 2 '18 at 16:29











  • I will check these files. But its clearly DHCP, because I see the lease in my DHCP server. And, maybe thats the trick, I added a denyinterfaces ens160 to the /etc/dhcpcd.conf file. But why is this file triggered and where?

    – Conti
    May 3 '18 at 21:02











  • Can you see in the DHCP log that 192.168.0.165 is leased to the MAC address 00:0c:29:07:bd:e3?

    – user822833
    May 4 '18 at 5:38











  • May 02 10:39:15 pihole systemd[1]: Starting LSB: IPv4 DHCP client with IPv4LL support... May 02 10:39:16 pihole dhcpcd[1310]: ens160: soliciting a DHCP lease May 02 10:39:17 pihole dhcpcd[1310]: ens160: offered 192.168.0.165 from 192.168.0.254 May 02 10:39:17 pihole dhcpcd[1310]: ens160: probing address 192.168.0.165/24 May 02 10:39:23 pihole dhcpcd[1310]: ens160: leased 192.168.0.165 for 3600 seconds May 02 10:39:23 pihole dhcpcd[1310]: ens160: adding route to 192.168.0.0/24

    – Conti
    May 7 '18 at 8:53


















0


















This question already has an answer here:



  • Ubuntu 18.04 minimal server has two IP addresses!

    1 answer



I have a secondary IP on my ens160 interface and I don't know why :) System is Ubuntu 17.10. Any hints where to dig here?



1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:0c:29:07:bd:e3 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.5/24 brd 192.168.0.255 scope global ens160
valid_lft forever preferred_lft forever
inet 192.168.0.165/24 brd 192.168.0.255 scope global secondary ens160
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fe07:bde3/64 scope link
valid_lft forever preferred_lft forever


192.168.0.5 is my static ip, configured via netplan:



network:
version: 2
renderer: networkd
ethernets:
ens160:
dhcp4: no
dhcp6: no
addresses: [192.168.0.5/24]
gateway4: 192.168.0.254
nameservers:
addresses: [8.8.8.8,1.1.1.1]









share|improve this question


















marked as duplicate by Sergiy Kolodyazhnyy, dessert, Zanna, karel, Kulfy May 30 at 6:48


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.



















  • I think the secondary address is configured statically somewhere. A DHCP assigned address seem to contain the keyword dynamic (ie. inet 192.168.0.165/24 brd 192.168.0.255 scope global dynamic secondary ens160). Your output of the command ip addr doesn't.

    – user822833
    May 2 '18 at 16:25












  • Check out these locations for configurations files that might cause your problem: /run/netplan/*.yaml, /etc/netplan/*.yaml and /lib/netplan/*.yaml.

    – user822833
    May 2 '18 at 16:29











  • I will check these files. But its clearly DHCP, because I see the lease in my DHCP server. And, maybe thats the trick, I added a denyinterfaces ens160 to the /etc/dhcpcd.conf file. But why is this file triggered and where?

    – Conti
    May 3 '18 at 21:02











  • Can you see in the DHCP log that 192.168.0.165 is leased to the MAC address 00:0c:29:07:bd:e3?

    – user822833
    May 4 '18 at 5:38











  • May 02 10:39:15 pihole systemd[1]: Starting LSB: IPv4 DHCP client with IPv4LL support... May 02 10:39:16 pihole dhcpcd[1310]: ens160: soliciting a DHCP lease May 02 10:39:17 pihole dhcpcd[1310]: ens160: offered 192.168.0.165 from 192.168.0.254 May 02 10:39:17 pihole dhcpcd[1310]: ens160: probing address 192.168.0.165/24 May 02 10:39:23 pihole dhcpcd[1310]: ens160: leased 192.168.0.165 for 3600 seconds May 02 10:39:23 pihole dhcpcd[1310]: ens160: adding route to 192.168.0.0/24

    – Conti
    May 7 '18 at 8:53














0












0








0









This question already has an answer here:



  • Ubuntu 18.04 minimal server has two IP addresses!

    1 answer



I have a secondary IP on my ens160 interface and I don't know why :) System is Ubuntu 17.10. Any hints where to dig here?



1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:0c:29:07:bd:e3 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.5/24 brd 192.168.0.255 scope global ens160
valid_lft forever preferred_lft forever
inet 192.168.0.165/24 brd 192.168.0.255 scope global secondary ens160
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fe07:bde3/64 scope link
valid_lft forever preferred_lft forever


192.168.0.5 is my static ip, configured via netplan:



network:
version: 2
renderer: networkd
ethernets:
ens160:
dhcp4: no
dhcp6: no
addresses: [192.168.0.5/24]
gateway4: 192.168.0.254
nameservers:
addresses: [8.8.8.8,1.1.1.1]









share|improve this question


















This question already has an answer here:



  • Ubuntu 18.04 minimal server has two IP addresses!

    1 answer



I have a secondary IP on my ens160 interface and I don't know why :) System is Ubuntu 17.10. Any hints where to dig here?



1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:0c:29:07:bd:e3 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.5/24 brd 192.168.0.255 scope global ens160
valid_lft forever preferred_lft forever
inet 192.168.0.165/24 brd 192.168.0.255 scope global secondary ens160
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fe07:bde3/64 scope link
valid_lft forever preferred_lft forever


192.168.0.5 is my static ip, configured via netplan:



network:
version: 2
renderer: networkd
ethernets:
ens160:
dhcp4: no
dhcp6: no
addresses: [192.168.0.5/24]
gateway4: 192.168.0.254
nameservers:
addresses: [8.8.8.8,1.1.1.1]




This question already has an answer here:



  • Ubuntu 18.04 minimal server has two IP addresses!

    1 answer







networking dhcp static-ip netplan






share|improve this question
















share|improve this question













share|improve this question




share|improve this question








edited May 30 at 5:44









Zanna

53.5k15 gold badges150 silver badges252 bronze badges




53.5k15 gold badges150 silver badges252 bronze badges










asked May 2 '18 at 8:08









ContiConti

11 bronze badge




11 bronze badge





marked as duplicate by Sergiy Kolodyazhnyy, dessert, Zanna, karel, Kulfy May 30 at 6:48


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.











marked as duplicate by Sergiy Kolodyazhnyy, dessert, Zanna, karel, Kulfy May 30 at 6:48


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by Sergiy Kolodyazhnyy, dessert, Zanna, karel, Kulfy May 30 at 6:48


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • I think the secondary address is configured statically somewhere. A DHCP assigned address seem to contain the keyword dynamic (ie. inet 192.168.0.165/24 brd 192.168.0.255 scope global dynamic secondary ens160). Your output of the command ip addr doesn't.

    – user822833
    May 2 '18 at 16:25












  • Check out these locations for configurations files that might cause your problem: /run/netplan/*.yaml, /etc/netplan/*.yaml and /lib/netplan/*.yaml.

    – user822833
    May 2 '18 at 16:29











  • I will check these files. But its clearly DHCP, because I see the lease in my DHCP server. And, maybe thats the trick, I added a denyinterfaces ens160 to the /etc/dhcpcd.conf file. But why is this file triggered and where?

    – Conti
    May 3 '18 at 21:02











  • Can you see in the DHCP log that 192.168.0.165 is leased to the MAC address 00:0c:29:07:bd:e3?

    – user822833
    May 4 '18 at 5:38











  • May 02 10:39:15 pihole systemd[1]: Starting LSB: IPv4 DHCP client with IPv4LL support... May 02 10:39:16 pihole dhcpcd[1310]: ens160: soliciting a DHCP lease May 02 10:39:17 pihole dhcpcd[1310]: ens160: offered 192.168.0.165 from 192.168.0.254 May 02 10:39:17 pihole dhcpcd[1310]: ens160: probing address 192.168.0.165/24 May 02 10:39:23 pihole dhcpcd[1310]: ens160: leased 192.168.0.165 for 3600 seconds May 02 10:39:23 pihole dhcpcd[1310]: ens160: adding route to 192.168.0.0/24

    – Conti
    May 7 '18 at 8:53


















  • I think the secondary address is configured statically somewhere. A DHCP assigned address seem to contain the keyword dynamic (ie. inet 192.168.0.165/24 brd 192.168.0.255 scope global dynamic secondary ens160). Your output of the command ip addr doesn't.

    – user822833
    May 2 '18 at 16:25












  • Check out these locations for configurations files that might cause your problem: /run/netplan/*.yaml, /etc/netplan/*.yaml and /lib/netplan/*.yaml.

    – user822833
    May 2 '18 at 16:29











  • I will check these files. But its clearly DHCP, because I see the lease in my DHCP server. And, maybe thats the trick, I added a denyinterfaces ens160 to the /etc/dhcpcd.conf file. But why is this file triggered and where?

    – Conti
    May 3 '18 at 21:02











  • Can you see in the DHCP log that 192.168.0.165 is leased to the MAC address 00:0c:29:07:bd:e3?

    – user822833
    May 4 '18 at 5:38











  • May 02 10:39:15 pihole systemd[1]: Starting LSB: IPv4 DHCP client with IPv4LL support... May 02 10:39:16 pihole dhcpcd[1310]: ens160: soliciting a DHCP lease May 02 10:39:17 pihole dhcpcd[1310]: ens160: offered 192.168.0.165 from 192.168.0.254 May 02 10:39:17 pihole dhcpcd[1310]: ens160: probing address 192.168.0.165/24 May 02 10:39:23 pihole dhcpcd[1310]: ens160: leased 192.168.0.165 for 3600 seconds May 02 10:39:23 pihole dhcpcd[1310]: ens160: adding route to 192.168.0.0/24

    – Conti
    May 7 '18 at 8:53

















I think the secondary address is configured statically somewhere. A DHCP assigned address seem to contain the keyword dynamic (ie. inet 192.168.0.165/24 brd 192.168.0.255 scope global dynamic secondary ens160). Your output of the command ip addr doesn't.

– user822833
May 2 '18 at 16:25






I think the secondary address is configured statically somewhere. A DHCP assigned address seem to contain the keyword dynamic (ie. inet 192.168.0.165/24 brd 192.168.0.255 scope global dynamic secondary ens160). Your output of the command ip addr doesn't.

– user822833
May 2 '18 at 16:25














Check out these locations for configurations files that might cause your problem: /run/netplan/*.yaml, /etc/netplan/*.yaml and /lib/netplan/*.yaml.

– user822833
May 2 '18 at 16:29





Check out these locations for configurations files that might cause your problem: /run/netplan/*.yaml, /etc/netplan/*.yaml and /lib/netplan/*.yaml.

– user822833
May 2 '18 at 16:29













I will check these files. But its clearly DHCP, because I see the lease in my DHCP server. And, maybe thats the trick, I added a denyinterfaces ens160 to the /etc/dhcpcd.conf file. But why is this file triggered and where?

– Conti
May 3 '18 at 21:02





I will check these files. But its clearly DHCP, because I see the lease in my DHCP server. And, maybe thats the trick, I added a denyinterfaces ens160 to the /etc/dhcpcd.conf file. But why is this file triggered and where?

– Conti
May 3 '18 at 21:02













Can you see in the DHCP log that 192.168.0.165 is leased to the MAC address 00:0c:29:07:bd:e3?

– user822833
May 4 '18 at 5:38





Can you see in the DHCP log that 192.168.0.165 is leased to the MAC address 00:0c:29:07:bd:e3?

– user822833
May 4 '18 at 5:38













May 02 10:39:15 pihole systemd[1]: Starting LSB: IPv4 DHCP client with IPv4LL support... May 02 10:39:16 pihole dhcpcd[1310]: ens160: soliciting a DHCP lease May 02 10:39:17 pihole dhcpcd[1310]: ens160: offered 192.168.0.165 from 192.168.0.254 May 02 10:39:17 pihole dhcpcd[1310]: ens160: probing address 192.168.0.165/24 May 02 10:39:23 pihole dhcpcd[1310]: ens160: leased 192.168.0.165 for 3600 seconds May 02 10:39:23 pihole dhcpcd[1310]: ens160: adding route to 192.168.0.0/24

– Conti
May 7 '18 at 8:53






May 02 10:39:15 pihole systemd[1]: Starting LSB: IPv4 DHCP client with IPv4LL support... May 02 10:39:16 pihole dhcpcd[1310]: ens160: soliciting a DHCP lease May 02 10:39:17 pihole dhcpcd[1310]: ens160: offered 192.168.0.165 from 192.168.0.254 May 02 10:39:17 pihole dhcpcd[1310]: ens160: probing address 192.168.0.165/24 May 02 10:39:23 pihole dhcpcd[1310]: ens160: leased 192.168.0.165 for 3600 seconds May 02 10:39:23 pihole dhcpcd[1310]: ens160: adding route to 192.168.0.0/24

– Conti
May 7 '18 at 8:53











1 Answer
1






active

oldest

votes


















0


















I have struggled with this exact same problem and every search comes up with several others experiencing the same issue with no resolution.



FINALLY, here is what solved it for me:



ip addr flush dev <your_adapter_id>


for me it was



ip addr flush dev enp0s4


...then reboot.



sudo shutdown -r


This kills the secondary IP.






share|improve this answer

































    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0


















    I have struggled with this exact same problem and every search comes up with several others experiencing the same issue with no resolution.



    FINALLY, here is what solved it for me:



    ip addr flush dev <your_adapter_id>


    for me it was



    ip addr flush dev enp0s4


    ...then reboot.



    sudo shutdown -r


    This kills the secondary IP.






    share|improve this answer






























      0


















      I have struggled with this exact same problem and every search comes up with several others experiencing the same issue with no resolution.



      FINALLY, here is what solved it for me:



      ip addr flush dev <your_adapter_id>


      for me it was



      ip addr flush dev enp0s4


      ...then reboot.



      sudo shutdown -r


      This kills the secondary IP.






      share|improve this answer




























        0














        0










        0









        I have struggled with this exact same problem and every search comes up with several others experiencing the same issue with no resolution.



        FINALLY, here is what solved it for me:



        ip addr flush dev <your_adapter_id>


        for me it was



        ip addr flush dev enp0s4


        ...then reboot.



        sudo shutdown -r


        This kills the secondary IP.






        share|improve this answer














        I have struggled with this exact same problem and every search comes up with several others experiencing the same issue with no resolution.



        FINALLY, here is what solved it for me:



        ip addr flush dev <your_adapter_id>


        for me it was



        ip addr flush dev enp0s4


        ...then reboot.



        sudo shutdown -r


        This kills the secondary IP.







        share|improve this answer













        share|improve this answer




        share|improve this answer










        answered May 30 at 3:42









        Zach ToundasZach Toundas

        212 bronze badges




        212 bronze badges
















            Popular posts from this blog

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?