<?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>Thoughts Electrique &#187; CentOS</title>
	<atom:link href="http://www.sebastian.himberger.de/blog/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sebastian.himberger.de/blog</link>
	<description>Sebastian Himbergers blog about technology and software development</description>
	<lastBuildDate>Sat, 16 Jul 2011 22:48:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Static IPs and default route on 1und1 CentOS 5 Servers</title>
		<link>http://www.sebastian.himberger.de/blog/2009/03/11/static-ips-and-default-route-on-1und1-centos-5-servers/</link>
		<comments>http://www.sebastian.himberger.de/blog/2009/03/11/static-ips-and-default-route-on-1und1-centos-5-servers/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 22:10:19 +0000</pubDate>
		<dc:creator>Sebastian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[1und1]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=358</guid>
		<description><![CDATA[I&#8217;ve been experiencing some serverdowns at a client who uses 1und1 CentOS 5 Servers. After some investigation I discovered that cronjobs were still running although the server appeared to be down. Checking the syslogs showed me a bunch of failed DHCP requests which remebered me of the fact that 1und1 uses DHCP to configure the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been experiencing some serverdowns at a client who uses <a title="1und1 german website" href="http://www.1und1.de" target="_blank">1und1</a> <a title="Official CentOS website" href="http://www.centos.org/" target="_blank">CentOS </a>5 Servers. After some investigation I discovered that cronjobs were still running although the server appeared to be down. Checking the syslogs showed me a bunch of failed DHCP requests which remebered me of the fact that <strong>1und1 uses DHCP to configure the server machines</strong>. I don&#8217;t think this is a good idea so I changed the setup to static IPs.</p>
<p>Since 1und1 puts every server behind a dedicated firewall the setup is not as easy as you think. I&#8217;ll document it here because It may be useful for other people and certainly for myself after a couple of months.</p>
<h3>Configure a static IP address</h3>
<p>Open the file <em>/etc/sysconfig/network-scripts/ifcfg-eth0</em> and edit it to look like the following:</p>
<pre class="file">DEVICE=eth0
BOOTPROTO=none
TYPE=Ethernet
ONBOOT=yes
HWADDR=$YOURMACADDRESS
NETMASK=255.255.255.255
IPADDR=$YOURIP
GATEWAY=10.255.255.1</pre>
<p>Save the file.</p>
<h3>Configure static routes</h3>
<p>This is the tricky part. Configuring a default gateway using the <em>GATEWAY=</em> setting is not enough. You have to setup the routes yourself. To do so create a new file <em>/etc/sysconfig/network-scripts/route-eth0 </em>with the following contents:</p>
<pre class="file">10.255.255.1 dev eth0
default via 10.255.255.1 dev eth0</pre>
<p>Now you only have to reload the networking configuration via</p>
<pre class="terminal">service network reload</pre>
<p>and you are done!</p>
<p><a title="Tutorial for CentOS4" href="http://webui.sourcelabs.com/centos/mail/user/threads/How_to_create_static_routes_on_startup_with_CentOS4%253F.meta" target="_blank">This post</a> helped me a lot with the solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sebastian.himberger.de/blog/2009/03/11/static-ips-and-default-route-on-1und1-centos-5-servers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

