Batch file 批量更改Mac地址Windows XP Pro
嘿,伙计们,我需要知道如何更改我电脑的MAC地址,我知道这与注册表有关,我不想深入研究这个问题,原因是,如果有什么事情搞砸了,那就永远搞砸了。我没有任何启动代码。抱歉。请参见Batch file 批量更改Mac地址Windows XP Pro,batch-file,registry,mac-address,windows-xp-sp3,Batch File,Registry,Mac Address,Windows Xp Sp3,嘿,伙计们,我需要知道如何更改我电脑的MAC地址,我知道这与注册表有关,我不想深入研究这个问题,原因是,如果有什么事情搞砸了,那就永远搞砸了。我没有任何启动代码。抱歉。请参见 netsh interface ipv4 set address /? 这应该是你想要的 编辑:几年前我写了这个程序。 使用你需要的任何东西。 请注意,您可能需要将“LAN Verbindung”改编为适配器名称(使用“ipconfig”查找) 也为德语“how-to”感到抱歉,我不知道这些菜单是如何用英语命名的。-但也
netsh interface ipv4 set address /?
这应该是你想要的
编辑:几年前我写了这个程序。
使用你需要的任何东西。
请注意,您可能需要将“LAN Verbindung”改编为适配器名称(使用“ipconfig”查找)
也为德语“how-to”感到抱歉,我不知道这些菜单是如何用英语命名的。-但也许,您不需要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.
在我自己的电脑上,我有一个Realtek PCIe卡,我可以通过这种方式指定硬件(MAC)地址
您还可以研究进一步的信息。请您解释一下,我对命令语法有点困惑,没有任何东西允许我更改MAC only gateway和静态IP@Stephanah抱歉,您指的是nic的硬件设计。你知道,世界上每个网卡都有它唯一的地址,如果不是唯一的,你会在连接上遇到麻烦吗?