<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Network Configuration &#8211; CPYNET</title>
	<atom:link href="https://cpynet.com/tag/network-configuration/feed/" rel="self" type="application/rss+xml" />
	<link>https://cpynet.com</link>
	<description>NextGen Tech Hub</description>
	<lastBuildDate>Fri, 22 Nov 2024 08:04:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://cpynet.com/wp-content/uploads/2024/11/cropped-favicon-2-32x32.png</url>
	<title>Network Configuration &#8211; CPYNET</title>
	<link>https://cpynet.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Assign a Static IP Address Using Netplan</title>
		<link>https://cpynet.com/how-to-assign-a-static-ip-address-using-netplan/</link>
		
		<dc:creator><![CDATA[Emin Buyuk]]></dc:creator>
		<pubDate>Fri, 22 Nov 2024 08:04:22 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Netplan]]></category>
		<category><![CDATA[Network Configuration]]></category>
		<category><![CDATA[Static IP]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://cpynet.com/?p=4001</guid>

					<description><![CDATA[Assigning a static IP address in Ubuntu is a straightforward process, especially with the use of Netplan. Netplan&#8230;]]></description>
										<content:encoded><![CDATA[
<p>Assigning a static IP address in Ubuntu is a straightforward process, especially with the use of Netplan. Netplan is a modern tool used for network configuration management in Ubuntu. In this guide, we will walk through how to configure a static IP address with Netplan in Ubuntu.</p>



<h4 class="wp-block-heading">What is Netplan?</h4>



<p>Netplan is a network configuration tool used in Ubuntu for managing network settings. It utilizes YAML files to define network configurations in a clear and manageable format. Netplan reads these configuration files and applies the settings using various network rendering methods, such as NetworkManager or systemd-networkd. The beauty of Netplan lies in its ability to simplify network configuration and make it more readable and easier to maintain.</p>



<p>In the past, network configuration in Ubuntu required manual edits to multiple files. Netplan brings all of that under one umbrella, making it more structured and user-friendly.</p>



<h4 class="wp-block-heading">Steps to Assign a Static IP Address with Netplan</h4>



<p>To assign a static IP address using Netplan, you need to edit the appropriate configuration file. These files are typically found in the <code>/etc/netplan/</code> directory and have a <code>.yaml</code> extension. The default filename is usually something like <code>00-installer-config.yaml</code>, but it may vary depending on the system.</p>



<p>Follow these steps to configure a static IP address:</p>



<ol class="wp-block-list">
<li><strong>Open the Terminal and Get Root Access:</strong><br>First, open your terminal and gain root privileges to make changes to the configuration files.</li>
</ol>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="   sudo -i" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #F8F8F2">   </span><span style="color: #50FA7B">sudo</span><span style="color: #F8F8F2"> </span><span style="color: #BD93F9">-i</span></span></code></pre></div>



<ol start="2" class="wp-block-list">
<li><strong>Edit the Netplan Configuration File:</strong><br>Now, you need to edit the Netplan configuration file. You can use any text editor, but we will use <code>nano</code> for this example. If the default configuration file exists, open it as follows:</li>
</ol>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="   sudo nano /etc/netplan/00-installer-config.yaml" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #F8F8F2">   </span><span style="color: #50FA7B">sudo</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">nano</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">/etc/netplan/00-installer-config.yaml</span></span></code></pre></div>



<p>If the file doesn&#8217;t exist, you may need to create it or check for files in the directory.</p>



<ol start="3" class="wp-block-list">
<li><strong>Edit the Configuration File to Assign the Static IP Address:</strong><br>Once the file is open, you need to specify your network interface and static IP settings. Below is an example configuration:</li>
</ol>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="   network:
     version: 2
     renderer: NetworkManager
     ethernets:
       enp1s0:
         addresses:
           - 172.16.1.61/24
         nameservers:
           addresses: [8.8.8.8, 8.8.4.4]
         routes:
           - to: default
             via: 172.16.1.1" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #F8F8F2">   </span><span style="color: #50FA7B">network:</span></span>
<span class="line"><span style="color: #F8F8F2">     </span><span style="color: #50FA7B">version:</span><span style="color: #F8F8F2"> </span><span style="color: #BD93F9">2</span></span>
<span class="line"><span style="color: #F8F8F2">     </span><span style="color: #50FA7B">renderer:</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">NetworkManager</span></span>
<span class="line"><span style="color: #F8F8F2">     </span><span style="color: #50FA7B">ethernets:</span></span>
<span class="line"><span style="color: #F8F8F2">       </span><span style="color: #50FA7B">enp1s0:</span></span>
<span class="line"><span style="color: #F8F8F2">         </span><span style="color: #50FA7B">addresses:</span></span>
<span class="line"><span style="color: #F8F8F2">           </span><span style="color: #50FA7B">-</span><span style="color: #F8F8F2"> </span><span style="color: #BD93F9">172.16</span><span style="color: #F1FA8C">.1.61/24</span></span>
<span class="line"><span style="color: #F8F8F2">         </span><span style="color: #50FA7B">nameservers:</span></span>
<span class="line"><span style="color: #F8F8F2">           </span><span style="color: #50FA7B">addresses:</span><span style="color: #F8F8F2"> [8.8.8.8, </span><span style="color: #BD93F9">8.8</span><span style="color: #F1FA8C">.4.4]</span></span>
<span class="line"><span style="color: #F8F8F2">         </span><span style="color: #50FA7B">routes:</span></span>
<span class="line"><span style="color: #F8F8F2">           </span><span style="color: #50FA7B">-</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">to:</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">default</span></span>
<span class="line"><span style="color: #F8F8F2">             </span><span style="color: #50FA7B">via:</span><span style="color: #F8F8F2"> </span><span style="color: #BD93F9">172.16</span><span style="color: #F1FA8C">.1.1</span></span></code></pre></div>



<p><strong>Explanation:</strong></p>



<ul class="wp-block-list">
<li><code>version: 2</code>: Specifies the version of Netplan configuration.</li>



<li><code>renderer: NetworkManager</code>: Tells Netplan to use NetworkManager for managing the network.</li>



<li><code>ethernets</code>: The section where you define the Ethernet interface, in this case, <code>enp1s0</code>.</li>



<li><code>addresses</code>: Specifies the static IP address (e.g., <code>172.16.1.61/24</code>), where <code>/24</code> denotes the subnet mask.</li>



<li><code>nameservers</code>: Specifies the DNS servers to use, in this case, Google&#8217;s DNS servers (8.8.8.8 and 8.8.4.4).</li>



<li><code>routes</code>: Defines the default gateway, which is the IP address that packets will be routed to if they are not for the local network (in this case, <code>172.16.1.1</code>).</li>
</ul>



<ol class="wp-block-list">
<li><strong>Save and Close the File:</strong><br>After making the necessary changes, save and close the file. In <code>nano</code>, you can do this by pressing <code>CTRL + X</code>, then <code>Y</code> to confirm changes, and finally <code>Enter</code> to save the file.</li>



<li><strong>Apply the Netplan Configuration:</strong><br>To apply the new network configuration, run the following command:</li>
</ol>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="   sudo netplan apply" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #F8F8F2">   </span><span style="color: #50FA7B">sudo</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">netplan</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">apply</span></span></code></pre></div>



<p>This command applies the new network settings, including the static IP address you specified.</p>



<h4 class="wp-block-heading">Testing the Configuration</h4>



<p>Once the configuration is applied, you can check if the static IP address has been successfully assigned by using the following command:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="ip a" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #50FA7B">ip</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">a</span></span></code></pre></div>



<p>This command will display a list of network interfaces and their assigned IP addresses. You should see the static IP address you assigned (e.g., <code>172.16.1.61</code>) listed under the appropriate network interface.</p>



<h4 class="wp-block-heading">Additional Tests</h4>



<p>To ensure the network is functioning correctly, you can perform a few additional tests:</p>



<ul class="wp-block-list">
<li><strong>Ping the Gateway:</strong><br>To verify that the network gateway is reachable, run:</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="  ping 172.16.1.1" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #F8F8F2">  </span><span style="color: #50FA7B">ping</span><span style="color: #F8F8F2"> </span><span style="color: #BD93F9">172.16</span><span style="color: #F1FA8C">.1.1</span></span></code></pre></div>



<p>If you receive responses from the gateway, it means the route is correctly set.</p>



<ul class="wp-block-list">
<li><strong>Check DNS Resolution:</strong><br>You can verify that DNS is working properly by running:</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="  nslookup google.com" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #F8F8F2">  </span><span style="color: #50FA7B">nslookup</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">google.com</span></span></code></pre></div>



<p>This will query the DNS server to ensure that domain names are being resolved correctly.</p>



<h4 class="wp-block-heading">Conclusion</h4>



<p>Netplan is an excellent tool for managing network configurations in Ubuntu. Assigning a static IP address with Netplan is straightforward and involves editing a single YAML file. This process helps maintain clear and easy-to-manage network configurations, especially for systems that require consistent network settings.</p>



<p>By following the steps in this guide, you should be able to configure a static IP address on your Ubuntu system quickly and effectively.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
