Hi,
I’ve done a bare metal Rocky 8.9 install on a PC, but I can’t get the network card to connect to the LAN. It’s an on board network card
When I run nmcli device status, it returns:
DEVICE TYPE STATE CONNECTION
virbr0 bridge connnected (externally) virbr0
enp1s0 ethernet disconnected –
lo loopback unmanaged –
The 2nd line is in red… Obviously enpl1s0 is the network card, but how do I get it to connect and activate?!
Everything is working bar the network card. I reckon it’s because the network device on the older device the wired network device is called eno1 and on the new device the wired device is called enp1s0… So the question for the OS on the new device is, how to get enp1s0 connected and started up! Everything else on the image works perfectly!
First, the NetworkManager does by default create a connection for every interface, but if one adds certain package, then it does not. We can create a connection manually:
nmcli con add con-name wire ifname enp1s0 ipv4.method auto ipv6.method auto
If you don’t have or want IPv6, then ipv6.method disabled
The “auto” makes connection use DHCP to get config.
You can also remove the unnecessary connection:
nmcli con del eno1
If the above is correctl, then you should get more pleasant: