{"id":11102,"date":"2025-03-27T11:23:32","date_gmt":"2025-03-27T11:23:32","guid":{"rendered":"https:\/\/mainvps.net\/blog\/?p=11102"},"modified":"2025-04-15T10:27:58","modified_gmt":"2025-04-15T10:27:58","slug":"restart-the-network-on-centos-stream-9","status":"publish","type":"post","link":"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/","title":{"rendered":"How to Restart the Network on CentOS Stream 9"},"content":{"rendered":"\n<p>Keeping your network running smoothly is essential for Linux admins and system engineers. In CentOS Stream 9, managing network connections requires the right tools, and sometimes a restart is necessary. This guide walks you through multiple ways to restart network services and troubleshoot issues effectively. By the end, you&#8217;ll have a clear and professional approach to handling network restarts.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#Why_Restarting_the_Network_is_Important\" >Why Restarting the Network is Important<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#Restart_the_Network_Using_NetworkManager\" >Restart the Network Using NetworkManager<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#Step_1_Check_the_NetworkManager_Status\" >Step 1: Check the NetworkManager Status<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#Step_2_Restart_the_Network_Service\" >Step 2: Restart the Network Service<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#Step_3_Verify_Connections\" >Step 3: Verify Connections<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#Restart_the_Network_Using_nmcli_Command-Line_Tool\" >Restart the Network Using nmcli (Command-Line Tool)<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#Step_1_View_Available_Connections\" >Step 1: View Available Connections<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#Step_2_Restart_the_Connection\" >Step 2: Restart the Connection<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#Step_3_Check_the_Connection_Status\" >Step 3: Check the Connection Status<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#Restart_the_Network_with_ifdown_and_ifup\" >Restart the Network with ifdown and ifup<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#Step_1_Identify_the_Network_Interface\" >Step 1: Identify the Network Interface<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#Step_2_Restart_the_Interface\" >Step 2: Restart the Interface<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#Troubleshooting_Network_Restart_Issues\" >Troubleshooting Network Restart Issues<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#1_NetworkManager_Not_Running\" >1. NetworkManager Not Running<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#2_Failed_Interface_Configuration\" >2. Failed Interface Configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#3_DNS_Issues\" >3. DNS Issues<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#4_Firewall_Restrictions\" >4. Firewall Restrictions<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#Tips_for_Best_Practices\" >Tips for Best Practices<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#Deploy_Seamless_Network_Management_with_Confidence\" >Deploy Seamless Network Management with Confidence<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#FAQs_Restarting_the_Network_on_CentOS_Stream_9\" >FAQs: Restarting the Network on CentOS Stream 9<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#1_When_should_I_restart_the_network_on_CentOS_Stream_9\" >1. When should I restart the network on CentOS Stream 9?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#2_Whats_the_best_way_to_restart_the_network_in_CentOS_Stream_9\" >2. What\u2019s the best way to restart the network in CentOS Stream 9?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#3_Will_restarting_the_network_disconnect_active_SSH_sessions\" >3. Will restarting the network disconnect active SSH sessions?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#4_How_is_NetworkManager_different_from_older_networking_services\" >4. How is NetworkManager different from older networking services?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#5_What_if_my_network_doesnt_come_back_after_a_restart\" >5. What if my network doesn\u2019t come back after a restart?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#6_Can_I_restart_a_specific_network_interface_instead_of_the_entire_network\" >6. Can I restart a specific network interface instead of the entire network?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#7_Does_restarting_the_network_affect_running_containers_or_virtual_machines\" >7. Does restarting the network affect running containers or virtual machines?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-28\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/#8_Is_there_a_non-disruptive_way_to_apply_network_changes\" >8. Is there a non-disruptive way to apply network changes?<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Restarting_the_Network_is_Important\"><\/span>Why Restarting the Network is Important<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before jumping into the steps, it\u2019s helpful to understand when and why you might need to restart the network in CentOS Stream 9.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Applying New Network Configurations<\/strong>: Changes in IP address, DNS, or other settings require a network restart to take effect.<\/li>\n\n\n\n<li><strong>Fixing Connectivity Issues<\/strong>: Restarting can resolve issues like dropped connections, unreachable hosts, or misconfigured interfaces.<\/li>\n\n\n\n<li><strong>Reloading Network Services<\/strong>: When installing new tools or making security updates, restarting the network ensures updated services are running properly.<\/li>\n<\/ul>\n\n\n\n<p>CentOS Stream 9 uses the <strong>NetworkManager<\/strong> service for network management, making network task automation simpler but slightly different from legacy CentOS versions.<\/p>\n\n\n\n<p>Now, let&#8217;s explore how you can restart the network, step by step.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Restart_the_Network_Using_NetworkManager\"><\/span>Restart the Network Using NetworkManager<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The default method for managing networks in CentOS Stream 9 is through <strong>NetworkManager<\/strong>, CentOS\u2019s network configuration service. Here\u2019s how to use it effectively.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Check_the_NetworkManager_Status\"><\/span>Step 1: Check the NetworkManager Status<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>To ensure NetworkManager is running, check its status with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">systemctl status NetworkManager<\/mark><\/pre>\n\n\n\n<p>This displays whether the service is active and running. If it\u2019s inactive, start it with:<\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">sudo systemctl start NetworkManager<\/mark><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"377\" src=\"https:\/\/mainvps.net\/blog\/wp-content\/uploads\/2025\/03\/image-4-1024x377.webp\" alt=\" nmcli device status - Restart the Network on CentOS Stream 9 -\" class=\"wp-image-11183\" srcset=\"https:\/\/mainvps.net\/blog\/wp-content\/uploads\/2025\/03\/image-4-1024x377.webp 1024w, https:\/\/mainvps.net\/blog\/wp-content\/uploads\/2025\/03\/image-4-300x111.webp 300w, https:\/\/mainvps.net\/blog\/wp-content\/uploads\/2025\/03\/image-4-768x283.webp 768w, https:\/\/mainvps.net\/blog\/wp-content\/uploads\/2025\/03\/image-4.webp 1335w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Restart_the_Network_Service\"><\/span>Step 2: Restart the Network Service<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Once NetworkManager is running, restart the network service using:<\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">sudo systemctl restart NetworkManager<\/mark><\/p>\n\n\n\n<p>This command reinitializes all configured network interfaces and applies any changes made to the configurations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Verify_Connections\"><\/span>Step 3: Verify Connections<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>After restarting, confirm your network connections are working as expected with:<\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">nmcli device status<\/mark><\/p>\n\n\n\n<p>This command shows the state of network interfaces, allowing you to troubleshoot if anything\u2019s offline.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Restart_the_Network_Using_nmcli_Command-Line_Tool\"><\/span>Restart the Network Using nmcli (Command-Line Tool)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>nmcli<\/strong> is a command-line utility that works hand-in-hand with NetworkManager to manage network connections. Unlike restarting the entire NetworkManager service, <strong>nmcli<\/strong> gives more granular control over individual connections.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_View_Available_Connections\"><\/span>Step 1: View Available Connections<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>List all current connections:<\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">nmcli connection show<\/mark><\/p>\n\n\n\n<p>This displays your active and inactive connections, along with their names and UUIDs.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Restart_the_Connection\"><\/span>Step 2: Restart the Connection<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Use the following command to bring down and then bring up a specific connection:<\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">nmcli connection down &lt;connection_name&gt;<\/mark><\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">nmcli connection up &lt;connection_name&gt;<\/mark><\/p>\n\n\n\n<p>Replace <code>&lt;connection_name&gt;<\/code> with the name from the previous command. This restarts only the targeted connection.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Check_the_Connection_Status\"><\/span>Step 3: Check the Connection Status<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>After restarting, verify that the connection is active:<\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">nmcli connection show &#8211;active<\/mark><\/p>\n\n\n\n<p>Active connections are displayed in this list along with their respective details.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Restart_the_Network_with_ifdown_and_ifup\"><\/span>Restart the Network with ifdown and ifup<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>For traditional <a href=\"https:\/\/mainvps.net\/blog\/what-is-linux-server-and-why-does-your-business-need-it\/\">Linux<\/a> users who prefer a more manual approach, <strong>ifdown<\/strong> and <strong>ifup<\/strong> commands still work for managing network interfaces.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Identify_the_Network_Interface\"><\/span>Step 1: Identify the Network Interface<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>First, identify the interface you want to restart using:<\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">ip addr<\/mark><\/p>\n\n\n\n<p>You\u2019ll see a list of interfaces (e.g., <code>eth0<\/code>, <code>ens33<\/code>, etc.).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Restart_the_Interface\"><\/span>Step 2: Restart the Interface<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Run the following commands to bring the interface down and then up:<\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">sudo ifdown &lt;interface_name&gt;<\/mark><\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">sudo ifup &lt;interface_name&gt;<\/mark><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n<\/code><\/pre>\n\n\n\n<p>Replace <code>&lt;interface_name&gt;<\/code> with the interface you need to restart.<\/p>\n\n\n\n<p>\u26a0\ufe0f <strong>Note<\/strong>: These commands require the <code>network-scripts<\/code> package, which may not be installed by default in CentOS Stream 9. You can install it using:<\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">sudo yum install network-scripts<\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Troubleshooting_Network_Restart_Issues\"><\/span>Troubleshooting Network Restart Issues<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here are some common issues and how to resolve them if restarting the network doesn\u2019t work as expected.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_NetworkManager_Not_Running\"><\/span>1. <strong>NetworkManager Not Running<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If NetworkManager isn\u2019t running, you can start it with:<\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">sudo systemctl start NetworkManager<\/mark><\/p>\n\n\n\n<p>To make sure it starts automatically after a reboot, run:<\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">sudo systemctl enable NetworkManager<\/mark><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Failed_Interface_Configuration\"><\/span>2. <strong>Failed Interface Configuration<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If a specific interface isn\u2019t coming up, check the configuration file in <code>\/etc\/sysconfig\/network-scripts\/<\/code> or <code>\/etc\/NetworkManager\/system-connections\/<\/code>. Ensure all settings such as IP address and DNS are correctly defined.<\/p>\n\n\n\n<p>Test the configuration directly with:<\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">nmcli connection reload<\/mark><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_DNS_Issues\"><\/span>3. <strong>DNS Issues<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If websites aren\u2019t resolving after a restart, your DNS settings might be the issue. Verify DNS configuration in <code>\/etc\/resolv.conf<\/code> and update it as needed.<\/p>\n\n\n\n<p>Additionally, troubleshoot with:<\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">nslookup www.google.com<\/mark><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Firewall_Restrictions\"><\/span>4. <strong>Firewall Restrictions<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>A misconfigured firewall could block network traffic, even after restarting. Use the <a href=\"https:\/\/firewalld.org\/\" target=\"_blank\" rel=\"noopener\"><code>firewalld<\/code><\/a> tool to confirm:<\/p>\n\n\n\n<p><mark style=\"background-color:#e3e2e2\" class=\"has-inline-color\">sudo firewall-cmd &#8211;list-all<\/mark><\/p>\n\n\n\n<p>Allow necessary services or ports, if needed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Tips_for_Best_Practices\"><\/span>Tips for Best Practices<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Always test changes in a non-production environment before applying them live.<\/li>\n\n\n\n<li>Consider using <strong>backup configurations<\/strong> to avoid downtime if something goes wrong.<\/li>\n\n\n\n<li>Familiarize yourself with CentOS Stream updates, as network scripts and tools may evolve in newer versions.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Deploy_Seamless_Network_Management_with_Confidence\"><\/span>Deploy Seamless Network Management with Confidence<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Like other modern distributions of Linux, restarting the network on CentOS Stream 9 can be done with either NetworkManager, nmcli, or old-style tools. This is a basic skill that every administrator must learn. Troubleshooting connectivity problems, updating configurations, or enhancing network performance are all possible with the help of this guide\u2014and you can do it with ease.<\/p>\n\n\n\n<p>Get hands-on with these techniques and maintain smooth network operations for your CentOS system. If you\u2019re looking for more advanced tutorials or updates on CentOS Stream tools, keep following our blog for expert insights tailored to Linux professionals like you.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"FAQs_Restarting_the_Network_on_CentOS_Stream_9\"><\/span>FAQs: Restarting the Network on CentOS Stream 9<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_When_should_I_restart_the_network_on_CentOS_Stream_9\"><\/span>1. <strong>When should I restart the network on CentOS Stream 9?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>You should restart the network after changing IP configurations, updating DNS settings, troubleshooting connectivity issues, or applying security updates.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Whats_the_best_way_to_restart_the_network_in_CentOS_Stream_9\"><\/span>2. <strong>What\u2019s the best way to restart the network in CentOS Stream 9?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>The recommended way is using <code>systemctl restart NetworkManager<\/code> since CentOS Stream 9 relies on NetworkManager for handling connections.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Will_restarting_the_network_disconnect_active_SSH_sessions\"><\/span>3. <strong>Will restarting the network disconnect active SSH sessions?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>Yes, restarting the network may drop your SSH connection. If you&#8217;re working remotely, consider using <code>nmcli connection reload<\/code> to apply changes without losing access.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_How_is_NetworkManager_different_from_older_networking_services\"><\/span>4. <strong>How is NetworkManager different from older networking services?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>Unlike traditional <code>network.service<\/code> used in older CentOS versions, NetworkManager provides better automation, dynamic configuration, and easier management for modern network setups.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5_What_if_my_network_doesnt_come_back_after_a_restart\"><\/span>5. <strong>What if my network doesn\u2019t come back after a restart?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>Check your configuration files (<code>\/etc\/sysconfig\/network-scripts\/<\/code> or <code>nmcli connection show<\/code>), ensure the correct network interface is enabled, and review logs using <code>journalctl -xe -u NetworkManager<\/code>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"6_Can_I_restart_a_specific_network_interface_instead_of_the_entire_network\"><\/span>6. <strong>Can I restart a specific network interface instead of the entire network?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>Yes, you can restart a single interface using <code>nmcli connection down &lt;interface&gt;<\/code> followed by <code>nmcli connection up &lt;interface&gt;<\/code>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"7_Does_restarting_the_network_affect_running_containers_or_virtual_machines\"><\/span>7. <strong>Does restarting the network affect running containers or virtual machines?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>It depends on how networking is configured. If they rely on the host\u2019s network stack, they may experience temporary disconnections.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"8_Is_there_a_non-disruptive_way_to_apply_network_changes\"><\/span>8. <strong>Is there a non-disruptive way to apply network changes?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>Instead of a full restart, try <code>nmcli connection reload<\/code> or <code>ip link set &lt;interface&gt; down &amp;&amp; ip link set &lt;interface&gt; up<\/code> to minimize downtime.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Keeping your network running smoothly is essential for Linux admins and system engineers. In CentOS Stream 9, managing network connections requires the right tools, and sometimes <a class=\"read-more-link\" href=\"https:\/\/mainvps.net\/blog\/restart-the-network-on-centos-stream-9\/\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":11235,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,4],"tags":[],"class_list":["post-11102","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-servers","category-security"],"_links":{"self":[{"href":"https:\/\/mainvps.net\/blog\/wp-json\/wp\/v2\/posts\/11102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mainvps.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mainvps.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mainvps.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/mainvps.net\/blog\/wp-json\/wp\/v2\/comments?post=11102"}],"version-history":[{"count":6,"href":"https:\/\/mainvps.net\/blog\/wp-json\/wp\/v2\/posts\/11102\/revisions"}],"predecessor-version":[{"id":11185,"href":"https:\/\/mainvps.net\/blog\/wp-json\/wp\/v2\/posts\/11102\/revisions\/11185"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mainvps.net\/blog\/wp-json\/wp\/v2\/media\/11235"}],"wp:attachment":[{"href":"https:\/\/mainvps.net\/blog\/wp-json\/wp\/v2\/media?parent=11102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mainvps.net\/blog\/wp-json\/wp\/v2\/categories?post=11102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mainvps.net\/blog\/wp-json\/wp\/v2\/tags?post=11102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}