# After reboot in Rocky9 eth0 address is not detecting

**URL:** <https://forums.rockylinux.org/t/after-reboot-in-rocky9-eth0-address-is-not-detecting/17467>\
**Category:** Rocky Linux Help & Support\
**Created:** [February 7, 2025, 1:20pm UTC](https://forums.rockylinux.org/t/after-reboot-in-rocky9-eth0-address-is-not-detecting/17467 "2025-02-07T13:20:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave1024](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@Dave1024](https://forums.rockylinux.org/u/Dave1024)\
**Post date:** [February 7, 2025, 1:20pm UTC](https://forums.rockylinux.org/t/after-reboot-in-rocky9-eth0-address-is-not-detecting/17467/1 "2025-02-07T13:20:23Z")

</div>

Hi,

I gave the eth0 configuration at location : /etc/sysconfig/network-scripts

But after reboot, the eth0 address is not detected.

# cat ifcfg-eth0

NAME=eth0  
DEVICE=eth0  
ONBOOT=yes  
NETBOOT=yes  
IPV6INIT=no  
BOOTPROTO=none  
TYPE=Ethernet  
PROXY\_METHOD=none  
BROWSER\_ONLY=no  
IPADDR=10.120.80.120  
PREFIX=24  
GATEWAY=10.120.80.1  
DNS1=10.120.2.5  
DEFROUTE=yes  
IPV4\_FAILURE\_FATAL=no  
IPV6\_DEFROUTE=yes  
IPV6\_FAILURE\_FATAL=no  
UUID=5fb06bd0-0bb0-7ffb-45f1

How can I solve this issue. ?  
PS: There is no change in the MAC address.  
PS: Randomly after reboot, the IPv4 address detected.  
PS: This is the mechanism I used in CentOS 7.

From CentOS 7 to Rocky 9, is there any change in the configuration.?  
Thanks In Advance,

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [February 7, 2025, 1:42pm UTC](https://forums.rockylinux.org/t/after-reboot-in-rocky9-eth0-address-is-not-detecting/17467/2 "2025-02-07T13:42:33Z")

</div>

Because those scripts are deprecated. Network configuration should be done with Network Manager, using either `nmcli` or `nmtui` from the console. Or if there is a graphical environment it can also be configured using the Network Manager graphical tools.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [February 7, 2025, 4:01pm UTC](https://forums.rockylinux.org/t/after-reboot-in-rocky9-eth0-address-is-not-detecting/17467/3 "2025-02-07T16:01:13Z")

</div>

The “initscripts” syntax is legacy that was however used for most connections until el8.  
In el9 NeworkManager uses primarily its new syntax (and config is stored elsewhere).

You can look at output of these:

```auto
nmcli
nmcli d s
nmcli d sh
nmcli c s
nmcli c s eth0

```

The “d s” is short for “device status”, the “d sh” for “device show”, the “c s” for “connection show”,  
and one could use either name or UUID of connection.

* * *

Furthermore, the way kernel enumerates/generates device names is different between el7 and el9.

---

<div class="post-metadata">

**Author:** ![AlanVK2ZIW](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@AlanVK2ZIW](https://forums.rockylinux.org/u/AlanVK2ZIW)\
**Post date:** [February 14, 2025, 7:51pm UTC](https://forums.rockylinux.org/t/after-reboot-in-rocky9-eth0-address-is-not-detecting/17467/4 "2025-02-14T19:51:56Z")

</div>

Yes, I had that ‘bug’ on install, DHCP did not get an IP. Rocky9.5 minimal on DVD  
After “dnf upgrade” DHCP worked.  
Hardware: Blackview M80, Intel N97 CPU & GPU.  
I now use YUMI on a 32Gb USB stick to load any OS.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [April 15, 2025, 7:52pm UTC](https://forums.rockylinux.org/t/after-reboot-in-rocky9-eth0-address-is-not-detecting/17467/5 "2025-04-15T19:52:32Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
