<?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>IP Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/ip/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 09 Sep 2020 04:42:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to set a Static IP address on Windows 10/Server</title>
		<link>https://www.osradar.com/how-to-set-a-static-ip-address-on-windows-10-server/</link>
					<comments>https://www.osradar.com/how-to-set-a-static-ip-address-on-windows-10-server/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Fri, 11 Sep 2020 21:39:08 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[IP address]]></category>
		<category><![CDATA[private IP address]]></category>
		<category><![CDATA[static IP]]></category>
		<category><![CDATA[static ip windows]]></category>
		<category><![CDATA[Windows 10]]></category>
		<category><![CDATA[Windows server]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=23495</guid>

					<description><![CDATA[<p>Hello! Let&#8217;s talk about IP addresses. It&#8217;s a number that identifies the computers or devices on a network. For example, a PC or a cell phone. In addition, they are divided into public IP addresses and private IP addresses. The public one is the one offered by the Internet access provider. Additionally, it is assigned [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-set-a-static-ip-address-on-windows-10-server/">How to set a Static IP address on Windows 10/Server</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello! Let&#8217;s talk about IP addresses. It&#8217;s a number that identifies the computers or devices on a network. For example, a PC or a cell phone. In addition, they are divided into public IP addresses and private IP addresses. The public one is the one offered by the Internet access provider. Additionally, it is assigned to any computer or device connected directly to the Internet. This value cannot be modified by the user. In any case, what can be done is to hide it. On the other hand, the private IP address is used to identify computers or devices within a home or private network. This address can be dynamic, assigned through a DHCP server. It can also be static. That is, assigned by the user manually or by the network server. Well, in this post we will see how to set a Static IP address on Windows 10/<a href="https://www.microsoft.com/en-us/windows-server" target="_blank" rel="noreferrer noopener">Server.</a></p>



<h2>How to assign a static IP address on Windows 10 or Windows Server.</h2>



<p>By default, operating systems assign the private IP address dynamically. That is, assigned by DHCP. The main reason for this is that everything is more automatic for connecting devices. Also, there is no need to configure anything and it saves time. On the other hand, this configuration can cause problems in some scenarios. For example, in a Server environment, a dynamic IP address is not recommended. Since it changes periodically, then it can affect the connectivity between the client computers and the server. Well, let&#8217;s look at the procedure for setting a static IP address. In the first place, it is necessary to follow the following path: </p>



<ul><li>Control Panel</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/ip-1024x787.png" alt="Control Panel" class="wp-image-23498" srcset="https://www.osradar.com/wp-content/uploads/2020/09/ip-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/ip-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/ip-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/ip-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/ip-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/ip-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/ip.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Control Panel</figcaption></figure>



<ul><li>Network and Internet</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/ip2-1024x787.png" alt="Network and Internet" class="wp-image-23500" srcset="https://www.osradar.com/wp-content/uploads/2020/09/ip2-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/ip2-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/ip2-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/ip2-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/ip2-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/ip2-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/ip2.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<ul><li>Network and Sharing Center</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/ip3-1024x787.png" alt="Network and Sharing Center" class="wp-image-23502" srcset="https://www.osradar.com/wp-content/uploads/2020/09/ip3-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/ip3-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/ip3-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/ip3-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/ip3-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/ip3-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/ip3.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Once there, please click on <strong>Change adapter settings</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="787" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/ip4-1024x787.png" alt="Select Change adapter settings" class="wp-image-23504" srcset="https://www.osradar.com/wp-content/uploads/2020/09/ip4-1024x787.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/ip4-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/ip4-768x590.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/ip4-696x535.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/ip4-1068x821.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/ip4-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/09/ip4.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Select Change adapter settings</figcaption></figure>



<p>All available network adapters will be displayed immediately. Please select the currently connected adapter and double-click on it. This will take you to the status. Finally, click on the <strong>Properties.</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="363" height="450" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/ip5.png" alt="" class="wp-image-23505" srcset="https://www.osradar.com/wp-content/uploads/2020/09/ip5.png 363w, https://www.osradar.com/wp-content/uploads/2020/09/ip5-242x300.png 242w" sizes="(max-width: 363px) 100vw, 363px" /><figcaption>Enter the connection properties</figcaption></figure>



<h2>Modifying the IPV4 values.</h2>



<p>Now it is necessary to configure the values of Internet Protocol Version 4. With this in mind, select the value and then click on <strong>Properties.</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="363" height="468" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/ip6.png" alt="Edit IPV4 properties" class="wp-image-23506" srcset="https://www.osradar.com/wp-content/uploads/2020/09/ip6.png 363w, https://www.osradar.com/wp-content/uploads/2020/09/ip6-233x300.png 233w" sizes="(max-width: 363px) 100vw, 363px" /><figcaption>Edit IPV4 properties</figcaption></figure>



<p>As you can see, the values corresponding to the IP address and the DNS server are obtained automatically.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="400" height="455" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/ip7.png" alt="" class="wp-image-23508" srcset="https://www.osradar.com/wp-content/uploads/2020/09/ip7.png 400w, https://www.osradar.com/wp-content/uploads/2020/09/ip7-264x300.png 264w" sizes="(max-width: 400px) 100vw, 400px" /><figcaption>The IP address and DNS server are automatically obtained by default in Windows.</figcaption></figure>



<p>Now it is time to modify these values according to the user&#8217;s taste. If you have trouble choosing the static IP address, I recommend using the one currently used. With this intention, from a Command Prompt run the command <em>ipconfig.</em> Once there, you can copy the corresponding values:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="237" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/ip8-1024x237.png" alt="CMD showing connection parameters" class="wp-image-23510" srcset="https://www.osradar.com/wp-content/uploads/2020/09/ip8-1024x237.png 1024w, https://www.osradar.com/wp-content/uploads/2020/09/ip8-300x69.png 300w, https://www.osradar.com/wp-content/uploads/2020/09/ip8-768x178.png 768w, https://www.osradar.com/wp-content/uploads/2020/09/ip8-696x161.png 696w, https://www.osradar.com/wp-content/uploads/2020/09/ip8-1068x247.png 1068w, https://www.osradar.com/wp-content/uploads/2020/09/ip8.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>CMD showing connection parameters</figcaption></figure>



<p>Then, just add those values to the corresponding table. As far as the DNS is concerned, please add the corresponding value to the <strong>Default gateway.</strong> Press OK to continue.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="400" height="455" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/09/ip9.png" alt="Assigning a static IP address" class="wp-image-23512" srcset="https://www.osradar.com/wp-content/uploads/2020/09/ip9.png 400w, https://www.osradar.com/wp-content/uploads/2020/09/ip9-264x300.png 264w" sizes="(max-width: 400px) 100vw, 400px" /><figcaption>Assigning a static IP address</figcaption></figure>



<p>And this is all! In this simple way, we have seen how to set a static IP address in Windows 10/Server. From now on, you can play with this value within the network. Before I say goodbye, I invite you to see our post about resetting the user password in <a href="https://www.osradar.com/how-to-reset-user-password-in-windows-server-2019-2016/" target="_blank" rel="noreferrer noopener">Windows Server.</a> Bye!</p>



<h2></h2>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-set-a-static-ip-address-on-windows-10-server/">How to set a Static IP address on Windows 10/Server</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-set-a-static-ip-address-on-windows-10-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to set a static IP address on CentOS 8/ RHEL 8 / Oracle Linux 8</title>
		<link>https://www.osradar.com/how-to-set-a-static-ip-address-on-centos-8-rhel-8-oracle-linux-8/</link>
					<comments>https://www.osradar.com/how-to-set-a-static-ip-address-on-centos-8-rhel-8-oracle-linux-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 13 Aug 2019 00:11:35 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[Oracle Linux]]></category>
		<category><![CDATA[RHEL 8]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12956</guid>

					<description><![CDATA[<p>The entire ecosystem of the Red Hat Linux Enterprise family is used extensively on servers. Whether enterprise, small, or medium, RHEL-based distributions copy that segment along with Debian and Ubuntu. And in server management, it is common and frequent to use configurations over IP addresses. In this case, you will learn to establish a static [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-set-a-static-ip-address-on-centos-8-rhel-8-oracle-linux-8/">How to set a static IP address on CentOS 8/ RHEL 8 / Oracle Linux 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The entire ecosystem of the Red Hat Linux Enterprise family is used extensively on servers. Whether enterprise, small, or medium, RHEL-based distributions copy that segment along with Debian and Ubuntu. And in server management, it is common and frequent to use configurations over IP addresses. In this case, you will learn to establish a static IP address on CentOS 8, RHEL 8 and Oracle Linux 8.</p>
<h2>How to set a static IP address on Centos 8 / RHEL 8 / Oracle Linux</h2>
<p>Linux is a fairly flexible system and this results in several ways of doing the same process. In this case, it is the same, we will be able to establish a static IP address in several ways. To avoid unnecessarily lengthening the post, I will only show one single way.</p>
<p>It is advisable to read about static and dynamic IP addresses. This is because it is not always good to have them, although in an internal network it helps a lot to manage the services of that server. Even, at cluster level and related things, <strong>it is necessary to assign a specific address to a node</strong>.</p>
<p>So, let us start.</p>
<h3>Using the Network scripts to set a static IP address</h3>
<p>I think this is the most basic way to set a static IP address in CentOS 8, RHEL 8 and Oracle Linux 8. Because this way we will not have to install or use third-party tools to do the configuration. On the other hand, it is a bit rough for newbies.</p>
<p>First of all, you have to know what the network interfaces you have active are called. Let us suppose that we are going to define a static IP address to the ethernet wired network.</p>
<p>So, open a terminal and run the following:</p>
<pre>:~$ ip addr show</pre>
<p><figure id="attachment_12970" aria-describedby="caption-attachment-12970" style="width: 742px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12970" src="https://www.osradar.com/wp-content/uploads/2019/08/1-5.jpeg" alt="1.- The network interface on CentOS 8 RHEL 8 Oracle Linux 8" width="742" height="265" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-5.jpeg 742w, https://www.osradar.com/wp-content/uploads/2019/08/1-5-300x107.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-5-696x249.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-5-741x265.jpeg 741w" sizes="(max-width: 742px) 100vw, 742px" /><figcaption id="caption-attachment-12970" class="wp-caption-text">1.- The network interface on CentOS 8 RHEL 8 Oracle Linux 8</figcaption></figure></p>
<p>In the screen output of the command, you will notice that they open several interfaces. In my case, there are only two. The local and another one called <code>enp0s3</code>. That is the one we want to change.</p>
<p>Now open the configuration file of that network interface. I will use <code>nano</code> for it, if you do not have it installed you can do it.</p>
<pre>:~$ su
:~# nano /etc/sysconfig/network-scripts/ifcfg-[network-interface]</pre>
<p>The content of the file is quite explicit. However, to configure the static IP, it is enough to modify these elements:</p>
<div id="primary" class="content-area">
<article id="post-926" class="post-926 post type-post status-publish format-standard has-post-thumbnail hentry category-centos-linux category-redhat-linux tag-centos-8 tag-rhel-8">
<header class="entry-header">
<div class="entry-meta"><span class="posted-on"><span class="screen-reader-text">Posted on</span> </span></div>
<pre>TYPE="Ethernet"
BOOTPROTO="none"
NAME="eth0"
IPADDR=192.168.250.105
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
BROADCAST=192.168.255.255
DEVICE="eth0"
ONBOOT="yes"</pre>
</header>
</article>
</div>
<p>Also, if you want to use DNS, add these two options.</p>
<pre>DNS1=[DNS_SERVER]
DNS2=[DNS_SERVER]</pre>
<p>Next, save the changes and close the file.</p>
<p><figure id="attachment_12971" aria-describedby="caption-attachment-12971" style="width: 947px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12971" src="https://www.osradar.com/wp-content/uploads/2019/08/2-6.jpeg" alt="2.- Set a static IP address on centos 8, RHEL 8 and Oracle Linux 8" width="947" height="397" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2-6.jpeg 947w, https://www.osradar.com/wp-content/uploads/2019/08/2-6-300x126.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/2-6-768x322.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/2-6-696x292.jpeg 696w" sizes="(max-width: 947px) 100vw, 947px" /><figcaption id="caption-attachment-12971" class="wp-caption-text">2.- Set a static IP address on centos 8, RHEL 8 and Oracle Linux 8</figcaption></figure></p>
<p>It is now necessary to reload the networks profile so that the system knows that there have been changes.</p>
<pre>:~# nmcli connection reload</pre>
<p>Finally, restart the connection.</p>
<pre>:~# nmcli con down [network_interface]
:~# nmcli con up [network_interface]</pre>
<p>Now, check the new IP address with this command:</p>
<pre>:~# ip addr show</pre>
<p><figure id="attachment_12972" aria-describedby="caption-attachment-12972" style="width: 877px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12972" src="https://www.osradar.com/wp-content/uploads/2019/08/3-5.jpeg" alt="3.- Check the changes" width="877" height="295" srcset="https://www.osradar.com/wp-content/uploads/2019/08/3-5.jpeg 877w, https://www.osradar.com/wp-content/uploads/2019/08/3-5-300x101.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/3-5-768x258.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/3-5-696x234.jpeg 696w" sizes="(max-width: 877px) 100vw, 877px" /><figcaption id="caption-attachment-12972" class="wp-caption-text">3.- Check the changes</figcaption></figure></p>
<p>So, everything is OK.</p>
<h2>Conclusion</h2>
<p>In this post, you have learned to set a static IP address in CentOS 8, RHEL 8 and Oracle Linux 8. This way you will be able to manage some servers a little better and it is a very used network function. On the other hand, if you use any of these distributions as a personal system it is probably not useful.</p>
<p>You can also read <a href="https://www.osradar.com/set-a-static-ip-on-debian-10-buster/" rel="noopener noreferrer">How to set a static IP address on Debian 10 Buster?</a></p>
<p>Please share this post and join <a href="https://t.me/osradar" rel="noopener noreferrer">our Telegram channel.</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-set-a-static-ip-address-on-centos-8-rhel-8-oracle-linux-8/">How to set a static IP address on CentOS 8/ RHEL 8 / Oracle Linux 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-set-a-static-ip-address-on-centos-8-rhel-8-oracle-linux-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to set a static IP address on Debian 10 Buster?</title>
		<link>https://www.osradar.com/set-a-static-ip-on-debian-10-buster/</link>
					<comments>https://www.osradar.com/set-a-static-ip-on-debian-10-buster/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 13 Jul 2019 00:22:05 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[static IP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12672</guid>

					<description><![CDATA[<p>In this opportunity, I will show you how to define a static IP address in Debian 10. With that, you will be able to give a specific IP address to your Debian team. Ideal if you are on a home network or for educational purposes. What do you will learn in this post? This is [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/set-a-static-ip-on-debian-10-buster/">How to set a static IP address on Debian 10 Buster?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this opportunity, I will show you how to define a static IP address in Debian 10. With that, you will be able to give a specific IP address to your Debian team. Ideal if you are on a home network or for educational purposes.</p>
<h2>What do you will learn in this post?</h2>
<p>This is a post, quite simple to apply. If you keep reading, you will learn the following</p>
<ol>
<li><strong>What is a static IP address?</strong></li>
<li><strong>Advantages of having a server with a static IP address.</strong></li>
<li><strong>How to define a static IP address in Debian 10 Buster?</strong></li>
</ol>
<p>On the other hand, if you do not have Debian 10 Buster installed yet, I recommend you to visit our post where we explain it in detail.</p>
<p><a href="https://www.osradar.com/how-to-install-debian-10-buster/" rel="noopener">How to install Debian 10 Buster?</a></p>
<p>So, we can start now.</p>
<h2>A Static IP address</h2>
<p>An IP address is an identifier held by each device that connects to the Internet or a computer network. In the case of the Internet, it must be unique to avoid connection conflicts.</p>
<p>On the one hand, there are dynamic IP addresses that change their value from time to time. Normally, these addresses are assigned by a<a href="https://www.osradar.com/set-up-dhcp-server-debian-9/" rel="noopener"> DCHP server</a>. The sysadmin does not have to worry about the assigned address as they are renewed from time to time.</p>
<p>On the other hand, we have static or fixed IP addresses, which unlike dynamical ones, do not change over time. In this case, it must be assigned and configured manually in the system.</p>
<p>Each of them has its own advantages, however, for internal networks, it is convenient to have equipment with static IP addresses. This facilitates the administration and routing of packets within the network. It is also easier to maintain the network.</p>
<p>Now, I will show you how to define a static IP address in Debian 10.</p>
<h2>How to set up a static IP address on Debian 10?</h2>
<p>First, it is necessary to know which network interface we are going to configure. For this example, I will assume that we will configure the wired network interface.</p>
<p>Then, we verify the name of the interface with the following command:</p>
<pre>:~$ ip addr show</pre>
<p>The output will be something similar to this one:</p>
<pre>1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; 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/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s3: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:33:07:93 brd ff:ff:ff:ff:ff:ff
    inet 192.168.250.15/16 brd 192.168.255.255 scope global dynamic enp0s3
       valid_lft 86277sec preferred_lft 86277sec
    inet6 fdd4:a148:ea1:7a00:a00:27ff:fe33:793/64 scope global dynamic mngtmpaddr 
       valid_lft 7078sec preferred_lft 3478sec
    inet6 fe80::a00:27ff:fe33:793/64 scope link 
       valid_lft forever preferred_lft forever</pre>
<p>There we will have the name of the network interfaces. The one that corresponds to the wired network is called <code>enp0s3</code>. Something similar should be in your case.</p>
<p>And it has an IP address <code>192.168.250.15</code>. However, I always want the address to be <code>192.168.250.99</code>.</p>
<p>Now that we know the name of the interface, we need to edit the file <code>/etc/network/interfaces</code>.</p>
<pre>:~$ sudo nano /etc/network/interfaces</pre>
<p>On the line:</p>
<pre>iface enp0s3 inet dhcp</pre>
<p>It says that it will configure the interface with DHCP i.e. for a dynamic IP address. It has to be changed to configure it in a static way. So, change it for this line:</p>
<pre>iface enp0s3 inet static</pre>
<p>The following connection parameters should then be added.</p>
<ul>
<li>Address</li>
<li>Netmask</li>
<li>Network</li>
<li>Broadcast</li>
<li>Gateway</li>
</ul>
<pre>address 192.168.250.99
netmask 255.255.255.0
network 192.168.1.1
broadcast 192.168.255.255
gateway 192.168.1.1</pre>
<p><strong>Remember that these parameters are as an example. You need to type the corresponding ones to your network.</strong></p>
<p>After making the settings, it should look like this:</p>
<p><figure id="attachment_12695" aria-describedby="caption-attachment-12695" style="width: 326px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12695" src="https://www.osradar.com/wp-content/uploads/2019/07/1-10.png" alt="1.- Configuring a static IP address on Debian 10 Buster" width="326" height="181" srcset="https://www.osradar.com/wp-content/uploads/2019/07/1-10.png 326w, https://www.osradar.com/wp-content/uploads/2019/07/1-10-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/1-10-324x181.png 324w" sizes="(max-width: 326px) 100vw, 326px" /><figcaption id="caption-attachment-12695" class="wp-caption-text">1.- Configuring a static IP address on Debian 10 Buster</figcaption></figure></p>
<p>Next, restart the network service</p>
<pre>:~$ sudo systemctl restart networking</pre>
<p>Then, check the changes:</p>
<pre>:~$ ip addr show</pre>
<p><figure id="attachment_12696" aria-describedby="caption-attachment-12696" style="width: 782px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12696" src="https://www.osradar.com/wp-content/uploads/2019/07/2-8.png" alt="2.- Check the results" width="782" height="188" srcset="https://www.osradar.com/wp-content/uploads/2019/07/2-8.png 782w, https://www.osradar.com/wp-content/uploads/2019/07/2-8-300x72.png 300w, https://www.osradar.com/wp-content/uploads/2019/07/2-8-768x185.png 768w, https://www.osradar.com/wp-content/uploads/2019/07/2-8-696x167.png 696w" sizes="(max-width: 782px) 100vw, 782px" /><figcaption id="caption-attachment-12696" class="wp-caption-text">2.- Check the results</figcaption></figure></p>
<p>So, everything was fine.</p>
<h2>Conclusion</h2>
<p>Setting up a static IP address on Debian 10 is quite simple. However, you must have root privileges to do this. You can learn <a href="https://www.osradar.com/how-to-enable-sudo-on-debian-10/" target="_blank" rel="noopener noreferrer">how to enable sudo in Debian 10</a> for that.</p>
<p>Ideally, you should have a static IP address for computers within an internal network to make them easier to handle.</p>
<p>Please share this post with your friends and join our <a href="https://t.me/osradar">Telegram channel</a>.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/set-a-static-ip-on-debian-10-buster/">How to set a static IP address on Debian 10 Buster?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/set-a-static-ip-on-debian-10-buster/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>How to set a Static IP address on CentOS 7?</title>
		<link>https://www.osradar.com/how-to-set-a-static-ip-address-on-centos-7/</link>
					<comments>https://www.osradar.com/how-to-set-a-static-ip-address-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sun, 07 Oct 2018 00:00:54 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[IP address]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=6174</guid>

					<description><![CDATA[<p>In several of our tutorials, we have referred to the IP address of a server. However, for many, the concept is not entirely clear. Today, I will show how to set a Static IP address using CentOS7. IP means &#8220;Internet Protocol&#8220;. An IP address is a number (or set of numbers) that logically and hierarchically [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-set-a-static-ip-address-on-centos-7/">How to set a Static IP address on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In several of <a href="https://www.osradar.com/how-to-install-kanboard-on-centos-7/">our </a>tutorials, we have referred to the IP address of a server. However, for many, the concept is not entirely clear. Today, I will show how to set a Static IP address using CentOS7.</p>
<p>IP means &#8220;<a href="https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/com.ibm.aix.networkcomm/protocols_ip.htm" rel="noopener">Internet Protocol</a>&#8220;. An IP address is a number (or set of numbers) that logically and hierarchically identifies a network interface (communication/connection element) of a device (computer, tablet, laptop, smartphone) that uses the IP protocol. Every web page you visit, any computer you work from or even mobile phones and tablets, has one of these addresses when you access the internet.</p>
<p>According to the form and scope of IP addresses, they can be classified into Public and private; static and dynamic; Type A, B or C. Despite all of them, I will focus on dynamic and static IP.</p>
<h2>Dynamic IP Address and Static IP Address</h2>
<p>In short, a dynamic IP address is one that is obtained via a DHCP server. Among its main advantages are:</p>
<ul>
<li>Reduces the amount of assigned IP inactive.</li>
<li>It provides more security because your IP can change constantly.</li>
<li>IP addresses are assigned by a server.</li>
</ul>
<p>Otherwise, static IP addresses are assigned manually by a user and will not change until the user assigns another. Nonetheless, a router can also assign this type of address through the device&#8217;s MAC address. Its main advantage is that it is easier to deploy network services. However, it is a slightly less secure method as the IP address will never change.</p>
<h2>How to do it in CentOS 7</h2>
<p>First, you must know what address and what the network interface is called. To do this, open a terminal and run as root user:</p>
<pre class="">:~# yum install net-tools</pre>
<p><figure id="attachment_6205" aria-describedby="caption-attachment-6205" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6205" src="https://www.osradar.com/wp-content/uploads/2018/10/1-2.png" alt="1.- Installing net-tools packages" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/1-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/1-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/1-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/1-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/1-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/1-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/1-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6205" class="wp-caption-text">1.- Installing net-tools packages</figcaption></figure></p>
<p>Then, verify the name of the network interface:</p>
<pre class="">:~# ip addr show</pre>
<p><figure id="attachment_6206" aria-describedby="caption-attachment-6206" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6206" src="https://www.osradar.com/wp-content/uploads/2018/10/2-2.png" alt="2.- Showing the network interface" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/2-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/2-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/2-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/2-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/2-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/2-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/2-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6206" class="wp-caption-text">2.- Showing the network interface</figcaption></figure></p>
<p>In this case, the interface name is <em>enp0s3. </em>In this section, you can also see the IP address of the computer.<em><br />
</em></p>
<p>Now you need to edit the interface configuration file.</p>
<pre class="">:~# nano /etc/sysconfig/network-scripts/ifcfg-enp0s3</pre>
<p><figure id="attachment_6208" aria-describedby="caption-attachment-6208" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6208" src="https://www.osradar.com/wp-content/uploads/2018/10/3-2.png" alt="3.- Showing the configuration file for the network interface" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/3-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/3-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/3-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/3-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/3-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/3-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/3-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6208" class="wp-caption-text">3.- Showing the configuration file for the network interface</figcaption></figure></p>
<p>This is the contents of the file in my case.</p>
<pre class="">TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s3
UUID=195e564e-ecc4-477f-89ae-7158db8562fe
DEVICE=enp0s3
ONBOOT=yes
ZONE=public</pre>
<p>Of all this, you only have to modify <em>BOOTPROTO </em>to static and add the following:</p>
<pre class="">IPADDR=YOUR_IP
PREFIX=24
GATEWAY=YOUR_GATEWAY
DNS1=DNS_IP
DNS2=DNS_IP</pre>
<p>These are the parameters that you must place in your case that require. For example, the IP can be the one you want, and the gateway depends on your network. DNS values are optional.</p>
<p><figure id="attachment_6254" aria-describedby="caption-attachment-6254" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-6254 size-full" src="https://www.osradar.com/wp-content/uploads/2018/10/1000.png" alt="4.-Network configuration" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/1000.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/1000-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/1000-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/1000-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/1000-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/1000-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/1000-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6254" class="wp-caption-text">4.-Network configuration</figcaption></figure></p>
<p>Finally, restart the network service.</p>
<pre class="">:~# systemctl restart network</pre>
<p>Then, verify the IP address.</p>
<pre class="">:~# ip addr show</pre>
<p><figure id="attachment_6255" aria-describedby="caption-attachment-6255" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-6255 size-full" src="https://www.osradar.com/wp-content/uploads/2018/10/2000.png" alt="5.- Showing the new IP address" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/2000.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/2000-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/2000-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/2000-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/2000-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/2000-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/2000-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6255" class="wp-caption-text">5.- Showing the new IP address</figcaption></figure></p>
<p>And that&#8217;s it.</p>
<p>As you could see, it&#8217;s easy to make the change to the static IP address in CentOS 7. Remember that the configuration parameters are changeable and you must have them for your connection to be correct.</p>
<p>Please share this article in your social networks.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-set-a-static-ip-address-on-centos-7/">How to set a Static IP address on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-set-a-static-ip-address-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
