for /f "tokens=2 delims=:" %%a in ('C:\tools\ipmi64\ipmiutil.exe lan print^|find "address: iloip1 iloip2"');do set ilo=%%a
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 "本地连接 2" %nip% %mask%
netsh interface ip add address "本地连接" %wip% %mask%
netsh interface ip add address "本地连接" gateway=%gw% gwmetric=1