Difference between revisions of "Change MacAddress"

From MS Computech
Jump to: navigation, search
(New page: Edit this file /etc/network/interfaces <pre>hwaddress ether 00:01:04:1b:2C:1F</pre>)
 
Line 1: Line 1:
Edit this file /etc/network/interfaces
+
'''How to change mac address Linux'''<br />
 +
 
 +
วิธีที่ 1 แก้ไขไฟล์ /etc/network/interfaces
 
<pre>hwaddress ether 00:01:04:1b:2C:1F</pre>
 
<pre>hwaddress ether 00:01:04:1b:2C:1F</pre>
 +
วิธีที่ 2 macchanger
 +
<pre>
 +
ultima:~# apt-get install macchanger
 +
Reading package lists... Done
 +
Building dependency tree
 +
Reading state information... Done
 +
The following NEW packages will be installed:
 +
  macchanger
 +
0 upgraded, 1 newly installed, 0 to remove and 51 not upgraded.
 +
Need to get 88.2 kB of archives.
 +
After this operation, 319 kB of additional disk space will be used.
 +
Get:1 http://mirror.kku.ac.th/debian/ squeeze/main macchanger i386 1.5.0-6 [88.2 kB]
 +
Fetched 88.2 kB in 0s (354 kB/s)
 +
Selecting previously deselected package macchanger.
 +
(Reading database ... 39943 files and directories currently installed.)
 +
Unpacking macchanger (from .../macchanger_1.5.0-6_i386.deb) ...
 +
Processing triggers for install-info ...
 +
Processing triggers for man-db ...
 +
Setting up macchanger (1.5.0-6) ...
 +
</pre>
 +
เปลี่ยน mac
 +
<pre>
 +
macchanger --mac=XX:XX:XX:XX:XX:XX eth0
 +
</pre>
 +
Random mac
 +
<pre>
 +
ultima:~# macchanger -r eth0
 +
Current MAC: 00:0c:29:21:89:2e (Vmware, Inc.)
 +
Faked MAC:  12:a6:4f:7a:95:0c (unknown)
 +
</pre>
 +
 +
------

Revision as of 09:13, 27 August 2012

How to change mac address Linux

วิธีที่ 1 แก้ไขไฟล์ /etc/network/interfaces

hwaddress ether 00:01:04:1b:2C:1F

วิธีที่ 2 macchanger

ultima:~# apt-get install macchanger
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  macchanger
0 upgraded, 1 newly installed, 0 to remove and 51 not upgraded.
Need to get 88.2 kB of archives.
After this operation, 319 kB of additional disk space will be used.
Get:1 http://mirror.kku.ac.th/debian/ squeeze/main macchanger i386 1.5.0-6 [88.2 kB]
Fetched 88.2 kB in 0s (354 kB/s)
Selecting previously deselected package macchanger.
(Reading database ... 39943 files and directories currently installed.)
Unpacking macchanger (from .../macchanger_1.5.0-6_i386.deb) ...
Processing triggers for install-info ...
Processing triggers for man-db ...
Setting up macchanger (1.5.0-6) ...

เปลี่ยน mac

macchanger --mac=XX:XX:XX:XX:XX:XX eth0

Random mac

ultima:~# macchanger -r eth0
Current MAC: 00:0c:29:21:89:2e (Vmware, Inc.)
Faked MAC:   12:a6:4f:7a:95:0c (unknown)