如何获取本机网卡的MAC地址

                                                                                                

    在Windows下,进入MSDOS命令提示符,然后键入ipconfig /all命令,即可列出本机的网络参数,其中Physical Address项后边的六个十六进制数(例如下面实例中红色的08-02-4D-0F-49-DF),就是你本机网卡的MAC地址,要将此地址完整准确地上报。具体操作见下面实例:

C:\>ipconfig /all

Windows 2000 IP Configuration

Host Name . . . . . . . . . . . . : sam
Primary DNS Suffix . . . . . . . : zjc.zjut.edu.cn
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : zjc.zjut.edu.cn
                                    zjut.edu.cn
                                    edu.cn

Ethernet adapter 本地连接:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Legend DFE-530TX PCI Fast Ethernet Adapter (Rev B)
Physical Address. . . . . . . . . : 08-02-4D-0F-49-DF
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 172.16.xxx.xxx
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.16.xxx.1
DNS Servers . . . . . . . . . . . : 172.16.253.199