<?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>/etc/sysconfig/network &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/etcsysconfignetwork/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Fri, 27 Jan 2012 10:02:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>How To Configure Static IP Address On CentOS</title>
		<link>https://lifelinux.com/how-to-configure-static-ip-address-on-centos/</link>
					<comments>https://lifelinux.com/how-to-configure-static-ip-address-on-centos/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Fri, 16 Sep 2011 15:35:31 +0000</pubDate>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[/etc/HOSTNAME]]></category>
		<category><![CDATA[/etc/init.d/network restart]]></category>
		<category><![CDATA[/etc/init.d/networking restart]]></category>
		<category><![CDATA[/etc/network/interfaces]]></category>
		<category><![CDATA[/etc/resolv.conf]]></category>
		<category><![CDATA[/etc/sysconfig/network]]></category>
		<category><![CDATA[/etc/sysconfig/network-scripts/ifcfg-eth0]]></category>
		<category><![CDATA[/etc/sysconfig/network-scripts/ifcfg-eth1]]></category>
		<category><![CDATA[default gateway]]></category>
		<category><![CDATA[dns servers]]></category>
		<category><![CDATA[enterprise linux]]></category>
		<category><![CDATA[gateway ip]]></category>
		<category><![CDATA[internet protocol version]]></category>
		<category><![CDATA[internet protocol version 4]]></category>
		<category><![CDATA[network configuration]]></category>
		<category><![CDATA[network interfaces]]></category>
		<category><![CDATA[network scripts]]></category>
		<category><![CDATA[networking service]]></category>
		<category><![CDATA[setup linux]]></category>
		<category><![CDATA[static ip address]]></category>
		<category><![CDATA[static ip configuration]]></category>
		<category><![CDATA[tcp ip settings]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=1226</guid>

					<description><![CDATA[<p>Configure a static IP address on CentOS is quite easy. In this article, I&#8217;ll show you how to do it through command line. Log on as root, change directory to /etc/sysconfig/network-scripts and list all available devices with the following command # cd /etc/sysconfig/network-scripts # ls -la &#124; grep ifcfg- Sample outputs -rw-r--r-- 3 root root [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-configure-static-ip-address-on-centos/">How To Configure Static IP Address On CentOS</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>Configure a static IP address on CentOS is quite easy. In this article, I&#8217;ll show you how to do it through command line.<br />
<span id="more-1226"></span><br />
Log on as root, change directory to /etc/sysconfig/network-scripts and list all available devices with the following command</p>
<pre># cd /etc/sysconfig/network-scripts
# ls -la | grep ifcfg-</pre>
<p>Sample outputs</p>
<pre>-rw-r--r--  3 root root   244 Oct 15  2010 ifcfg-<span style="color: #ff0000;">eth0</span>
-rw-r--r--  3 root root   141 Oct 15  2010 ifcfg-<span style="color: #ff0000;">eth1</span>
-rw-r--r--  1 root root   254 Oct 13  2010 ifcfg-<span style="color: #0000ff;">lo</span></pre>
<p>Find the configuration file corresponding to the NIC for which you want to set a static IP and edit it. In this example I&#8217;ll configure a static IP address for eth1 and use the following Internet Protocol Version 4:<br />
# IP address: 192.168.1.10<br />
# Netmask: 255.255.255.0<br />
# Gateway IP: 192.168.1.1<br />
# DNS Server IP # 2: 8.8.8.8<br />
# DNS Server IP # 2: 8.8.4.4</p>
<pre># vi ifcfg-eth1</pre>
<p>Sample outputs</p>
<pre># Intel Corporation 82574L Gigabit Network Connection
DEVICE=eth1
HWADDR=00:25:90:0B:A3:E5
ONBOOT=no
HOTPLUG=no
BOOTPROTO=dhcp
TYPE=Ethernet</pre>
<p>Now set the parameters below according to your settings, sample static ip configuration</p>
<pre># Intel Corporation 82574L Gigabit Network Connection
DEVICE=eth1
BOOTPROTO=static
DHCPCLASS=
HWADDR=00:25:90:0B:A3:E5
IPADDR=192.168.1.10
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
ONBOOT=yes</pre>
<p>To setup DNS servers, edit /etc/resolv.conf, enter</p>
<pre># vi /etc/resolv.conf</pre>
<p>Sample configurations</p>
<pre>nameserver 8.8.8.8
nameserver 8.8.4.4</pre>
<p>Now save the configuration file and exit the text editor. To apply changes, we need to bring the network interface down and back up, type the following command</p>
<pre># /etc/init.d/network restart</pre>
<p>Or,</p>
<pre># service network restart</pre>
<g:plusone href="https://lifelinux.com/how-to-configure-static-ip-address-on-centos/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-configure-static-ip-address-on-centos/">How To Configure Static IP Address On CentOS</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-configure-static-ip-address-on-centos/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>
