Fedora 40 Upgrade: Lost Network Connectivity
Upgrading to Fedora 40 can be an exciting experience, but sometimes it may lead to unexpected issues, such as lost network connectivity. This article aims to provide a detailed guide on how to troubleshoot and resolve this issue, specifically when DNS resolution fails and ping access is lost.
Background
The latest version of Fedora, Fedora 40, brings new features and improvements to the Linux ecosystem. However, upgrading to this version may result in lost network connectivity, which can be frustrating. This issue is usually caused by misconfigured network settings, conflicting packages, or outdated drivers.
Identifying the Issue
The first step in resolving the lost network connectivity issue is to identify the root cause. You can do this by checking the network settings and testing the network connectivity using various tools.
Checking Network Settings
To check the network settings, you can use the ip command. This command displays the IP address, netmask, and gateway of the network interface. You can also use the nmcli command to check the network status and connection.
$ ip addr
1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/127 scope host
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:0c:29:28:fe:c5 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.100/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0
valid_lft 86399sec preferred_lft 86399sec
inet6 fe80::20c:29ff:fe28:fec5/64 scope link noprefixroute
valid_lft forever preferred_lft forever
Testing Network Connectivity
To test the network connectivity, you can use the ping command. This command sends an ICMP echo request to the specified host and displays the response time. If the ping command fails, it may indicate a network connectivity issue.
$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=128 time=10.3 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=128 time=10.2 ms
Resolving the Issue
Once you have identified the issue, you can take the necessary steps to resolve it. The following are some of the common solutions to the lost network connectivity issue in Fedora 40.
Checking DNS Resolution
The DNS resolution may fail if the DNS server is not configured correctly. You can check the DNS resolution by using the nslookup command. This command queries the DNS server and displays the IP address of the specified host.
$ nslookup www.google.com
Server:
Address:
Non-authoritative answer:
Name:
Address: 172.217.167.174
Checking Network Manager
Network Manager is a service that manages the network connections in Fedora. If the Network Manager service is not running, it may cause the lost network connectivity issue. You can check the status of the Network Manager service using the systemctl command.
$ systemctl status NetworkManager
● NetworkManager.service - Network Manager
Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-03-06 10:12:34 EST; 1 weeks 0 days ago
Main PID: 982 (NetworkManager)
Tasks: 3 (limit: 4626)
Memory: 10.1M
CGroup: /system.slice/NetworkManager.service
└─982 /usr/sbin/NetworkManager --no-daemon
Checking Firewall Rules
The firewall rules may block the network traffic, causing the lost network connectivity issue. You can check the firewall rules using the firewall-cmd command. This command displays the active firewall rules and zones.
$ sudo firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: eth0
sources:
services: cockpit dhcpv6-client ssh
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
Upgrading to Fedora 40 can be a smooth process, but sometimes it may lead to unexpected issues, such as lost network connectivity. By following the steps outlined in this article, you can identify and resolve the lost network connectivity issue in Fedora 40. Remember to check the network settings, test the network connectivity, and check the DNS resolution, Network Manager service, and firewall rules.
References
- Fedora Project. (2023). Fedora 40 Release Notes.
- Red Hat, Inc. (2023). NetworkManager.
- Red Hat, Inc. (2023). FirewallD.