<?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>IPRobot.net &#187; Awang Apandy</title>
	<atom:link href="http://www.iprobot.net/author/awang/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iprobot.net</link>
	<description>Technology, Reviews, Tutorials, Make Money Online, Linux Tutorials</description>
	<lastBuildDate>Wed, 21 Sep 2011 10:06:24 +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>How to Setup Software RAID for Windows Server 2003</title>
		<link>http://www.iprobot.net/windows-tutorial/how-to-setup-software-raid-for-windows-server-2003/</link>
		<comments>http://www.iprobot.net/windows-tutorial/how-to-setup-software-raid-for-windows-server-2003/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 07:36:18 +0000</pubDate>
		<dc:creator>Awang Apandy</dc:creator>
				<category><![CDATA[Windows Tutorial]]></category>
		<category><![CDATA[software raid]]></category>
		<category><![CDATA[software raid in windows 2003]]></category>
		<category><![CDATA[windows 2003]]></category>

		<guid isPermaLink="false">http://www.iprobot.net/?p=199</guid>
		<description><![CDATA[Hi. Today I&#8217;m going to show you on how to setup a software RAID as usual. But this time, it will not be based on Linux or Unix operating system. Today I&#8217;m going to show how to setup for Windows &#8230; <a href="http://www.iprobot.net/windows-tutorial/how-to-setup-software-raid-for-windows-server-2003/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hi. Today I&#8217;m going to show you on how to setup a software RAID as usual. But this time, it will not be based on Linux or Unix operating system. Today I&#8217;m going to show how to setup for Windows Server 2003. Yes, Windows Server 2003 has a built-in function that almost similar to Software RAID function. </p>
<p>Please make sure before this installation, you will need 2 identical hard disk with same space connected to the server. But the truth is, you don’t need to same hard disk with the same space amount, but as long as you partitioned the space equally then it would be good as well. But for beginner, it is better to get a hard disk that got the same space quantity, less percentage that you would get yourself confused.</p>
<p>Below are the steps on how to enable the Software RAID inside Windows Server 2003:<br />
<span id="more-199"></span></p>
<p>1) You may follow the initial windows setup here:</p>
<p>http://www.iprobot.net/windows-tutorial/how-to-install-windows-server-2003/</p>
<p>2) After the installation has finished, click on Start button and right-click on My Computer. Select Manage and click on it:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raidwindows/1.jpg" alt="" /><br />
&nbsp;</p>
<p>3) Next is to select Disk Management:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raidwindows/2.jpg" alt="" /><br />
&nbsp;</p>
<p>4) Right-click on your current hard disk that contained the Windows and select Convert To Dynamic Disk:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raidwindows/3.jpg" alt="" /><br />
&nbsp;</p>
<p>5) Select the hard disk that you want to convert. Make sure to select the 2nd hard disk you want to add as RAID as well to convert to Dynamic Disk and click the Ok button:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raidwindows/4.jpg" alt="" /><br />
&nbsp;</p>
<p>6) Click Convert button to proceed:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raidwindows/5.jpg" alt="" /><br />
&nbsp;</p>
<p>7) Please be advised that you can&#8217;t convert the hard disks back once to normal once you have converted to dynamic. Click the Yes button to proceed:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raidwindows/6.jpg" alt="" /><br />
&nbsp;</p>
<p> <img src='http://www.iprobot.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Click Yes again to proceed:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raidwindows/7.jpg" alt="" /><br />
&nbsp;</p>
<p>9) After the conversion has been done, the system will go for a reboot.</p>
<p>10) Once the reboot done, open back the Computer Management and this time you can see both hard disks are labeled as Dynamic. Right click on the Disk 0 (which contains the operating system) and select Add Mirror (which is similar to RAID1, whereas the Extend Volume option is similar to RAID0) :</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raidwindows/8.jpg" alt="" /><br />
&nbsp;</p>
<p>11) Now select the 2nd hard disk that you want to add as its mirror (RAID1) and click the button Add:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raidwindows/9.jpg" alt="" /><br />
&nbsp;</p>
<p>12) Now the system will start synchronizing. Don&#8217;t worry about the error message appeared since it is only mentioning that the boot file has been copied. Just wait for a while till it finished:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raidwindows/10.jpg" alt="" /><br />
&nbsp;</p>
<p>13) Once the synchronization has been done, this will be the final outlook of your hard disks appearance:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raidwindows/11.jpg" alt="" /><br />
&nbsp;</p>
<p>That is all on how to setup Software RAID on Windows Server 2003. It was relatively easy and quick. Happy Tryin <img src='http://www.iprobot.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://www.iprobot.net/windows-tutorial/how-to-setup-software-raid-for-windows-server-2003/&amp;title=How to Setup Software RAID for Windows Server 2003' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us]'  /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://www.iprobot.net/windows-tutorial/how-to-setup-software-raid-for-windows-server-2003/&amp;title=How to Setup Software RAID for Windows Server 2003' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg]'  /></a> <a href='http://reddit.com/submit?url=http://www.iprobot.net/windows-tutorial/how-to-setup-software-raid-for-windows-server-2003/&amp;title=How to Setup Software RAID for Windows Server 2003' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit]'  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://www.iprobot.net/windows-tutorial/how-to-setup-software-raid-for-windows-server-2003/&amp;title=How to Setup Software RAID for Windows Server 2003' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot]'  /></a> <a href='http://www.stumbleupon.com/submit?url=http://www.iprobot.net/windows-tutorial/how-to-setup-software-raid-for-windows-server-2003/&amp;title=How to Setup Software RAID for Windows Server 2003' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon]'  /></a> <a href='http://technorati.com/faves?add=http://www.iprobot.net/windows-tutorial/how-to-setup-software-raid-for-windows-server-2003/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati]'  /></a> <a href='https://favorites.live.com/quickadd.aspx?mkt=en-us&amp;url=http://www.iprobot.net/windows-tutorial/how-to-setup-software-raid-for-windows-server-2003/&amp;title=How to Setup Software RAID for Windows Server 2003' title='Save to Windows Live' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/windowslive.png' style='width:16px; height:16px;' alt='[Windows Live]'  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://www.iprobot.net/windows-tutorial/how-to-setup-software-raid-for-windows-server-2003/&amp;t=How to Setup Software RAID for Windows Server 2003' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!]'  /></a> </div></div>]]></content:encoded>
			<wfw:commentRss>http://www.iprobot.net/windows-tutorial/how-to-setup-software-raid-for-windows-server-2003/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Network Cables</title>
		<link>http://www.iprobot.net/uncategorized/network-cables/</link>
		<comments>http://www.iprobot.net/uncategorized/network-cables/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 07:02:00 +0000</pubDate>
		<dc:creator>Awang Apandy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.iprobot.net/?p=186</guid>
		<description><![CDATA[Network cable is the medium to connect one or more devices over a network. Network cables comes in a few type of forms. Below are the most popular network cables today: 1) Coaxial Cable It an electrical cable with an &#8230; <a href="http://www.iprobot.net/uncategorized/network-cables/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Network cable is the medium to connect one or more devices over a network. Network cables comes in a few type of forms. Below are the most popular network cables today:</p>
<p><strong>1) Coaxial Cable</strong><br />
<a href="http://www.iprobot.net/wp-content/uploads/2010/11/Coaxial-Cable.jpg"><img class="alignnone size-medium wp-image-187" src="http://www.iprobot.net/wp-content/uploads/2010/11/Coaxial-Cable-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>It an electrical cable with an inner conductor surrounded by a flexible, tubular insulating layer, surrounded by a tubular conducting shield.<br />
<span id="more-186"></span><br />
Coaxial cable is used as a transmission line for radio frequency signals, in applications such as connecting radio transmitters and receivers with their antennas, computer network (Internet) connections, and distributing cable television signals.</p>
<p>In the networking environment, they were once popular when connecting in a Token Ring network topology which has already obsolete.</p>
<p><strong>2) Twisted Pair Cable</strong><br />
<a href="http://www.iprobot.net/wp-content/uploads/2010/11/twisted-pair-cable-utp.jpg"><img class="alignnone size-medium wp-image-189" src="http://www.iprobot.net/wp-content/uploads/2010/11/twisted-pair-cable-utp-300x131.jpg" alt="" width="300" height="131" /></a></p>
<p>This is a type of wiring in which two conductors (the forward and return conductors of a single circuit) are twisted together for the purposes of canceling out electromagnetic interference (EMI) from external sources; for instance, electromagnetic radiation from unshielded twisted pair (UTP) cables, and crosstalk between neighboring pairs.</p>
<p>Twisted Pair has 2 different model which is UTP (Unshielded Twisted Pair) and STP (Shielded Twisted Pair). The difference between these two is that STP comes with a metal shield inside the wire jacket to prevent electromagnetic interference.</p>
<p>Twisted Pair also has two types of setting which is Straight Cable and Cross Cable. Straight cable normally being used to connect between pc-switch-pc topology. Meanwhile the Cross Cable is used only in direct connection between pc-pc. Although they are using the same cable, but their wiring codes are a bit difference. Below is an example of the cabling inside a normal Straight Cable and also Cross Cable:</p>
<p>Straight Cable<br />
<a href="http://www.iprobot.net/wp-content/uploads/2010/11/bbsm_lvl2spprt2.gif"><img class="alignnone size-medium wp-image-192" src="http://www.iprobot.net/wp-content/uploads/2010/11/bbsm_lvl2spprt2-300x172.gif" alt="" width="300" height="172" /></a></p>
<p>Cross Cable<br />
<a href="http://www.iprobot.net/wp-content/uploads/2010/11/cross.jpg"><img class="alignnone size-medium wp-image-193" src="http://www.iprobot.net/wp-content/uploads/2010/11/cross-300x170.jpg" alt="" width="300" height="170" /></a></p>
<p>The twisted pair comes with different type of categories. Below is the table showing each cable category&#8217;s specification:</p>
<table border="1" cellspacing="8" cellpadding="0">
<tbody>
<tr>
<td><strong>Category</strong></td>
<td><strong>Maximum data rate</strong></td>
<td><strong>Usual application</strong></td>
</tr>
<tr>
<td>CAT   1 (de facto name, never a standard)</td>
<td>Up   to 1 Mbps (1 MHz)</td>
<td>analog   voice (POTS)<br />
Basic Rate Interface in ISDN<br />
Doorbell wiring</td>
</tr>
<tr>
<td>CAT   2 (de facto name, never a standard)</td>
<td>4   Mbps</td>
<td>Mainly   used in the IBM cabling system for Token Ring networks</td>
</tr>
<tr>
<td>CAT   3</td>
<td>16   Mbps</td>
<td>Voice   (analog most popular implementation)<br />
10BASE-T Ethernet.</td>
</tr>
<tr>
<td>CAT   4</td>
<td>20   Mbps</td>
<td>Used   in 16 Mbps Token Ring.<br />
Otherwise not used much.</p>
<p>Was   only a standard briefly and never widely installed.</td>
</tr>
<tr>
<td>CAT   5</td>
<td>100   MHz</td>
<td>100   Mbps TPDDI<br />
155 Mbps ATM.<br />
No longer supported; replaced by 5E.<br />
10/100BASE-T<br />
4/16MBps Token Ring<br />
Analog Voice</td>
</tr>
<tr>
<td>CAT   5E</td>
<td>100   MHz</td>
<td>100   Mbps TPDDI<br />
155 Mbps ATM<br />
Gigabit Ethernet.<br />
Offers better near-end crosstalk than CAT 5</td>
</tr>
<tr>
<td>CAT   6</td>
<td>Up   to 250 MHz</td>
<td>Minimum   cabling for data centers in TIA-942.<br />
Quickly replacing category 5e.</td>
</tr>
<tr>
<td>CAT   6E</td>
<td>Up   to 500 MHz<br />
(field-tested to 500 MHz)</td>
<td>Support   for 10 Gigabit Ethernet (10GBASE-T.) May be either shielded (STP, ScTP,   S/FTP) or unshielded (UTP). This standard published in Feb. 2008.<br />
Minimum for Data Centers in ISO data center standard.</td>
</tr>
<tr>
<td>CAT   7<br />
(ISO Class F)</td>
<td>600   MHz<br />
1.2 GHz in pairs with Siemon connector</td>
<td>Full-motion   video<br />
Teleradiology<br />
Government and manufacturing environments<br />
Fully Shielded (S/FTP) system using non-RJ45 connectors but backwards   compatible with hybrid cords.<br />
Until February 2008, the only standard (published in 2002) to support   10GBASE-T for a full 100m.</td>
</tr>
</tbody>
</table>
<p>Among all these categories, CAT5E is currently the widely used among normal networking interface and topology. But soon after, CAT6E usage is rapidly increasing as there has been more hardware that goes Gigabit-enabled. But in the data center environment, most of the network connection among their switches and routers are using Fiber Optic cables.</p>
<p><strong>3) Fiber Optic Cable</strong><br />
<a href="http://www.iprobot.net/wp-content/uploads/2010/11/fiber_optics.jpg"><img class="alignnone size-full wp-image-195" src="http://www.iprobot.net/wp-content/uploads/2010/11/fiber_optics.jpg" alt="" width="275" height="294" /></a></p>
<p>An optical fiber cable is a cable containing one or more optical fibers. The optical fiber elements are typically individually coated with plastic layers and contained in a protective tube suitable for the environment where the cable will be deployed.</p>
<p>In practical fibers, the cladding is usually coated with a tough resin buffer layer, which may be further surrounded by a jacket layer, usually plastic. These layers add strength to the fiber but do not contribute to its optical wave guide properties. Rigid fiber assemblies sometimes put light-absorbing (&#8220;dark&#8221;) glass between the fibers, to prevent light that leaks out of one fiber from entering another. This reduces cross-talk between the fibers, or reduces flare in fiber bundle imaging applications.</p>
<p>As been mentioned earlier, the fiber optics cable are getting popular in the data center usage. Some are quite critical to serve as the network backbone of the data center&#8217;s communication to the Internet Service Providers. Fiber Optics are way faster than a normal twister pair cables. It transmit packet much faster and travel even further before the need to use Repeaters. Most importantly, it doesn&#8217;t being affected by electromagnetic interference and very hard to tap.</p>
<p>Currently most underwater cables are using fiber optics.</p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://www.iprobot.net/uncategorized/network-cables/&amp;title=Network Cables' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us]'  /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://www.iprobot.net/uncategorized/network-cables/&amp;title=Network Cables' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg]'  /></a> <a href='http://reddit.com/submit?url=http://www.iprobot.net/uncategorized/network-cables/&amp;title=Network Cables' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit]'  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://www.iprobot.net/uncategorized/network-cables/&amp;title=Network Cables' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot]'  /></a> <a href='http://www.stumbleupon.com/submit?url=http://www.iprobot.net/uncategorized/network-cables/&amp;title=Network Cables' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon]'  /></a> <a href='http://technorati.com/faves?add=http://www.iprobot.net/uncategorized/network-cables/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati]'  /></a> <a href='https://favorites.live.com/quickadd.aspx?mkt=en-us&amp;url=http://www.iprobot.net/uncategorized/network-cables/&amp;title=Network Cables' title='Save to Windows Live' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/windowslive.png' style='width:16px; height:16px;' alt='[Windows Live]'  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://www.iprobot.net/uncategorized/network-cables/&amp;t=Network Cables' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!]'  /></a> </div></div>]]></content:encoded>
			<wfw:commentRss>http://www.iprobot.net/uncategorized/network-cables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Setup Sofware RAID in FreeBSD</title>
		<link>http://www.iprobot.net/linux-tutorial/how-to-setup-sofware-raid-in-freebsd/</link>
		<comments>http://www.iprobot.net/linux-tutorial/how-to-setup-sofware-raid-in-freebsd/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 02:14:11 +0000</pubDate>
		<dc:creator>Awang Apandy</dc:creator>
				<category><![CDATA[Linux Tutorial]]></category>

		<guid isPermaLink="false">http://www.iprobot.net/?p=179</guid>
		<description><![CDATA[I&#8217;m going to show you on how to setup the Software RAID for FreeBSD. The Software RAID process in FreeBSD is a lot simpler compared to the previous CentOS, Debian, or Ubuntu Software RAID. Please make sure before this installation, &#8230; <a href="http://www.iprobot.net/linux-tutorial/how-to-setup-sofware-raid-in-freebsd/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m going to show you on how to setup the Software RAID for FreeBSD. The Software RAID process in FreeBSD is a lot simpler compared to the previous CentOS, Debian, or Ubuntu Software RAID. </p>
<p>Please make sure before this installation, you will need 2 identical hard disk with same space connected to the server. But the truth is, you don’t need to same hard disk with the same space amount, but as long as you partitioned the space equally then it would be good as well. But for beginner, it is better to get a hard disk that got the same space quantity, less percentage that you would get yourself confused.</p>
<p>Below are the steps on how to setup the Software RAID on FreeBSD:<br />
1) Follow the initial operating system installation here:</p>
<p>http://www.iprobot.net/linux-tutorial/how-to-install-unix-freebsd/</p>
<p><span id="more-179"></span></p>
<p>2) Before starting, we need to enable the additional debugging information, or you will end up unable to run the mirroring process by typing <strong>sysctl kern.geom.debugflags=17</strong></p>
<p>3) Now we are going to start the process. The current hard disk is located in /dev/ad0 and the software RAID that we are going to create will be on /dev/mirror/gm0. So begin typing this to initiate the <em>geom</em> process <strong>gmirror label -vb round-robin gm0 /dev/ad0</strong></p>
<p>4) You should see this message upon entering the code above:<br />
<em>Metadata value stored on /dev/da0.<br />
Done.</em></p>
<p>5) Now we will initialize the <em>geom</em> by typing <strong>gmirror load</strong> When successful, the /dev/mirror directory will be created.</p>
<p>6) We need to make sure that the boot loader is installed to the new mirror. So type <strong>echo &#8216;geom_mirror_load=&#8221;YES&#8221;&#8216; &gt;&gt; /boot/loader.conf</strong></p>
<p>7) Just in case, just make a backup copy of fstab by typing <strong>cp fstab fstab.bak</strong> Then we will start editing the fstab by typing <strong>vi fstab</strong></p>
<p>8 ) Now change the current hard disk settings from /dev/ad0xxx to /dev/mirror/gm0xxx for example like the screenshot below:</p>
<p>Before<br />
<img alt="" src="http://img.serverfreak.com/support/tutorial/raidfreebsd/1.jpg" class="alignnone" width="720" height="117" /></p>
<p>After<br />
<img alt="" src="http://img.serverfreak.com/support/tutorial/raidfreebsd/2.jpg" class="alignnone" width="718" height="115" /></p>
<p>9) Once saved and done, reboot the server now by typing <strong>init 6</strong></p>
<p>10) After the reboot is done, now we can add the 2nd hard disk into the mirror by typing <strong>gmirror insert gm0 /dev/ad1</strong></p>
<p>11) Once added, you can always type <strong>gmirror status</strong> to view the synchronizing status:<br />
<img alt="" src="http://img.serverfreak.com/support/tutorial/raidfreebsd/3.jpg" class="alignnone" width="300" height="61" /></p>
<p>12) When you see the message below, it means that the synchronizing process is complete:<br />
<img alt="" src="http://img.serverfreak.com/support/tutorial/raidfreebsd/4.jpg" class="alignnone" width="576" height="19" /></p>
<p>13) You can check again the status by typing <strong>gmirror status</strong><br />
<img alt="" src="http://img.serverfreak.com/support/tutorial/raidfreebsd/5.jpg" class="alignnone" width="298" height="87" /></p>
<p>14) With this, your FreeBSD Software RAID setup has been done. You also can view the gmirror device list by typing <strong>gmirror list</strong> The result be be shown like below:<br />
<img src="http://img.serverfreak.com/support/tutorial/raidfreebsd/6.jpg" alt="" /></p>
<p>That is it. Your Software RAID now is ready for use. Happy Tryin  <img src='http://www.iprobot.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://www.iprobot.net/linux-tutorial/how-to-setup-sofware-raid-in-freebsd/&amp;title=How to Setup Sofware RAID in FreeBSD' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us]'  /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://www.iprobot.net/linux-tutorial/how-to-setup-sofware-raid-in-freebsd/&amp;title=How to Setup Sofware RAID in FreeBSD' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg]'  /></a> <a href='http://reddit.com/submit?url=http://www.iprobot.net/linux-tutorial/how-to-setup-sofware-raid-in-freebsd/&amp;title=How to Setup Sofware RAID in FreeBSD' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit]'  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://www.iprobot.net/linux-tutorial/how-to-setup-sofware-raid-in-freebsd/&amp;title=How to Setup Sofware RAID in FreeBSD' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot]'  /></a> <a href='http://www.stumbleupon.com/submit?url=http://www.iprobot.net/linux-tutorial/how-to-setup-sofware-raid-in-freebsd/&amp;title=How to Setup Sofware RAID in FreeBSD' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon]'  /></a> <a href='http://technorati.com/faves?add=http://www.iprobot.net/linux-tutorial/how-to-setup-sofware-raid-in-freebsd/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati]'  /></a> <a href='https://favorites.live.com/quickadd.aspx?mkt=en-us&amp;url=http://www.iprobot.net/linux-tutorial/how-to-setup-sofware-raid-in-freebsd/&amp;title=How to Setup Sofware RAID in FreeBSD' title='Save to Windows Live' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/windowslive.png' style='width:16px; height:16px;' alt='[Windows Live]'  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://www.iprobot.net/linux-tutorial/how-to-setup-sofware-raid-in-freebsd/&amp;t=How to Setup Sofware RAID in FreeBSD' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!]'  /></a> </div></div>]]></content:encoded>
			<wfw:commentRss>http://www.iprobot.net/linux-tutorial/how-to-setup-sofware-raid-in-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Setup Software RAID in Debian / Ubuntu</title>
		<link>http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-in-debian-ubuntu/</link>
		<comments>http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-in-debian-ubuntu/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 06:40:52 +0000</pubDate>
		<dc:creator>Awang Apandy</dc:creator>
				<category><![CDATA[Linux Tutorial]]></category>

		<guid isPermaLink="false">http://www.iprobot.net/?p=163</guid>
		<description><![CDATA[This time around, I will show you how to configure the software RAID using Debian. This also can be applied to Ubuntu system as their are based on Debian platform anyway. As I mentioned earlier, the Software RAID configuration can &#8230; <a href="http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-in-debian-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This time around, I will show you how to configure the software RAID using Debian. This also can be applied to Ubuntu system as their are based on Debian platform anyway. As I mentioned earlier, the Software RAID configuration can be quite troublesome and time consuming, but at least it is reliable and save a lot of cost when buying a hardware RAID instead.</p>
<p>For a normal installation of Debian or Ubuntu, you can refer to the links below for initial steps until the hard disk partitioning:</p>
<p>http://www.iprobot.net/linux-tutorial/how-to-install-linux-debian</p>
<p>http://www.iprobot.net/linux-tutorial/how-to-install-linux-ubuntu</p>
<p>Please make sure before this installation, you will need 2 identical hard disk with same space connected to the server. But the truth is, you don’t need to same hard disk with the same space amount, but as long as you partitioned the space equally then it would be good as well. But for beginner, it is better to get a hard disk that got the same space quantity, less percentage that you would get yourself confused.</p>
<p><span id="more-163"></span></p>
<p>Below are the steps on how to configure the Software RAID:</p>
<p>1) Select the Manual for the Partitioning Method:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/1.jpg" alt="1" /><br />
&nbsp;</p>
<p>2) On this screen, it will show you the available hard disk for the installation. Make sure both hard disks are visible. Now select the first hard disk and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/2.jpg" alt="2" /><br />
&nbsp;</p>
<p>3) A message will warns you that you are about to create a new partition that will destroy any existing partition. Choose Yes to proceed:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/3.jpg" alt="3" /><br />
&nbsp;</p>
<p>4) You will noticed that it will create a new partition at the bottom of the hard disk. Choose the new partition and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/4.jpg" alt="4" /><br />
&nbsp;</p>
<p>5) Select the Create New Partition:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/5.jpg" alt="5" /><br />
&nbsp;</p>
<p>6) Since we are creating the partition for boot, just type <strong>100 MB</strong> in the line:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/6.jpg" alt="6" /><br />
&nbsp;</p>
<p>7) Choose the Primary partition:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/7.jpg" alt="" /><br />
&nbsp;</p>
<p>8 ) Choose to create new partition at the Beginning of the space:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/8.jpg" alt="" /><br />
&nbsp;</p>
<p>9) On this screen, move you selector to Use As and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/9.jpg" alt="" /><br />
&nbsp;</p>
<p>10) Please choose the Physical Volume For RAID option:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/10.jpg" alt="null" /><br />
&nbsp;</p>
<p>11) Please make sure that the Bootable Flag is tuned On:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/11.jpg" alt="null" /><br />
&nbsp;</p>
<p>12) Choose the Done Setting Up The Partition to save the new partition:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/12.jpg" alt="null" /><br />
&nbsp;</p>
<p>13) You will be taken back to the first screen. Next is to choose the next free space and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/13.jpg" alt="null" /><br />
&nbsp;</p>
<p>14) Select the Create A New Partition:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/14.jpg" alt="null" /><br />
&nbsp;</p>
<p>15) Now we are adding the new partition for the Swap. Please take note that always make sure that the Swap size is double the amount than your physical RAM. Since my physical RAM was only 384MB, so my swap size should be set as <strong>768 MB</strong> in the box:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/15.jpg" alt="null" /><br />
&nbsp;</p>
<p>16) Select the Primary option:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/16.jpg" alt="null" /><br />
&nbsp;</p>
<p>17) Select the Beginning option:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/17.jpg" alt="null" /><br />
&nbsp;</p>
<p>18 ) On the next screen, move your selector to the Use As and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/18.jpg" alt="" /><br />
&nbsp;</p>
<p>19) Select the Physical Volume For RAID option:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/19.jpg" alt="" /><br />
&nbsp;</p>
<p>20) After that, just straight away select the Done Setting Up The Partition to complete:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/20.jpg" alt="" /><br />
&nbsp;</p>
<p>21) Back to the original screen, select the another free partition again and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/21.jpg" alt="" /><br />
&nbsp;</p>
<p>22) Select the Create A New Partition option:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/22.jpg" alt="" /><br />
&nbsp;</p>
<p>23) Now we are creating the partition for root. So just use all the leftover hard disk space:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/23.jpg" alt="" /><br />
&nbsp;</p>
<p>24) Select the Primary option:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/24.jpg" alt="" /><br />
&nbsp;</p>
<p>25) Move the selector to Use As and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/25.jpg" alt="" /><br />
&nbsp;</p>
<p>26) Select the Physical Volume For RAID and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/26.jpg" alt="" /><br />
&nbsp;</p>
<p>27) After that, just straight away choose the Done Setting Up The Partition:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/27.jpg" alt="" /><br />
&nbsp;</p>
<p>28 ) Now moving on to the second hard disk for the partitioning. Hit Enter and please follow the Step 3 &#8211; 27 to do the same partitioning with the 2nd hard disk:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/28.jpg" alt="" /><br />
&nbsp;</p>
<p>29) After the 2nd hard disk has been partitioned, the overall partition configuration will look exactly like the bottom. Each space in each partition will reflect to each other in the 2nd hard disk. So now move the selector to Configure Software RAID and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/29.jpg" alt="" /><br />
&nbsp;</p>
<p>30) Select Yes to accept the new partition changes:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/30.jpg" alt="" /><br />
&nbsp;</p>
<p>31) Now we will group the RAID hard disk. Select the Create MD Device option:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/31.jpg" alt="" /><br />
&nbsp;</p>
<p>32) Choose your preferred RAID method. For now, we are going to choose RAID1:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/32.jpg" alt="" /><br />
&nbsp;</p>
<p>33) Just leave the default number 2 for the number of RAID devices. This option may varies depending on which RAID type you selected:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/33.jpg" alt="" /><br />
&nbsp;</p>
<p>34) Just leave it zero if you don&#8217;t put up any spare hard disk for your RAID:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/34.jpg" alt="" /><br />
&nbsp;</p>
<p>35) Now select the SDA1 and SDB1 as we are creating the RAID for /boot:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/35.jpg" alt="" /><br />
&nbsp;</p>
<p>36) When it has been done, choose the Finish to save the new RAID partition:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/36.jpg" alt="" /><br />
&nbsp;</p>
<p>37) Now we are proceeding with the 2nd RAID partition. Choose the Configure Software RAID and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/37.jpg" alt="" /><br />
&nbsp;</p>
<p>38 ) Select Yes to proceed with the RAID configuration:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/38.jpg" alt="" /><br />
&nbsp;</p>
<p>39) Choose the  Create MD Device option:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/39.jpg" alt="" /><br />
&nbsp;</p>
<p>40) Choose the RAID1 option:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/40.jpg" alt="" /><br />
&nbsp;</p>
<p>41) Just leave the default value of 2 RAID active devices and proceed:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/41.jpg" alt="" /><br />
&nbsp;</p>
<p>42) Leave the default value of zero for the RAID spare array unless you know what you are doing:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/42.jpg" alt="" /><br />
&nbsp;</p>
<p>43) Now select the SDA2 and SDB2 for the Swap partition purposes:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/43.jpg" alt="" /><br />
&nbsp;</p>
<p>44) Select the Finish to complete the setting for the Swap partition:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/44.jpg" alt="" /><br />
&nbsp;</p>
<p>45) Now we proceed with the /root partition setup. Choose the Configure Software RAID and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/45.jpg" alt="" /><br />
&nbsp;</p>
<p>46) Select Yes to proceed with the RAID partition setup:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/46.jpg" alt="" /><br />
&nbsp;</p>
<p>47) Choose the Create MD Device option:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/47.jpg" alt="" /><br />
&nbsp;</p>
<p>48) Choose the RAID1 setup:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/48.jpg" alt="" /><br />
&nbsp;</p>
<p>49) Just leave the default value of 2 for the active RAID devices:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/49.jpg" alt="" /><br />
&nbsp;</p>
<p>50) Leave the default value of zero for the spare RAID devices:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/50.jpg" alt="" /><br />
&nbsp;</p>
<p>51) Now select the remaining partition for /root space which are SDA3 and SDB3:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/51.jpg" alt="" /><br />
&nbsp;</p>
<p>52) Soon after, just choose the Finish to complete the setup:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/52.jpg" alt="" /><br />
&nbsp;</p>
<p>53) Now the initial software RAID is completed like the below picture, what&#8217;s left is to assign each RAID partition its role. Now select the RAID partition Device #0 for /boot setup:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/53.jpg" alt="" /><br />
&nbsp;</p>
<p>54) Choose the Use As and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/54.jpg" alt="" /><br />
&nbsp;</p>
<p>55) Choose the EXT3 Journaling File System (or EXT4 for Ubuntu) and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/55.jpg" alt="" /><br />
&nbsp;</p>
<p>56) Now move the selector to the Mount Point and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/56.jpg" alt="" /><br />
&nbsp;</p>
<p>57) Now select the /boot and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/57.jpg" alt="" /><br />
&nbsp;</p>
<p>58) Select the Done Setting Up The Partition to complete the /boot partition setup:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/58.jpg" alt="" /><br />
&nbsp;</p>
<p>59) At the first screen again, now select the RAID Device #1 and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/59.jpg" alt="" /><br />
&nbsp;</p>
<p>60) Move the selector to the Use As and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/60.jpg" alt="" /><br />
&nbsp;</p>
<p>61) This time we are going to create a Swap partition for the operating system. So select the Swap Area and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/61.jpg" alt="" /><br />
&nbsp;</p>
<p>62) Just straight away select the Done Setting Up The Partition soon done:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/62.jpg" alt="" /><br />
&nbsp;</p>
<p>63) Now is to edit the last partition of the RAID which is meant for /root. Select the RAID Device #2 and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/63.jpg" alt="" /><br />
&nbsp;</p>
<p>64) Move the selector to the Use As and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/64.jpg" alt="" /><br />
&nbsp;</p>
<p>65) Select the EXT3 Journaling File System and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/65.jpg" alt="" /><br />
&nbsp;</p>
<p>66) Now move the selector to the Mount Point and hit Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/66.jpg" alt="" /><br />
&nbsp;</p>
<p>67) Select the / &#8211; The Root File System and hit the Enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/67.jpg" alt="" /><br />
&nbsp;</p>
<p>68) Finally select the Done Setting Up the Partition to complete the procedure:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/68.jpg" alt="" /><br />
&nbsp;</p>
<p>69) The final outlook of the partition should be like below. Once confirmed, move the selector to the most bottom of the screen to select the Finish Partitioning And Write Changes To Disk and hit enter:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/69.jpg" alt="" /><br />
&nbsp;</p>
<p>70) Just press Yes if you confirmed the partitions:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/70.jpg" alt="" /><br />
&nbsp;</p>
<p>71) Then just follow the normal installation procedure. Once the server has been rebooted, log in as root and type <strong>cat /proc/mdstat</strong> to view the RAID status:</p>
<p><img src="http://img.serverfreak.com/support/tutorial/raiddebian/71.jpg" alt="" /><br />
&nbsp;</p>
<p>72) By default, the GRUB boot loader only were installed in one of the hard disk only. If you forgot this step, your second hard disk can’t boot by itself. You need to copy the GRUB from the SDA to SDB. Just type <strong>grub</strong> and follow like below, line by line:</p>
<p><strong>device (hd0) /dev/sda<br />
root (hd0,0)<br />
setup (hd0)<br />
device (hd1) /dev/sdb<br />
root (hd1,0)<br />
setup (hd1) </strong><br />
&nbsp;</p>
<p>73) For Ubuntu users version 9.10 and above, the system will install the boot loader in both partition during setup as long as you enabled the Boot from Degraded Disk option.</p>
<p>74) Please take note that the software RAID will be running under MDADM. This is a software that being developed to handle the RAID procedure inside the server. You can type <strong>mdadm –help</strong> for further information</p>
<p>The server&#8217;s software RAID should be running fine now. Happy trying <img src='http://www.iprobot.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-in-debian-ubuntu/&amp;title=How to Setup Software RAID in Debian / Ubuntu' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us]'  /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-in-debian-ubuntu/&amp;title=How to Setup Software RAID in Debian / Ubuntu' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg]'  /></a> <a href='http://reddit.com/submit?url=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-in-debian-ubuntu/&amp;title=How to Setup Software RAID in Debian / Ubuntu' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit]'  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-in-debian-ubuntu/&amp;title=How to Setup Software RAID in Debian / Ubuntu' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot]'  /></a> <a href='http://www.stumbleupon.com/submit?url=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-in-debian-ubuntu/&amp;title=How to Setup Software RAID in Debian / Ubuntu' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon]'  /></a> <a href='http://technorati.com/faves?add=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-in-debian-ubuntu/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati]'  /></a> <a href='https://favorites.live.com/quickadd.aspx?mkt=en-us&amp;url=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-in-debian-ubuntu/&amp;title=How to Setup Software RAID in Debian / Ubuntu' title='Save to Windows Live' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/windowslive.png' style='width:16px; height:16px;' alt='[Windows Live]'  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-in-debian-ubuntu/&amp;t=How to Setup Software RAID in Debian / Ubuntu' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!]'  /></a> </div></div>]]></content:encoded>
			<wfw:commentRss>http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-in-debian-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Setup Software RAID for CentOS</title>
		<link>http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-for-centos/</link>
		<comments>http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-for-centos/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 06:55:29 +0000</pubDate>
		<dc:creator>Awang Apandy</dc:creator>
				<category><![CDATA[Linux Tutorial]]></category>

		<guid isPermaLink="false">http://www.iprobot.net/?p=154</guid>
		<description><![CDATA[Today I&#8217;m going to to show you guys on how to setup software RAID on CentOS. This technique is an alternative instead of getting the expensive RAID card for your server. Though I had to warn you, getting software RAID &#8230; <a href="http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-for-centos/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;m going to to show you guys on how to setup software RAID on CentOS. This technique is an alternative instead of getting the expensive RAID card for your server. Though I had to warn you, getting software RAID means its involving a few manual approach and the usage of command lines instead. But nevertheless, software RAID is reliable and also will save a lot of cost <img src='http://www.iprobot.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>You can follow the whole normal installation process of CentOS that I have wrote earlier here:</p>
<p>http://www.iprobot.net/linux-tutorial/how-to-install-linux-centos-2</p>
<p>Please make sure before this installation, you will need 2 identical hard disk with same space connected to the server. But the truth is, you don&#8217;t need to same hard disk with the same space amount, but as long as you partitioned the space equally then it would be good as well. But for beginner, it is better to get a hard disk that got the same space quantity, less percentage that you would get yourself confused.</p>
<p><span id="more-154"></span></p>
<p>But for this tutorial, the only difference will be during the hard disk review and partitioning instruction.  Below are the steps on how to do the software RAID continuing from the hard disk partitioning section:</p>
<p>1) Upon entering the partitioning review, it should looks like this:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/raidcentos/1.jpg" alt="" width="723" height="404" /><br />
&nbsp;</p>
<p>2) Next is to delete every partition and left with only free space for both hard disk. It should looks like this:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/raidcentos/2.jpg" alt="" width="723" height="401" /><br />
&nbsp;</p>
<p>3) So click the New button (or the F2 button) to start creating new partition. Straight away change the File System Type into Software RAID. In the Allowable Drives, please select SDA first, somehow CentOS won&#8217;t work if we select both hard disk at the same time. Put <strong>100</strong> for the Size as we want to create the space for boot first. Click the Ok button after finished:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/raidcentos/3.jpg" alt="" width="722" height="401" /><br />
&nbsp;</p>
<p>4) Just do exactly the same like Step 3, but this time choose the SDB instead. Press Ok when done:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/raidcentos/4.jpg" alt="" width="721" height="402" /><br />
&nbsp;</p>
<p>5) Next is the swap partition for the RAID. Click the New button and choose the File System Type to Software RAID. Choose SDA first for the Allowable Drives. Then please enter the Size for your swap. Remember, the swap size is always double from your total psychical RAM. Since mine was running under 512MB, then I&#8217;ll put <strong>1024</strong>MB as my swap size. Click the Ok button to proceed:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/raidcentos/5.jpg" alt="" width="722" height="400" /><br />
&nbsp;</p>
<p>6) Do follow Step 5 but select SDB for the Allowable Drives. Click Ok to continue:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/raidcentos/6.jpg" alt="" width="719" height="401" /><br />
&nbsp;</p>
<p>7) Next is to create the partition for root. Select the Software RAID from the File System Type. Then select SDA first for the Allowable Drives. But this time, choose the Fill All Available Space option and click the Ok button:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/raidcentos/7.jpg" alt="" width="717" height="399" /><br />
&nbsp;</p>
<p>8 ) Just follow the same step just like Step 7, but this time choose the SDB instead. Click the Ok button to complete the partitioning:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/raidcentos/8.jpg" alt="" width="719" height="400" /><br />
&nbsp;</p>
<p>9) Upon finishing the last partitioning, the hard disk layout should looks like below. Click on the RAID button to proceed:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/raidcentos/9.jpg" alt="" width="719" height="400" /><br />
&nbsp;</p>
<p>10) Now we will start creating the RAID device. Type <strong>/boot </strong>in the Mount Point. Select RAID1 for the RAID Level. Inside the RAID Members, please make sure you selected the right partition for the boot. From the list, just select the SDA1 and SDB1. Click Ok to create the boot partition:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/raidcentos/10.jpg" alt="" width="718" height="400" /><br />
&nbsp;</p>
<p>11) Next is to create the RAID device for swap. Select the File System Type to Swap. Then the RAID Level is set to RAID1. Don&#8217;t forget to select the right RAID Members for the swap, which are SDA2 and SBD2. Click Ok button to save:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/raidcentos/11.jpg" alt="" width="719" height="400" /><br />
&nbsp;</p>
<p>12) After that, now to set up the RAID device for root. Type <strong>/</strong> inside the Mount Point to indicate the root. Make sure to select the RAID Level to RAID1. By this time, the RAID Members should only left with SDA3 and SDB3, so just select both. Click Ok to complete the partitioning:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/raidcentos/12.jpg" alt="" width="719" height="400" /><br />
&nbsp;</p>
<p>13) Below is the final screen of the partitions should looks like. If everything is correct, then press the Ok button to proceed with the installation:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/raidcentos/13.jpg" alt="" width="721" height="401" /><br />
&nbsp;</p>
<p>14) When the CentOS installation has been completed and the server is rebooting for the first time, log into the server using the root. You can check the RAID status and progress by typing <strong>cat /proc/mdstat</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/raidcentos/14.jpg" alt="" width="718" height="397" /><br />
&nbsp;</p>
<p>15) By default, the GRUB boot loader only were installed in one of the hard disk only. If you forgot this step, your second hard disk can&#8217;t boot by itself. You need to copy the GRUB from the SDA to SDB. Just type <strong>grub </strong>and follow like below, line by line:</p>
<p><strong>device (hd0) /dev/sda<br />
root (hd0,0)<br />
setup (hd0)<br />
device (hd1) /dev/sdb<br />
root (hd1,0)<br />
setup (hd1)<br />
</strong><br />
&nbsp;</p>
<p>16) Please take note that the software RAID will be running under MDADM. This is a software that being developed to handle the RAID procedure inside the server. You can type <strong>mdadm &#8211;help </strong>for further information</p>
<p>By the time you finished the Step 15, your software RAID is ready to go. Happy trying <img src='http://www.iprobot.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-for-centos/&amp;title=How to Setup Software RAID for CentOS' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us]'  /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-for-centos/&amp;title=How to Setup Software RAID for CentOS' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg]'  /></a> <a href='http://reddit.com/submit?url=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-for-centos/&amp;title=How to Setup Software RAID for CentOS' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit]'  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-for-centos/&amp;title=How to Setup Software RAID for CentOS' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot]'  /></a> <a href='http://www.stumbleupon.com/submit?url=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-for-centos/&amp;title=How to Setup Software RAID for CentOS' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon]'  /></a> <a href='http://technorati.com/faves?add=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-for-centos/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati]'  /></a> <a href='https://favorites.live.com/quickadd.aspx?mkt=en-us&amp;url=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-for-centos/&amp;title=How to Setup Software RAID for CentOS' title='Save to Windows Live' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/windowslive.png' style='width:16px; height:16px;' alt='[Windows Live]'  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-for-centos/&amp;t=How to Setup Software RAID for CentOS' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!]'  /></a> </div></div>]]></content:encoded>
			<wfw:commentRss>http://www.iprobot.net/linux-tutorial/how-to-setup-software-raid-for-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Setup Network Interface Card in CentOS</title>
		<link>http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-centos/</link>
		<comments>http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-centos/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 10:22:05 +0000</pubDate>
		<dc:creator>Awang Apandy</dc:creator>
				<category><![CDATA[Linux Tutorial]]></category>

		<guid isPermaLink="false">http://www.iprobot.net/?p=152</guid>
		<description><![CDATA[Now I will show how to setup a basic network configuration inside CentOS. The first thing you need to do is to boot up your CentOS and log into the root: You may type ifconfig to display your current network &#8230; <a href="http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-centos/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Now I will show how to setup a basic network configuration inside CentOS. The first thing you need to do is to boot up your CentOS and log into the root:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/niccentos/1.jpg" alt="" width="348" height="171" /></p>
<p>You may type <strong>ifconfig</strong> to display your current network configuration:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/niccentos/2.jpg" alt="" width="629" height="319" /><br />
<span id="more-152"></span><br />
From the above picture, you can see that:<br />
1)      eth0 &#8211; is your first network interface card inside your server<br />
2)      lo &#8211; the loopback interface to access your local services such as proxy or webserver http://127.0.0.1</p>
<p>The network card settings can be found edit here:<br />
<strong>vi /etc/sysconfig/network-scripts/ifcfg-eth0</strong></p>
<p>SETUP STATIC IP</p>
<p>You may type like below inside your interface configuration file:<br />
<strong>DEVICE=eth0</strong><br />
<strong>HWADDR=*</strong><br />
<strong>ONBOOT=yes</strong><br />
<strong>BOOTPROTO=none</strong><br />
<strong>IPADDR=192.168.1.20</strong><br />
<strong>NETMASK=255.255.255.0</strong><br />
<strong>GATEWAY=192.168.1.1</strong><br />
<strong>TYPE=Ethernet</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/niccentos/3.jpg" alt="" width="507" height="225" /></p>
<p>*Note: Please leave your HWADDR as it is. Don’t delete or change from the original configuration</p>
<p>SETUP DHCP</p>
<p>In order to setup DHCP for the network interface card, just type like below inside the <em>/etc/sysconfig/network-scripts/ifcfg-eth0</em> file:<br />
<strong>DEVICE=eth0</strong><br />
<strong>HWADDR=*</strong><br />
<strong>ONBOOT=yes</strong><br />
<strong>BOOTPROTO=dhcp</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/niccentos/4.jpg" alt="" width="520" height="220" /></p>
<p>*Note: Please leave your HWADDR as it is. Don’t delete or change from the original configuration</p>
<p>CONFIGURE DNS</p>
<p>Next is to configure the DNS in order for it to resolve your domain name request into IP for the server to understand it. To configure, type:<br />
<strong>vi /etc/resolv.conf</strong><br />
<strong> </strong></p>
<p>Then you may add any DNS you want inside the file:<br />
<strong>nameserver 202.75.34.1</strong><br />
<strong>nameserver 8.8.8.8</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/niccentos/5.jpg" alt="" width="300" height="153" /></p>
<p>RESTART THE NETWORK SERVICE</p>
<p>After finished editing any of the network setting, you need to restart the network service in order for new changes to take effect. To restart, type:<br />
<strong>/etc/init.d/network restart</strong><br />
<strong> </strong></p>
<p>You may type <strong>ifconfig </strong>to see your new network settings:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/niccentos/6.jpg" alt="" width="669" height="338" /></p>
<p>You also may test ping a domain name to see whether your network settings is working or not by typing:<br />
<strong>ping google.com</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/niccentos/7.jpg" alt="" width="719" height="134" /></p>
<p>If you got the reply, this means your setup was successful.</p>
<p>ASSIGN MULTIPLE IP IN NETWORK INTERFACE CARD</p>
<p>CentOS will have a slight difference from others in term of creating multiple IP usage. First, you need to copy the <em>ifcfg-eth0 </em>to the same location but with a slight name change:<br />
<strong>cd /etc/sysconfig/network-scripts</strong><br />
<strong>cp ifcfg-eth0 ifcfg-eth0:1</strong><br />
<strong>vi ifcfg-eth0:1</strong><br />
<strong> </strong></p>
<p>Then you may edit the file like below:<br />
<strong>DEVICE=eth0:1</strong><br />
<strong>HWADDR=*</strong><br />
<strong>ONBOOT=yes</strong><br />
<strong>BOOTPROTO=none</strong><br />
<strong>IPADDR=192.168.1.40</strong><br />
<strong>NETMASK=255.255.255.0</strong><br />
<strong>GATEWAY=192.168.1.1</strong><br />
<strong>TYPE=Ethernet</strong></p>
<p><strong><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/niccentos/8.jpg" alt="" width="518" height="231" /><br />
</strong><br />
<strong> </strong></p>
<p>Don’t forget to change the DEVICE to according the file you rename.</p>
<p>*Note: Please leave your HWADDR as it is. Don’t delete or change from the original configuration</p>
<p>After saving and restarting the network, you can check your new setting by typing <strong>ifconfig</strong></p>
<p><strong><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/niccentos/9.jpg" alt="" width="676" height="400" /><br />
</strong></p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-centos/&amp;title=How to Setup Network Interface Card in CentOS' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us]'  /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-centos/&amp;title=How to Setup Network Interface Card in CentOS' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg]'  /></a> <a href='http://reddit.com/submit?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-centos/&amp;title=How to Setup Network Interface Card in CentOS' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit]'  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-centos/&amp;title=How to Setup Network Interface Card in CentOS' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot]'  /></a> <a href='http://www.stumbleupon.com/submit?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-centos/&amp;title=How to Setup Network Interface Card in CentOS' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon]'  /></a> <a href='http://technorati.com/faves?add=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-centos/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati]'  /></a> <a href='https://favorites.live.com/quickadd.aspx?mkt=en-us&amp;url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-centos/&amp;title=How to Setup Network Interface Card in CentOS' title='Save to Windows Live' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/windowslive.png' style='width:16px; height:16px;' alt='[Windows Live]'  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-centos/&amp;t=How to Setup Network Interface Card in CentOS' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!]'  /></a> </div></div>]]></content:encoded>
			<wfw:commentRss>http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Setup Network Interface Card in FreeBSD</title>
		<link>http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-freebsd/</link>
		<comments>http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-freebsd/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 10:06:08 +0000</pubDate>
		<dc:creator>Awang Apandy</dc:creator>
				<category><![CDATA[Linux Tutorial]]></category>

		<guid isPermaLink="false">http://www.iprobot.net/?p=147</guid>
		<description><![CDATA[I will show how to setup a basic network configuration inside FreeBSD. The first thing you need to do is to boot up your FreeBSD and log into the root account: You may type ifconfig to display your current network &#8230; <a href="http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-freebsd/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I will show how to setup a basic network configuration inside FreeBSD. The first thing you need to do is to boot up your FreeBSD and log into the root account:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicfreebsd/1.jpg" alt="" width="364" height="111" /></p>
<p>You may type <strong>ifconfig</strong> to display your current network configuration:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicfreebsd/2.jpg" alt="" width="662" height="270" /><br />
<span id="more-147"></span><br />
From the above picture, you can see that:<br />
1)	em0 &#8211; is your first network interface card inside your server<br />
2)	lo0 &#8211; the loopback interface to access your local services such as proxy or webserver http://127.0.0.1</p>
<p>Please take note that your network interface card might be vary depending on the manufacturer’s name.</p>
<p>The network card settings can be found edit here:<br />
<strong>vi /etc/rc.conf</strong></p>
<p>SETUP STATIC IP</p>
<p>You may type like below inside your interface configuration file:<br />
<strong>hostname=”test.domain.com”<br />
ifconfig_em0=”inet 192.168.1.24 netmask 255.255.255.0”<br />
defaultrouter=”192.168.1.1”</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicfreebsd/3.jpg" alt="" width="652" height="157" /></p>
<p>Please take note that FreeBSD text control command line will be slightly different especially to delete words/characters. Press “dd” to delete the whole line or “x” to delete the character at the active cursor.</p>
<p>SETUP DHCP</p>
<p>In order to setup DHCP for the network interface card, just type like below inside the <em>/etc/rc.conf</em> file:<br />
<strong>hostname=”test.domain.com”<br />
ifconfig_em0=”DHCP”</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicfreebsd/5.jpg" alt="" width="641" height="130" /></p>
<p>CONFIGURE DNS</p>
<p>Next is to configure the DNS in order for it to resolve your domain name request into IP for the server to understand it. To configure, type:<br />
<strong>vi /etc/resolv.conf</strong></p>
<p>Then you may add any DNS you want inside the file:<br />
<strong>nameserver 202.75.34.2<br />
nameserver 8.8.8.8<br />
nameserver 202.188.245.3</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicfreebsd/6.jpg" alt="" width="383" height="290" /></p>
<p>RESTART THE NETWORK SERVICE</p>
<p>After finished editing any of the network setting, you need to restart the network service in order for new changes to take effect. To restart, type:<br />
<strong>/etc/rc.d/netif restart</strong></p>
<p>You may type <strong>ifconfig</strong> to see your new network settings:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicfreebsd/4.jpg" alt="" width="674" height="245" /></p>
<p>You also may test ping a domain name to see whether your network settings is working or not by typing:<br />
<strong>ping google.com</strong></p>
<p><strong><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicfreebsd/7.jpg" alt="" width="589" height="182" /><br />
</strong></p>
<p>If you got the reply, this means your setup was successful.</p>
<p>ASSIGN MULTIPLE IP IN NETWORK INTERFACE CARD</p>
<p>The procedure would be the same like adding normal IP address to the network interface card. Just open up the network interface card settings by typing:<br />
<strong>vi /etc/rc.conf</strong></p>
<p>Then add these following lines (depending on how much additional IP you want to add):<br />
<strong>hostname=”test.domain.com”<br />
ifconfig_em0=”inet 192.168.1.24 netmask 255.255.255.0”<br />
ifconfig_em0_alias0=”inet 192.168.1.54 netmask 255.255.255.0”<br />
ifconfig_em0_alias1=”inet 192.168.1.55 netmask 255.255.255.0”<br />
defaultrouter=”192.168.1.1”</strong></p>
<p><strong><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicfreebsd/8.jpg" alt="" width="645" height="189" /><br />
</strong></p>
<p>After saving and restarting the network, you can check your new setting by typing <strong>ifconfig</strong></p>
<p><strong><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicfreebsd/9.jpg" alt="" width="706" height="255" /><br />
</strong></p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-freebsd/&amp;title=How to Setup Network Interface Card in FreeBSD' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us]'  /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-freebsd/&amp;title=How to Setup Network Interface Card in FreeBSD' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg]'  /></a> <a href='http://reddit.com/submit?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-freebsd/&amp;title=How to Setup Network Interface Card in FreeBSD' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit]'  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-freebsd/&amp;title=How to Setup Network Interface Card in FreeBSD' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot]'  /></a> <a href='http://www.stumbleupon.com/submit?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-freebsd/&amp;title=How to Setup Network Interface Card in FreeBSD' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon]'  /></a> <a href='http://technorati.com/faves?add=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-freebsd/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati]'  /></a> <a href='https://favorites.live.com/quickadd.aspx?mkt=en-us&amp;url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-freebsd/&amp;title=How to Setup Network Interface Card in FreeBSD' title='Save to Windows Live' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/windowslive.png' style='width:16px; height:16px;' alt='[Windows Live]'  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-freebsd/&amp;t=How to Setup Network Interface Card in FreeBSD' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!]'  /></a> </div></div>]]></content:encoded>
			<wfw:commentRss>http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Setup Network Interface Card in Ubuntu</title>
		<link>http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-ubuntu/</link>
		<comments>http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-ubuntu/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 09:48:41 +0000</pubDate>
		<dc:creator>Awang Apandy</dc:creator>
				<category><![CDATA[Linux Tutorial]]></category>

		<guid isPermaLink="false">http://www.iprobot.net/?p=144</guid>
		<description><![CDATA[Next, I will show how to setup a basic network configuration inside Ubuntu. The first thing you need to do is to boot up your Ubuntu and log into the root account. If your Ubuntu forbids direct login to root, &#8230; <a href="http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Next, I will show how to setup a basic network configuration inside Ubuntu. The first thing you need to do is to boot up your Ubuntu and log into the root account. If your Ubuntu forbids direct login to root, then just login using a normal user:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicubuntu/1.jpg" alt="" width="351" height="178" /></p>
<p>You may type <strong>ifconfig</strong> to display your current network configuration:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicubuntu/2.jpg" alt="" width="550" height="284" /><br />
<span id="more-144"></span><br />
From the above picture, you can see that:<br />
1)      eth0 &#8211; is your first network interface card inside your server<br />
2)      lo &#8211; the loopback interface to access your local services such as proxy or webserver http://127.0.0.1</p>
<p>The network card settings can be found edit here:<br />
<strong>sudo vi /etc/network/interfaces</strong></p>
<p>SETUP STATIC IP</p>
<p>You may type like below inside your interface configuration file:<br />
<strong>auto eth0</strong><br />
<strong>iface eth0 inet static</strong><br />
<strong>address 192.168.1.38</strong><br />
<strong>netmask 255.255.255.0</strong><br />
<strong>gateway 192.168.1.1</strong><br />
<strong>network 192.168.1.0</strong><br />
<strong>broadcast 192.168.1.255</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicubuntu/3.jpg" alt="" width="574" height="417" /></p>
<p>Please take note that only <em>address </em>and <em>netmask </em>is required to be inserted into the configuration. The gateway, network, and broadcast are optional. You may enter it or Ubuntu will automatically calculate the other three based on your <em>address </em>and <em>netmask</em>.</p>
<p>You may type this if you want to read more about the network settings help provided inside Ubuntu:<br />
<strong>man interfaces</strong></p>
<p>SETUP DHCP</p>
<p>In order to setup DHCP for the network interface card, just type like below inside the <em>/etc/network/interfaces</em> file:<br />
<strong>auto eth0</strong><br />
<strong>iface eth0 inet dhcp</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicubuntu/4.jpg" alt="" width="553" height="480" /></p>
<p>CONFIGURE DNS</p>
<p>Next is to configure the DNS in order for it to resolve your domain name request into IP for the server to understand it. To configure, type:<br />
<strong>sudo vi /etc/resolv.conf</strong><br />
<strong> </strong></p>
<p>Then you may add any DNS you want inside the file:<br />
<strong>nameserver 8.8.8.8</strong><br />
<strong>nameserver 202.188.245.2</strong><br />
<strong>nameserver 202.188.0.133</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicubuntu/5.jpg" alt="" width="337" height="303" /></p>
<p>RESTART THE NETWORK SERVICE</p>
<p>After finished editing any of the network setting, you need to restart the network service in order for new changes to take effect. To restart, type:<br />
<strong>sudo /etc/init.d/networking restart</strong><br />
<strong> </strong></p>
<p>You may type <strong>ifconfig </strong>to see your new network settings:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicubuntu/6.jpg" alt="" width="594" height="288" /></p>
<p>You also may test ping a domain name to see whether your network settings is working or not by typing:<br />
<strong>ping google.com</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicubuntu/7.jpg" alt="" width="646" height="126" /></p>
<p>If you got the reply, this means your setup was successful.</p>
<p>ASSIGN MULTIPLE IP IN NETWORK INTERFACE CARD</p>
<p>The procedure would be the same like adding normal IP address to the network interface card. Just open up the network interface card settings by typing:<br />
<strong>sudo vi /etc/network/interfaces</strong></p>
<p>Then add these following lines (depending on how much additional IP you want to add):<br />
<strong>auto eth0 eth0:1 eth0:2</strong><br />
<strong>iface eth0 inet static</strong><br />
<strong>address 192.168.1.38</strong><br />
<strong>netmask 255.255.255.0</strong><br />
<strong>gateway 192.168.1.1</strong><br />
<strong>network 192.168.1.0</strong><br />
<strong>broadcast 192.168.1.255</strong><br />
<strong>iface eth0:1 inet static</strong><br />
<strong>address 192.168.1.40</strong><br />
<strong>netmask 255.255.255.0</strong><br />
<strong>iface eth0:2 inet static</strong><br />
<strong>address 192.168.1.41</strong><br />
<strong>netmask 255.255.255.0</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicubuntu/8.jpg" alt="" width="573" height="358" /></p>
<p>After saving and restarting the network, you can check your new setting by typing <strong>ifconfig</strong></p>
<p><strong><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicubuntu/9.jpg" alt="" width="602" height="431" /><br />
</strong></p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-ubuntu/&amp;title=How to Setup Network Interface Card in Ubuntu' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us]'  /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-ubuntu/&amp;title=How to Setup Network Interface Card in Ubuntu' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg]'  /></a> <a href='http://reddit.com/submit?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-ubuntu/&amp;title=How to Setup Network Interface Card in Ubuntu' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit]'  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-ubuntu/&amp;title=How to Setup Network Interface Card in Ubuntu' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot]'  /></a> <a href='http://www.stumbleupon.com/submit?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-ubuntu/&amp;title=How to Setup Network Interface Card in Ubuntu' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon]'  /></a> <a href='http://technorati.com/faves?add=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-ubuntu/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati]'  /></a> <a href='https://favorites.live.com/quickadd.aspx?mkt=en-us&amp;url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-ubuntu/&amp;title=How to Setup Network Interface Card in Ubuntu' title='Save to Windows Live' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/windowslive.png' style='width:16px; height:16px;' alt='[Windows Live]'  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-ubuntu/&amp;t=How to Setup Network Interface Card in Ubuntu' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!]'  /></a> </div></div>]]></content:encoded>
			<wfw:commentRss>http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Setup Network Interface Card in Debian</title>
		<link>http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-debian/</link>
		<comments>http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-debian/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 08:37:19 +0000</pubDate>
		<dc:creator>Awang Apandy</dc:creator>
				<category><![CDATA[Linux Tutorial]]></category>

		<guid isPermaLink="false">http://www.iprobot.net/?p=139</guid>
		<description><![CDATA[In this tutorial, I will show how to setup a basic network configuration inside Debian. The first thing you need to do is to boot up your Debian and log into the root account: You may type ifconfig to display &#8230; <a href="http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-debian/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In this tutorial, I will show how to setup a basic network configuration inside Debian. The first thing you need to do is to boot up your Debian and log into the root account:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicdebian/1.jpg" alt="" width="418" height="201" /></p>
<p>You may type <strong>ifconfig</strong> to display your current network configuration:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicdebian/2.jpg" alt="" width="612" height="290" /></p>
<p><span id="more-139"></span></p>
<p>From the above picture, you can see that:<br />
1)      eth0 &#8211; is your first network interface card inside your server<br />
2)      lo &#8211; the loopback interface to access your local services such as proxy or webserver http://127.0.0.1</p>
<p>The network card settings can be found edit here:<br />
<strong>vi /etc/network/interfaces</strong></p>
<p>You may type this if you want to read more about the network settings help provided inside Debian:<br />
<strong>man interfaces</strong></p>
<p>SETUP STATIC IP</p>
<p>You may type like below inside your interface configuration file:<br />
<strong>auto eth0</strong><br />
<strong>iface eth0 inet static</strong><br />
<strong>address 192.168.1.90</strong><br />
<strong>netmask 255.255.255.0</strong><br />
<strong>gateway 192.168.1.1</strong><br />
<strong>network 192.168.1.0</strong><br />
<strong>broadcast 192.168.1.255</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicdebian/4.jpg" alt="" width="633" height="342" /></p>
<p>Please take note that only <em>address </em>and <em>netmask </em>is required to be inserted into the configuration. The gateway, network, and broadcast are optional. You may enter it or Debian will automatically calculate the other three based on your <em>address </em>and <em>netmask</em>.</p>
<p>SETUP DHCP</p>
<p>In order to setup DHCP for the network interface card, just type like below inside the <em>/etc/network/interfaces</em> file:<br />
<strong>auto eth0</strong><br />
<strong>iface eth0 inet dhcp</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicdebian/3.jpg" alt="" width="645" height="401" /></p>
<p>CONFIGURE DNS</p>
<p>Next is to configure the DNS in order for it to resolve your domain name request into IP for the server to understand it. To configure, type:<br />
<strong>vi /etc/resolv.conf</strong><br />
<strong> </strong></p>
<p>Then you may add any DNS you want inside the file:<br />
<strong>nameserver 8.8.8.8</strong><br />
<strong>nameserver 202.75.34.2</strong><br />
<strong>nameserver 4.2.2.2</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicdebian/5.jpg" alt="" width="468" height="399" /></p>
<p>RESTART THE NETWORK SERVICE</p>
<p>After finished editing any of the network setting, you need to restart the network service in order for new changes to take effect. To restart, type:<br />
<strong>/etc/init.d/networking restart</strong><br />
<strong> </strong></p>
<p>You may type <strong>ifconfig </strong>to see your new network settings:</p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicdebian/6.jpg" alt="" width="670" height="290" /></p>
<p>You also may test ping a domain name to see whether your network settings is working or not by typing:<br />
<strong>ping google.com</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicdebian/7.jpg" alt="" width="723" height="171" /></p>
<p>If you got the reply, this means your setup was successful.</p>
<p>ASSIGN MULTIPLE IP IN NETWORK INTERFACE CARD</p>
<p>The procedure would be the same like adding normal IP address to the network interface card. Just open up the network interface card settings by typing:<br />
<strong>vi /etc/network/interfaces</strong></p>
<p>Then add these following lines (depending on how much additional IP you want to add):<br />
<strong>auto eth0 eth0:1 eth0:2</strong><br />
<strong>iface eth0 inet static</strong><br />
<strong>address 192.168.1.90</strong><br />
<strong>netmask 255.255.255.0</strong><br />
<strong>gateway 192.168.1.1</strong><br />
<strong>network 192.168.1.0</strong><br />
<strong>broadcast 192.168.1.255</strong><br />
<strong>iface eth0:1 inet static</strong><br />
<strong>address 192.168.1.211</strong><br />
<strong>netmask 255.255.255.0</strong><br />
<strong>iface eth0:2 inet static</strong><br />
<strong>address 192.168.1.212</strong><br />
<strong>netmask 255.255.255.0</strong></p>
<p><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicdebian/8.jpg" alt="" width="641" height="347" /><br />
<strong> </strong><br />
<strong> </strong></p>
<p>After saving and restarting the network, you can check your new setting by typing <strong>ifconfig</strong></p>
<p><strong><img class="alignnone" src="http://img.serverfreak.com/support/tutorial/nicdebian/9.jpg" alt="" width="699" height="399" /><br />
</strong></p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-debian/&amp;title=How to Setup Network Interface Card in Debian' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us]'  /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-debian/&amp;title=How to Setup Network Interface Card in Debian' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg]'  /></a> <a href='http://reddit.com/submit?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-debian/&amp;title=How to Setup Network Interface Card in Debian' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit]'  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-debian/&amp;title=How to Setup Network Interface Card in Debian' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot]'  /></a> <a href='http://www.stumbleupon.com/submit?url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-debian/&amp;title=How to Setup Network Interface Card in Debian' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon]'  /></a> <a href='http://technorati.com/faves?add=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-debian/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati]'  /></a> <a href='https://favorites.live.com/quickadd.aspx?mkt=en-us&amp;url=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-debian/&amp;title=How to Setup Network Interface Card in Debian' title='Save to Windows Live' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/windowslive.png' style='width:16px; height:16px;' alt='[Windows Live]'  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-debian/&amp;t=How to Setup Network Interface Card in Debian' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!]'  /></a> </div></div>]]></content:encoded>
			<wfw:commentRss>http://www.iprobot.net/linux-tutorial/how-to-setup-network-interface-card-in-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basics of Networking</title>
		<link>http://www.iprobot.net/internet/basics-of-networking-2/</link>
		<comments>http://www.iprobot.net/internet/basics-of-networking-2/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 09:26:15 +0000</pubDate>
		<dc:creator>Awang Apandy</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.iprobot.net/?p=133</guid>
		<description><![CDATA[IP ADDRESS (Internet Protocol) Definition:  A numerical value that been assigned to a device/computer/node in order for it to join/participate/communicate in a network. IP address only has a valid combination of number 0 &#8211; 255 (which consist of 256 digits &#8230; <a href="http://www.iprobot.net/internet/basics-of-networking-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>IP ADDRESS (Internet Protocol)</strong></p>
<p>Definition:  A numerical value that been assigned to a device/computer/node in order for it to join/participate/communicate in a network. IP address only has a valid combination of number 0 &#8211; 255 (which consist of 256 digits as 0 is also counted)</p>
<p>IP address must be unique in each device/computer/node and cannot have a duplicate in the same network. IP address usually is represented in dotted-decimal notation for example 112.243.137.100</p>
<p>IP address is divided into 2 purposes; one is for external (normal use) and internal (private network, localhost). The internal IP is only usable within the Local Area Network (LAN). It will not pass through the modem/router and people from outside the network normally won’t be able to connect/enter to your device through the usage of private IP. But by using Virtual Private Network (VPN), you are able to connect in between different private networks.<br />
<span id="more-133"></span><br />
The example of Private Network IP:</p>
<p>1)      10.0.0.0 &#8211; 10.255.255.255</p>
<p>2)      172.16.0.0 &#8211; 172.31.255.255</p>
<p>3)      192.168.0.0 &#8211; 192.168.255.255</p>
<p>Localhost is the standard hostname given to an IP address of a loopback network interface. For example by typing http://localhost, it will redirect to the http server located inside your own server (if applicable). The localhost IP is 127.0.0.0 &#8211; 127.255.255.255</p>
<p>There are current 2 types of IP address that being used:</p>
<p>1)      IPv4 &#8211; a 32 bit address which currently been widely used and nearing exhaustion</p>
<p>2)      IPv6 &#8211;  recently introduced to replace the IPv4 which uses 128 bit addresses</p>
<p>IP address has several different Class from A – E:</p>
<p>Class A = 0.0.0.0 &#8211; 127.255.255.255</p>
<p>Class B = 128.0.0.0 &#8211; 191.255.255.255</p>
<p>Class C = 192.0.0.0 &#8211; 223.255.255.255</p>
<p>Class D = 224.0.0.0 &#8211; 239.255.255.255*</p>
<p>Class E = 240.0.0.0 &#8211; 255.255.255.255*</p>
<p>*Please note that both Class D and E IP are not usable / not suitable for normal networking</p>
<p><strong>SUBNETWORK</strong></p>
<p>Definition: A logical form of division / segmentation of the IP address. It helps to determine the IP address location in a large network.</p>
<p>For performance and security reason, IP address usually is segmented / divided into various configurations which are called Subnet Mask.</p>
<p>Subnet Mask usually show how many IP range that attached to that particular configuration. It also acts as a validation for IP address whether it belongs to the network or not. Below is the most common subnet mask used for a normal full block of 256 IP address:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="160" valign="top">Mask</td>
<td width="160" valign="top">Available Subnet</td>
<td width="160" valign="top">Available Host Per Subnet</td>
<td width="160" valign="top">Total Usable Host</td>
</tr>
<tr>
<td width="160" valign="top">255.255.255.0</td>
<td width="160" valign="top">1</td>
<td width="160" valign="top">254</td>
<td width="160" valign="top">254</td>
</tr>
<tr>
<td width="160" valign="top">255.255.255.128</td>
<td width="160" valign="top">2</td>
<td width="160" valign="top">126</td>
<td width="160" valign="top">252</td>
</tr>
<tr>
<td width="160" valign="top">255.255.255.192</td>
<td width="160" valign="top">4</td>
<td width="160" valign="top">62</td>
<td width="160" valign="top">248</td>
</tr>
<tr>
<td width="160" valign="top">255.255.255.224</td>
<td width="160" valign="top">8</td>
<td width="160" valign="top">30</td>
<td width="160" valign="top">240</td>
</tr>
<tr>
<td width="160" valign="top">255.255.255.240</td>
<td width="160" valign="top">16</td>
<td width="160" valign="top">14</td>
<td width="160" valign="top">224</td>
</tr>
<tr>
<td width="160" valign="top">255.255.255.248</td>
<td width="160" valign="top">32</td>
<td width="160" valign="top">6</td>
<td width="160" valign="top">192</td>
</tr>
<tr>
<td width="160" valign="top">255.255.255.252</td>
<td width="160" valign="top">64</td>
<td width="160" valign="top">2</td>
<td width="160" valign="top">128</td>
</tr>
<tr>
<td width="160" valign="top">255.255.255.254</td>
<td width="160" valign="top">128</td>
<td width="160" valign="top">2</td>
<td width="160" valign="top">256</td>
</tr>
</tbody>
</table>
<p><strong>CLASSLESS INTER-DOMAIN ROUTING (CIDR)</strong></p>
<p>Definition: A methodology to describe the allocation of the IP address in a network. It was created to replace the old Class A, B, and C routing scheme which helps to manage the IP exhaustion problem. It is also a conversion from the Subnet Mask.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="112" valign="top">CIDR</td>
<td width="142" valign="top">Mask</td>
<td width="130" valign="top">Available Subnet</td>
<td width="130" valign="top">Available Host Per Subnet</td>
<td width="125" valign="top">Total Usable Host</td>
</tr>
<tr>
<td width="112" valign="top">/24</td>
<td width="142" valign="top">255.255.255.0</td>
<td width="130" valign="top">1</td>
<td width="130" valign="top">254</td>
<td width="125" valign="top">254</td>
</tr>
<tr>
<td width="112" valign="top">/25</td>
<td width="142" valign="top">255.255.255.128</td>
<td width="130" valign="top">2</td>
<td width="130" valign="top">126</td>
<td width="125" valign="top">252</td>
</tr>
<tr>
<td width="112" valign="top">/26</td>
<td width="142" valign="top">255.255.255.192</td>
<td width="130" valign="top">4</td>
<td width="130" valign="top">62</td>
<td width="125" valign="top">248</td>
</tr>
<tr>
<td width="112" valign="top">/27</td>
<td width="142" valign="top">255.255.255.224</td>
<td width="130" valign="top">8</td>
<td width="130" valign="top">30</td>
<td width="125" valign="top">240</td>
</tr>
<tr>
<td width="112" valign="top">/28</td>
<td width="142" valign="top">255.255.255.240</td>
<td width="130" valign="top">16</td>
<td width="130" valign="top">14</td>
<td width="125" valign="top">224</td>
</tr>
<tr>
<td width="112" valign="top">/29</td>
<td width="142" valign="top">255.255.255.248</td>
<td width="130" valign="top">32</td>
<td width="130" valign="top">6</td>
<td width="125" valign="top">192</td>
</tr>
<tr>
<td width="112" valign="top">/30</td>
<td width="142" valign="top">255.255.255.252</td>
<td width="130" valign="top">64</td>
<td width="130" valign="top">2</td>
<td width="125" valign="top">128</td>
</tr>
<tr>
<td width="112" valign="top">/31</td>
<td width="142" valign="top">255.255.255.254</td>
<td width="130" valign="top">128</td>
<td width="130" valign="top">1</td>
<td width="125" valign="top">256</td>
</tr>
<tr>
<td width="112" valign="top">/32</td>
<td width="142" valign="top">255.255.255.255</td>
<td width="130" valign="top">-</td>
<td width="130" valign="top">-</td>
<td width="125" valign="top">1</td>
</tr>
</tbody>
</table>
<p><strong>GATEWAY</strong></p>
<p>Definition:  A node stands in between for the IP address to pass through to another network. The IP address gateway functions exactly the same manner.</p>
<p>Gateway also can be use as a firewall or proxy to monitor and filter your incoming and outgoing packets.</p>
<p>Usually gateway will be the node to route your packet request to reach its destination. This will be involving a few gateways on each network depending on how far your destination is.</p>
<p><strong>DOMAIN NAME SYSTEM (DNS)</strong></p>
<p>Definition: Allows computer and routers to identify each other efficiently on the network.</p>
<p>It helps to route, convert and translate hostname into IP address. This is because human is prone to using domain name to get anywhere but in the meanwhile the computer only recognize the IP address.</p>
<p>So DNS helps to convert the domain name typed by the human into IP address for the computer to read. Then it will send the packets that contain the IP address throughout the gateway until it reach its destination.</p>
<p><strong>MEDIA ACCESS CONTROL (MAC) ADDRESS</strong></p>
<p>Definition: is a unique identifier inside the network interface card for identification purposes in a network.</p>
<p>It was originally set by the network interface card&#8217;s manufacturer for their manufacturing number hence MAC address is unique in every network card. MAC address is not being use to set a normal network connection. It is only will be used inside the OSI layer. An example of how a MAC address looks like 00:E0:81:BA:E6:4A</p>
<p><strong>A SUBNET OF IP ADDRESS</strong></p>
<p><strong> </strong></p>
<p>If you got a block of IPs from the service provider, first you need to understand how the IPs is assigned inside the block (unless they have specified earlier for your convenience).</p>
<p>Each of the IP address subnet will contain Network ID (Identification purposes), Broadcast (broadcasting the IP throughout the network), and a Gateway. Below is an example of a 122.117.163.96/29 physical distribution:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="122" valign="top">IP</td>
<td width="143" valign="top">Definition</td>
</tr>
<tr>
<td width="122" valign="top">122.117.163.96</td>
<td width="143" valign="top">Network ID</td>
</tr>
<tr>
<td width="122" valign="top">122.117.163.97</td>
<td width="143" valign="top">Gateway</td>
</tr>
<tr>
<td width="122" valign="top">122.117.163.98</td>
<td width="143" valign="top"></td>
</tr>
<tr>
<td width="122" valign="top">122.117.163.99</td>
<td width="143" valign="top"></td>
</tr>
<tr>
<td width="122" valign="top">122.117.163.100</td>
<td width="143" valign="top"></td>
</tr>
<tr>
<td width="122" valign="top">122.117.163.101</td>
<td width="143" valign="top"></td>
</tr>
<tr>
<td width="122" valign="top">122.117.163.102</td>
<td width="143" valign="top"></td>
</tr>
<tr>
<td width="122" valign="top">122.117.163.103</td>
<td width="143" valign="top">Broadcast</td>
</tr>
</tbody>
</table>
<p>In the table above, it will show that the only usable IP will be only starting from 122.117.163.98 – 102. The same configuration will apply no matter how big or small the IP subnet your are getting from the service provider.</p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong>ASSIGNING IP ADDRESS</strong></p>
<p>When installing a new server, normally an IP address needs to be set in order for the server to be connected to the network. The most important information that needs to be prepared when getting the server connected to the network is:</p>
<p>1)      IP address &#8211; identify your server on the network</p>
<p>2)      Subnet mask &#8211; verify the IP address grouping</p>
<p>3)      IP gateway &#8211; provides the entry to the network</p>
<p>4)      DNS &#8211; resolves domain/host name to IP address</p>
<p>As been mentioned earlier, all these components have its own function and how they relate to each other to make the server connected to the network. Failure to provide or wrong set of configuration, the server won’t be able to connect to the network.</p>
<div class='bookmarkify'><a name='bookmarkify'></a><div class='linkbuttons'><a href='http://del.icio.us/post?url=http://www.iprobot.net/internet/basics-of-networking-2/&amp;title=Basics of Networking' title='Save to del.icio.us' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/delicious.png' style='width:16px; height:16px;' alt='[del.icio.us]'  /></a> <a href='http://digg.com/submit?phase=2&amp;url=http://www.iprobot.net/internet/basics-of-networking-2/&amp;title=Basics of Networking' title='Digg It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/digg.png' style='width:16px; height:16px;' alt='[Digg]'  /></a> <a href='http://reddit.com/submit?url=http://www.iprobot.net/internet/basics-of-networking-2/&amp;title=Basics of Networking' title='Reddit' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/reddit.png' style='width:16px; height:16px;' alt='[Reddit]'  /></a> <a href='http://slashdot.org/bookmark.pl?url=http://www.iprobot.net/internet/basics-of-networking-2/&amp;title=Basics of Networking' title='Slashdot It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/slashdot.png' style='width:16px; height:16px;' alt='[Slashdot]'  /></a> <a href='http://www.stumbleupon.com/submit?url=http://www.iprobot.net/internet/basics-of-networking-2/&amp;title=Basics of Networking' title='Stumble It!' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/stumbleupon.png' style='width:16px; height:16px;' alt='[StumbleUpon]'  /></a> <a href='http://technorati.com/faves?add=http://www.iprobot.net/internet/basics-of-networking-2/' title='Add to my Technorati Favorites' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/technorati.png' style='width:16px; height:16px;' alt='[Technorati]'  /></a> <a href='https://favorites.live.com/quickadd.aspx?mkt=en-us&amp;url=http://www.iprobot.net/internet/basics-of-networking-2/&amp;title=Basics of Networking' title='Save to Windows Live' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/windowslive.png' style='width:16px; height:16px;' alt='[Windows Live]'  /></a> <a href='http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=http://www.iprobot.net/internet/basics-of-networking-2/&amp;t=Basics of Networking' title='Save to Yahoo! Bookmarks' onclick='target="_blank";' rel='nofollow'><img src='http://www.iprobot.net/wp-content/plugins/bookmarkify/yahoo.png' style='width:16px; height:16px;' alt='[Yahoo!]'  /></a> </div></div>]]></content:encoded>
			<wfw:commentRss>http://www.iprobot.net/internet/basics-of-networking-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

