Score:0

Debian server changing ip address

no flag

I had set up a Debian server with an ip address that was assigned to another device by accident. I forced the server to connect through /etc/network/interfaces but am still finding it switches to the original ip address and I am unable to find the original network configuration file. The interim fix is to change the /etc/network/interfaces to its original device of ens192 but the device is currently eth0, and change it back to its current device and reboot.

Nikita Kipriyanov avatar
za flag
So, what's your `ip addr` output, what's the contents of `/etc/network/interfaces` and, importantly, does any *DHCP client* currently running (you can check that with something like `ps axu | grep dhcp`, but it is possible to miss something, as I don't guarantee that any software capable to be a DHCP client always had `dhcp` in its command line)?
Amar172 avatar
no flag
@NikitaKipriyanov It has one dhcp client running.
Nikita Kipriyanov avatar
za flag
Are you sure it is needed? Check its logs; maybe it is installing a rogue IP address.
Score:0
cn flag

Sounds like your network interfaces file is configured to use a static IP address. Change the configuration to use DHCP to get you back to a working solution then start from scratch with what you were trying to achieve.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.