Does anyone know how you can GET a MAC address?? I mean if i want to find out my MAC address (linux) how do i do so??
also if i have a remote server up(no telnet/ssh) but i have my IP address can i also get the MAC address from knowing that?
Printable View
Does anyone know how you can GET a MAC address?? I mean if i want to find out my MAC address (linux) how do i do so??
also if i have a remote server up(no telnet/ssh) but i have my IP address can i also get the MAC address from knowing that?
In RedHat Linux, it's easy to change your MAC address with the ifconfig command. If you think about it, you'll realize that the entire packet (including that part about the MAC address). So it should come as no surprise that you can change that in software. Generally though, the OS reads the MAC address off of the NIC and uses that to craft the packets. By using the ifconfig command, you can tell it to use the MAC address you specified instead of the MAC address it read from the card. The functionality is available in Windows, but is not native to Windows itself. As several people have already said, the only way to do it with Windows is if your NIC manufacturer added that functionality in their drviers for the card. I've seen the option in some 3Com cards, but I can't remember which as it has been a few years. I've never seen it in any other driver, but that doesn't mean it doesn't exist.
Edit: In linux, the command is:
ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
Where the X's are whatever you want the MAC address to be. The ethernet interface also has to be down for this to work. So just run:
ifconfig eth0 down
and then when you're done:
ifconfig eth0 up
Dome, ifconfig with no options should give you a printout of all the interfaces on your system, and in that list should be your MAC address for your ethernet card.