<?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>rajaseelan.com &#187; ifconfig</title>
	<atom:link href="http://rajaseelan.com/tag/ifconfig/feed/" rel="self" type="application/rss+xml" />
	<link>http://rajaseelan.com</link>
	<description>junk food for the brain ...</description>
	<lastBuildDate>Tue, 28 Jul 2009 16:37:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Change Your MAC Address in Linux</title>
		<link>http://rajaseelan.com/2009/07/16/change-your-mac-address-in-linux/</link>
		<comments>http://rajaseelan.com/2009/07/16/change-your-mac-address-in-linux/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 08:38:58 +0000</pubDate>
		<dc:creator>raja</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[address]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[hwaddr]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://rajaseelan.com/?p=227</guid>
		<description><![CDATA[Some times it necessary to change your network MAC address on your linux box.
Unlike Windows, which requires some registry editing or even specialized tools, its just a command line away in Linux.
For example, lets change the MAC address of your first netwrok card, usually called eth0.
Let&#8217;s swith to being the root user and view the [...]]]></description>
			<content:encoded><![CDATA[<p>Some times it necessary to change your network MAC address on your linux box.</p>
<p>Unlike Windows, which requires some registry editing or even specialized tools, its just a command line away in Linux.</p>
<p>For example, lets change the MAC address of your first netwrok card, usually called <code>eth0</code>.</p>
<p>Let&#8217;s swith to being the root user and view the current MAC address:-</p>
<div class="wp_syntax">
<div class="code">
<pre class="text" style="font-family:monospace;">ifconfig eth0</pre>
</div>
</div>
<p>You should get something similiar:-</p>
<div class="wp_syntax">
<div class="code">
<pre class="text" style="font-family:monospace;">[root@rhel-5new ~]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 08:00:27:2C:D2:B5
          inet addr:192.168.0.108  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe2c:d2b5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20545 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18348 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:10083277 (9.6 MiB)  TX bytes:7489363 (7.1 MiB)
          Interrupt:11 Base address:0xd020</pre>
</div>
</div>
<p>The MAC address is listed next to the <code>HWAddr</code> column, which is <code>08:00:27:2C:D2:B5</code> in this case.</p>
<p>We&#8217;ll change it. First shutdown the network interface.</p>
<div class="wp_syntax">
<div class="code">
<pre class="text" style="font-family:monospace;">ifconfig eth0 down</pre>
</div>
</div>
<p>Now change it to say, <code>08:00:27:2C:D2:B4</code>.</p>
<div class="wp_syntax">
<div class="code">
<pre class="text" style="font-family:monospace;">ifconfig eth0 hw ether 00:00:27:2c:d2:b4</pre>
</div>
</div>
<p>Bring the interface back up.</p>
<div class="wp_syntax">
<div class="code">
<pre class="text" style="font-family:monospace;">ifconfig eth0 up</pre>
</div>
</div>
<p>Finally, lets have a look at the new mac address.</p>
<div class="wp_syntax">
<div class="code">
<pre class="text" style="font-family:monospace;">[root@rhel-5new ~]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:00:27:2C:D2:B4
          inet addr:192.168.0.108  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::200:27ff:fe2c:d2b4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20957 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18642 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:10146055 (9.6 MiB)  TX bytes:7520724 (7.1 MiB)
          Interrupt:11 Base address:0xd020</pre>
</div>
</div>
<p>You can see that the HWaddr field now reports <code>00:00:27:2C:D2:B4</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rajaseelan.com/2009/07/16/change-your-mac-address-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
