Jump to content

Can someone help me figure this out


G+_Jason Brown
 Share

Recommended Posts

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

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

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

 Share

×
×
  • Create New...