嘿伙计们我需要知道如何更改我的电脑的MAC地址,我知道它与注册表有关,我不想深入研究它,理由是,如果有什么东西搞砸了搞砸了。我没有任何入门代码可以继续。遗憾。
答案 0 :(得分:0)
见
netsh interface ipv4 set address /?
这应该做你想要的。
编辑:几年前我写了这个程序。 使用你需要的任何东西。 请注意,您可能必须将“LAN-Verbindung”调整为您的adaptername(使用'ipconfig'找到它) 也很抱歉德语“怎么做”,我不知道这些菜单是用英语命名的。 - 但也许,您不需要DHCP服务器。
@echo off
if "%1"=="home" goto home
if "%1"=="office" goto office
if "%1"=="dhcp" goto dhcp
if "%1"=="server" goto server
goto help
REM set ip-address to parameter
netsh interface ip set address "LAN-Verbindung" static %1 255.255.255.0
goto ende
:dhcp rem work as DHCP-Client
netsh interface ip set address "LAN-Verbindung" dhcp
goto ende
:server rem work as DHCP-Server
netsh interface ip set address "LAN-Verbindung" static 192.168.0.1 255.255.255.0 192.168.0.1 1
goto ende
:home rem fixed Address at home
netsh interface ip set address "LAN-Verbindung" static 192.168.178.30 255.255.255.0 192.168.178.1 1
goto ende
:office rem fixed Address at office
netsh interface ip set address "LAN-Verbindung" static 192.168.0.5 255.255.255.0
goto ende
:help
echo.
echo Syntax: ip [parameter]
echo Parameter:
echo home set a fixed IP (predefined)
echo work set a fixed IP (predefined)
echo server set a fixed IP (predefined) and works as DHCP-Server
echo dhcp works as DHCP-Client
echo [IP-Adresse] set a fixed IP (defined by parameter
echo Examples:
echo ip 192.168.1.44 sets IP to 192.168.1.44
echo ip server sets IP to 192.168.0.1 and starts DHCP-Server
echo ip home sets IP to a fixed (predefined) IP
echo ip dhcp fetches an IP from DHCP-Server
echo ATTENTION: to work as DHCP-Server, the "Gemeinsame Nutzung der
echo Internetverbindung" aktiviert werden (has to be done only one time).
echo Netzwerkverbindungen "Eigenschaften"
echo LAN-Verbindung "Eigenschaften"
echo "Erweitert" "Anderen Benutzern im Netzwerk gestatten..." aktivieren
echo HINT: This Batch-file needs Administrator-rights
echo.
REM the IP-Range for den DHCP-Server can be determined to a smaller range.
REM Info see: http://support.microsoft.com/?kbid=230248
goto ende2
:ende
ipconfig
:ende2
echo.
答案 1 :(得分:0)
在我自己的电脑上,我有一块Realtek PCIe卡,我可以用这种方式指定硬件(MAC)地址。
以下是带有屏幕截图的Superuser.com线程的链接: Advanced parameters for realtek pci-e gbe family network card
您还可以研究MAC Spoofing 以获取更多信息。