<?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>Programming Life &#187; linux</title>
	<atom:link href="http://blog.coding.ro/topics/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.coding.ro</link>
	<description>Coding Through Life</description>
	<lastBuildDate>Mon, 21 Sep 2009 20:54:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ubuntu 2 IP using one NIC</title>
		<link>http://blog.coding.ro/2008/05/ubuntu-2-ip-using-one-nic/</link>
		<comments>http://blog.coding.ro/2008/05/ubuntu-2-ip-using-one-nic/#comments</comments>
		<pubDate>Mon, 19 May 2008 22:34:34 +0000</pubDate>
		<dc:creator>sonix</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[IP addresses]]></category>
		<category><![CDATA[network interfaces]]></category>
		<category><![CDATA[NIC]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu network configuration]]></category>

		<guid isPermaLink="false">http://blog.coding.ro/?p=16</guid>
		<description><![CDATA[While trying to set up a meteor server I stumble upon a small issue. I need it to access the same network card using 2 different IP addresses. My favorite linux distribution for server is Ubuntu Server, but as far as I know this should apply to all Linux distros. 1. Open for editing /etc/network/interfaces [...]]]></description>
			<content:encoded><![CDATA[<p>While trying to set up a meteor server I stumble upon a small issue. I need it to access the same network card using 2 different IP addresses. My favorite linux distribution for server is Ubuntu Server, but as far as I know this should apply to all Linux distros.<br />
1. Open for editing /etc/network/interfaces  file using vim, Joe or mcedit.I used:</p>
<p><code># mcedit /etc/network/interfaces</code></p>
<p>2. Modify the content to look something like this, keeping in mind that these are the settings suitable for my environment. You should customize the ip addresses to match your network configuration:</p>
<p>#first address<br />
auto eth1<br />
iface eth1 inet static<br />
address 192.168.2.109<br />
netmask 255.255.255.0<br />
network 192.168.2.255<br />
gateway 192.168.2.1</p>
<p>#seccond address<br />
auto eth1:1<br />
iface eth1:1 inet static<br />
address 192.168.2.110<br />
netmask 255.255.255.0<br />
network 192.168.2.255<br />
gateway 192.168.2.1</p>
<p>3. Now restart the network</p>
<p><code># /etc/init.d/networking restart</code></p>
<p>4. Check the new configuration</p>
<p><code># ifconfig </code></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.coding.ro/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.coding.ro/2008/05/ubuntu-2-ip-using-one-nic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
