I just had a machine go bad on me and I had the bright idea of moving the old hard drive to a new machine and alas all is working except my network card. I got the IP address of the network card in there now and am able to access Webmin. When I go in under Network Interfaces I see Active Now & Activated at Boot.
The “Active Now” has a new network card name of enp0s31f6 which has the new IP address that it was given and then under “Activated at Boot” has the old name of p4p2 and has the old IP address. I’m assuming these are the actual NIC cards and the p4p2 is gone and therefore not coming up. I went in under the Active Now tab edited the new card to have the old IP and rebooted but after rebooting it reverted back to the new IP which I assume it is getting from DHCP. I noticed that there is no way of saying make active at boot. For the time being I added a virtual IP so that the system is back and functioning (it’s used as a proxy) but the virtual does not stay after reboot either.
So my question is how do I save the new NIC as Active at Boot?
Yes that there is no file with the name exactly. There is a file called ifcfg-p4p2 but not just ifcfg
I’m kind of assuming that the new one should be called ifcfg-enp0s31f6 but am not 100% and this is a production machine and don’t want to make a mistake as I’ll being putting people down.
DHCP uses the MAC address on the NIC. If this is a hosted environment then ask the provider to reassign the IP address. If self hosted then you need to clear the pairing from DHCP.
There’s no need to tag me on stuff like this. If I could help “real quick”, I would have answered. I read every topic, at least the titles but usually skim the messages too, and jump in if I have answers.
System/OS problems aren’t really in my wheelhouse. I have a hard time keeping up with all of the various network configuration tools and processes on all the various distros we support. I’d have to google it, just like anybody else.
I know nothing about your network layout. You haven’t given the details. I’m looking at the same page as you. It allows you to turn off DHCP by setting a static address.
So again, as I mentioned above, I took a had drive from a system that failed and put it in a new computer. Everything worked except for this. So basically I believe it found this and is treating it like a new NIC card. It worked as a DHCP and gave it an IP address, but is not actually seeing it as permanent or something. The difference is I don’t see eth0 it has a different name than the one that was there originally, there is no option for “Activate at boot” and no option to change “From DHCP”. Also notice the Name is in italics. See the attached photo.
Activated at boot. Click on interface. But, without knowing the network setup, this may not be the way to go. If you physically changed the drive does this mean you have control of the infrastructure? What are you using for DHCP?
Not really sure what you mean by, do I have control of the infrastructure. I do have physical access to the machine. DHCP comes from the router on site. I was hoping there was something I could do with Webmin that made this simple but from Goggling CentOS and adding a new NIC card I found the command “nmtui” with gives me a GUI to make these changes (it’s what I should have done in the first place, but been a bit busy lately and it’s running so it’s not a huge issue, unless the power goes out.) When next on site I will give that a try.
If your old address was hard coded it would have transferred with the hard disk. Since it didn’t it sounds like you were using DHCP at the data center. Ask them to reassign this on their system as it was before.
There is more than the address. There is the netmask, the default route and the DNS servers. You really need to talk to the folks at the data center before hard coding these values.
It’s a new network card. He took the physical hard drive out of a physical server and moved it over to a new physical server that has a new network card in it. It’s not a “data center” that he needs to contact.
He was just having an issue with that card being set to turn on at bootup. He can turn it on manually so that it works, but he’s having an issue just getting it to be the card turned on at bootup as his hard drive still thinks it’s in the old physical server with the old physical network card in it and it tries to start it up on bootup rather than the new card in the new server.
As I mentioned above, there is no data center. And it was manually added, by me, not DHCP.
This is the content of the file called ifcfg-p4p2, however there is no file called ifcfg-enp0s31f6, which is the name of the new NIC. I’m actually wondering if I should just copy the file and call it that.
OK. I guess I’m confused by what your actual setup is then. Data centers use DHCP to keep clients from screwing up the network. The UUID probably isn’t transferable. But, that’s from memory thinking it might be hardware based.
@Joe Looks like one weakness of the WM settings is it doesn’t have a place for name servers and gateway when setting up static IP. It is probably somewhere, but these need to be configured at the same time.
Webmin->Networking->Network Configuration->Hostname and DNS Client
That’s for name servers.
Gateway is in Routing and Gateways. But, it seems like newer RHEL-based systems maybe aren’t using the old network-scripts style config files anymore, by default (there used to be a compatibility layer that was on by default, so using Webmin Just Worked), so…network may need to be setup outside of Webmin until Webmin learns the new ways.
The gateway isn’t optional when setting the static ip. DNS really should be there too. It’s one thing to have them separate for advanced uses, but not really optional for setting the static IP. I haven’t done manual on them with RH since RH 5.2? 1995? I still have the disks in the basement as a keep sake.