for /f "tokens=3 delims= " %%t in ('echo %ilo%');do set ip3=%%t
for /f "tokens=4 delims= " %%f in ('echo %ilo%');do set ip4=%%f
echo %ip3%.%ip4%
set wip=w1.w2.%ip3%.%ip4%
set nip=n1.n2.%ip3%.%ip4%
set mask=255.255.255.0
set gw=w1.w2.%ip3%.254
netsh interface ip add address "本地连接" %wip% %mask%
netsh interface ip add address "本地连接" gateway=%gw% gwmetric=1