一台WIN2000机器的不同网络之间的转换(100分)

  • 主题发起人 张剑波
  • 开始时间

张剑波

Unregistered / Unconfirmed
GUEST, unregistred user!
一台WIN2000机器的不同网络之间的转换
同时改变IP地址、网关、DNS、子网掩码。
最后把网线换一下就行了(当然我自己做)
如果不能提供代码,麻烦你给找个软件,thanks
 
用两个网卡省事得多。

如果不想与哪个连接就将那个网卡禁用掉。
 
1.使用 netsh -c interface dump > config.txt
2.然后将生成的 config.txt 复制多份,并修改其内容使之符合你的要求
3.netsh -f config.txt
4.ok
 
自己编一个软件改写注册表就可以了

[HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Tcpip/Parameters/Interfaces/{3EB9C60A-47A3-4428-BC96-99B47E1DDA58}]
"UseZeroBroadcast"=dword:00000000
"EnableDeadGWDetect"=dword:00000001
"EnableDHCP"=dword:00000000
"IPAddress"=hex(7):32,00,31,00,30,00,2e,00,31,00,32,00,2e,00,31,00,37,00,2e,00,/
32,00,32,00,32,00,00,00,00,00
"SubnetMask"=hex(7):32,00,35,00,35,00,2e,00,32,00,35,00,35,00,2e,00,32,00,35,/
00,35,00,2e,00,30,00,00,00,00,00
"DefaultGateway"=hex(7):32,00,31,00,30,00,2e,00,31,00,32,00,2e,00,31,00,37,00,/
2e,00,33,00,33,00,00,00,00,00
"DefaultGatewayMetric"=hex(7):31,00,00,00,00,00
"NameServer"="210.12.17.1,210.12.17.3"
"Domain"=""
"DisableDynamicUpdate"=dword:00000000
"EnableAdapterDomainNameRegistration"=dword:00000000
"InterfaceMetric"=dword:00000001
"TCPAllowedPorts"=hex(7):30,00,00,00,00,00
"UDPAllowedPorts"=hex(7):30,00,00,00,00,00
"RawIPAllowedProtocols"=hex(7):30,00,00,00,00,00
"NTEContextList"=hex(7):30,00,78,00,30,00,30,00,30,00,30,00,30,00,30,00,30,00,/
32,00,00,00,00,00
"DhcpServer"="255.255.255.255"
"Lease"=dword:00000e10
"LeaseObtainedTime"=dword:3d4a770c
"T1"=dword:3d4a7e14
"T2"=dword:3d4a835a
"LeaseTerminatesTime"=dword:3d4a851c
"IPAutoconfigurationAddress"="0.0.0.0"
"IPAutoconfigurationMask"="255.255.0.0"
"IPAutoconfigurationSeed"=dword:00000000
"AddressType"=dword:00000000

 
多人接受答案了。
 
顶部