打开C:ip.txt文件,如下格式(Windows 7下):
#========================
# IPv4 配置
#========================
pushd interface ipv4
reset
set global defaultcurhoplimit=64 icmpredirects=enabled
add route prefix=0.0.0.0/0 interface="本地连接" nexthop=10.100.18.254 publish=是
add address name="本地连接" address=10.100.18.100 mask=255.255.255.0
popd
# IPv4 配置结束
# ----------------------------------
# IPv6 配置
# ----------------------------------
pushd interface ipv6
reset
set interface interface="Teredo Tunneling Pseudo-Interface" forwarding=disabled advertise=disabled mtu=1280 metric=0 siteprefixlength=0 nud=disabled routerdiscovery=disabled managedaddress=disabled otherstateful=disabled weakhostsend=disabled weakhostreceive=disabled ignoredefaultroutes=disabled advertisedrouterlifetime=0 advertisedefaultroute=disabled currenthoplimit=0 forcearpndwolpattern=disabled enabledirectedmacwolpattern=disabled
popd
# IPv6 配置的结尾
# ----------------------------------
# ISATAP 配置
# ----------------------------------
pushd interface isatap
popd
# ISATAP 配置结束
# ----------------------------------
# 6to4 配置
# ----------------------------------
pushd interface 6to4
reset