G+_Jason Brown Posted April 27, 2018 Share Posted April 27, 2018 Can someone help me figure this out. I setup two Ubuntu servers. I set them to a static IP and can connect to them fine. But for some reason, they're still receiving a DHCP address. I can connect to either server using either of their two IP addresses. I'm only using a single Ethernet connection to both of them. So it's not an issue with a secondary NIC or anything. Nothing's broken per se, but I'm having some serious WTF anxiety here. I know, I know, Google. But I have yet to find a definitive answer from the web. I'm really hoping someone in the community has run into this before. My OCD is flaring up. Link to comment Share on other sites More sharing options...
G+_Akira Yamanita Posted April 27, 2018 Share Posted April 27, 2018 That seems odd unless the statics are on a subinterface. Network Manager doesn’t care about the manual settings so make the changes in Network Manager or disable it. Link to comment Share on other sites More sharing options...
G+_Juscelino Acevedo Posted April 27, 2018 Share Posted April 27, 2018 Where/how are you seeing the DHCP address? How did you find out that they have other IP addresses associated to them? For example, are two IP addresses showing up on the same NIC when you use ifconfig? Is it possible that the two computes also have wireless NICs? Link to comment Share on other sites More sharing options...
G+_Black Merc Posted April 27, 2018 Share Posted April 27, 2018 I too have this interesting setup with two addresses to one box(nic).Juscelino Acevedo I see the double address entries in my router dashboard. The one static that I set in the box and the router assigned (dhcp). I'm wanting to blame the hardware(old repurposed) and its running debian(a 'father' variant, I've been told of Ubuntu), but seems to be functional. +Jason Brown I to feel the OCD naging. Link to comment Share on other sites More sharing options...
G+_Jason Brown Posted April 27, 2018 Author Share Posted April 27, 2018 Same here. I see it from the router itself. I set it up in /etc/hosts, /etc/hostname, and /etc/network/interfaces Link to comment Share on other sites More sharing options...
G+_Travis Hershberger Posted April 27, 2018 Share Posted April 27, 2018 What does the output of 'ip a' show from the actual box? Black Merc as well. The router will keep both IP addresses logged for whatever the DHCP timeout period is, so both will show up their at least until it's past time to renew the IP address under DHCP. Link to comment Share on other sites More sharing options...
G+_Jason Brown Posted April 27, 2018 Author Share Posted April 27, 2018 I'll double check ifconfig. The servers down while we move, so it'll be a couple days. As best as I can remember, ifconfig only shows the static IP. But I can't say for sure without booting it up. Link to comment Share on other sites More sharing options...
G+_Jason Brown Posted April 27, 2018 Author Share Posted April 27, 2018 I'll post an update in a couple days Link to comment Share on other sites More sharing options...
G+_Jason Brown Posted April 27, 2018 Author Share Posted April 27, 2018 This issue has been going on for months. Way past the limit for my leases Link to comment Share on other sites More sharing options...
G+_Jason Brown Posted April 27, 2018 Author Share Posted April 27, 2018 I just let it go because it didn't hurt the functionality. Link to comment Share on other sites More sharing options...
G+_Black Merc Posted April 27, 2018 Share Posted April 27, 2018 haven't done the cli ifconfig(i cheated and used the gui to set the static), apparently my install(again debian) did not have basic cli network tools on by default. But, still, double ip address remain even after dhcp lease expires. Link to comment Share on other sites More sharing options...
G+_Travis Hershberger Posted April 27, 2018 Share Posted April 27, 2018 Black Merc ifconfig has been depreciated in favor of the 'ip' program instead, so I'm not surprised it wasn't included by default. Link to comment Share on other sites More sharing options...
G+_kurterst Posted April 27, 2018 Share Posted April 27, 2018 The new versions of Debian (Ubuntu is based on Debian) use DHCP by default and they expect users to setup static IP addresses in /etc/dhcpd.conf. I still prefer the classic way of setting up '/etc/network/interfaces along with /etc/hosts & /etc/hostname. Setting up static IP addresses in /etc/dhcpd.conf is fairly easy. But if you want to use the 'classic' method disable DHCPCD first and reboot. sudo systemctl stop dhcpcd sudo systemctl disable dhcpcd sudo shutdown -r now Link to comment Share on other sites More sharing options...
G+_Jason Brown Posted April 28, 2018 Author Share Posted April 28, 2018 I never knew that! Thank you kurterst ! I'll give that a go as soon as they go back online Link to comment Share on other sites More sharing options...
G+_Jason Brown Posted April 28, 2018 Author Share Posted April 28, 2018 I do still like the old way. It takes more work, so it let's me pretend I'm a hacker. Link to comment Share on other sites More sharing options...
G+_Paul Hutchinson Posted April 28, 2018 Share Posted April 28, 2018 Join the 21st century, have the DHCP server in your router assign the fixed addresses for you. Then all your fixed addresses are available for editing in one place and it's easy to make sure your DHCP variable assignment range doesn't conflict. Link to comment Share on other sites More sharing options...
G+_Jason Brown Posted April 28, 2018 Author Share Posted April 28, 2018 I just can't do it. I don't know why, but I just don't like doing it that way. Plus I feel like it's a personal challenge to figure this problem out Link to comment Share on other sites More sharing options...
Recommended Posts