dracut initrd resets networking on boot
Posted: 2019/03/11 18:23:06
I'm running a fresh install of Centos 7 from DVD 1810 kernel version 3.10.0-957.el7.x86_64.
My server is an HP DL325 Gen10. It has a 4 port 1 Gig ethernet adapter and a 2 port 10 Gig converged network adapter. They show up in Centos as eno1 - eno6 where 5 and 6 are the ports on the 10 gig ethernet device. I am configuring my server to boot via iSCSI on eno5. Installation works just fine, however when the server boots up, it's fetching a DHCP address on eno1 instead of using the statically configured IP I give it during install. If I check the configuration file at /etc/sysconfig/network-scripts/ifcfg-eno1, it says at the top Generated by dracut initrd. I attempted to pass the IP information to dracut by creating a file at /etc/cmdline with the IP information for both eno1 and eno5, but that doesn't seem to do anything. I also disabled ifcfg from dracut, and while that makes it not overwrite my network configuration files, it still boots up with a DHCP lease instead of using my static IP address. I can manually do an ifdown eno1 ifup eno1 and then it has the appropriate IP, but this is suboptimal and undesired. I've also tried passing the IP lines in the kernel boot up of grub, however I get a kernel panic when I do that whcih shows dracut-cmdline Warning: Empty autoconf values default to dhcp, the next line says dracut FATAL For argument ip=host_ip:gateway_ipeno1:off' Sorry, setting client-ip does not make sense for 'dhcp'. Note I did remove the ips to protect the innocent So I'm not sure where else to check where I can configure the IP for dracut so that it's not configuring my adapters as DHCP.
My server is an HP DL325 Gen10. It has a 4 port 1 Gig ethernet adapter and a 2 port 10 Gig converged network adapter. They show up in Centos as eno1 - eno6 where 5 and 6 are the ports on the 10 gig ethernet device. I am configuring my server to boot via iSCSI on eno5. Installation works just fine, however when the server boots up, it's fetching a DHCP address on eno1 instead of using the statically configured IP I give it during install. If I check the configuration file at /etc/sysconfig/network-scripts/ifcfg-eno1, it says at the top Generated by dracut initrd. I attempted to pass the IP information to dracut by creating a file at /etc/cmdline with the IP information for both eno1 and eno5, but that doesn't seem to do anything. I also disabled ifcfg from dracut, and while that makes it not overwrite my network configuration files, it still boots up with a DHCP lease instead of using my static IP address. I can manually do an ifdown eno1 ifup eno1 and then it has the appropriate IP, but this is suboptimal and undesired. I've also tried passing the IP lines in the kernel boot up of grub, however I get a kernel panic when I do that whcih shows dracut-cmdline Warning: Empty autoconf values default to dhcp, the next line says dracut FATAL For argument ip=host_ip:gateway_ipeno1:off' Sorry, setting client-ip does not make sense for 'dhcp'. Note I did remove the ips to protect the innocent So I'm not sure where else to check where I can configure the IP for dracut so that it's not configuring my adapters as DHCP.