C:\>ipconfig
Windows IP Configuration
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.101
Ethernet adapter {5982BEEE-FC3F-43B1-9262-F2C4BF4AD972}:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 10.255.255.253
Subnet Mask . . . . . . . . . . . : 255.255.255.224
Autoconfiguration IP Address. . . : 169.254.19.67
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
PPP adapter ADSL:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 118.147.61.160
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 118.147.61.160
PPP adapter 铁通去网通加速:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 172.29.23.169
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 172.29.23.169
PPP adapter 铁通去电信加速:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 172.28.7.174
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 172.28.7.174
要求是将上面“ADSL”这个拨号连接的网关、“铁通去网通加速”和“铁通去电信加速”这两个VPN连接的网关,分别赋值给批处理中的%ctt%、%cnc%、%tel%这3个变量
只需要帮我做完上面的操作即可,我的最终目的是用route命令来改路由表了,写批处理避免重复劳动,但IP都是动态的,用到for命令我就搞不掂了

先行感谢大家的帮忙

[ Last edited by feifeiyucn on 2008-4-12 at 04:54 PM ]
