как создать bat файл
Primary tabs
пишите каждую команду с новой строки, например так (например - настройка статической маршрутизации ipv6):
netsh interface ipv6 set interface interface="subnet1" forwarding=enabled advertise=enabled netsh interface ipv6 set interface interface="subnet2" forwarding=enabled advertise=enabled netsh interface ipv6 add route prefix=FEC0:0:0:1::/64 interface="subnet1" publish=yes netsh interface ipv6 add route prefix=FEC0:0:0:2::/64 interface="subnet2" publish=yes netsh interface ipv6 add route prefix=::/0 interface="subnet2" nexthop=fe80::a00:27ff:fea9:bc9f publish=yes pause
а для второго компа такой вот перекрёстный батник - настройка статической ipv6 маршрутизации:
netsh interface ipv6 set interface interface="subnet2" forwarding=enabled advertise=enabled netsh interface ipv6 set interface interface="subnet3"forwarding=enabled advertise=enabled netsh interface ipv6 add route prefix=FEC0:0:0:2::/64 interface="subnet2" publish=yes netsh interface ipv6 add route prefix=FEC0:0:0:3::/64 interface="subnet3" publish=yes netsh interface ipv6 add route prefix=::/0 interface="subnet2" nexthop=fe80::a00:27ff:fe75:ccae publish=yes pause
адреса интерфейсов были получены с помощью следующей команды
- vedro-compota's blog
- Log in to post comments
- 10509 reads
Comments
vedro-compota
Wed, 06/20/2012 - 19:50
Permalink
netsh interface ipv6 set
netsh interface ipv6 set interface interface="subnet1" forwarding=enabled advertise=enabled
netsh interface ipv6 set interface interface="subnet2" forwarding=enabled advertise=enabled
netsh interface ipv6 add route FEC0:0:0:1::/64 interface="subnet1" publish=yes
netsh interface ipv6 add route FEC0:0:0:2::/64 interface="subnet2" publish=yes
netsh interface ipv6 add route ::/0 interface="subnet2" nexthop=fe80::a00:27ff:fea9:bc9f publish=yes
pause
_____________
матфак вгу и остальная классика =)
vedro-compota
Wed, 06/20/2012 - 19:55
Permalink
netsh interface ipv6 set
netsh interface ipv6 set interface interface="subnet2" forwarding=enabled advertise=enabled
netsh interface ipv6 set interface interface="subnet3"forwarding=enabled advertise=enabled
netsh interface ipv6 add route prefix=FEC0:0:0:2::/64 interface="subnet2" publish=yes
netsh interface ipv6 add route prefix=FEC0:0:0:3::/64 interface="subnet3" publish=yes
netsh interface ipv6 add route prefix=::/0 interface="subnet2" nexthop=fe80::ffff:ffff:fffd publish=yes
pause
_____________
матфак вгу и остальная классика =)
vedro-compota
Wed, 06/20/2012 - 22:32
Permalink
SRV2 netsh interface ipv6 set
netsh interface ipv6 set interface "subnet2" enabled enabled
netsh interface ipv6 set interface "subnet3" forwarding=enabled advertise=enabled
netsh interface ipv6 add route FEC0:0:0:1::/64 interface="subnet2" publish=yes
netsh interface ipv6 add route FEC0:0:0:2::/64 interface="subnet3" publish=yes
netsh interface ipv6 add route ::/0 interface="subnet2" nexthop=fe80::ffff:ffff:fffd publish=yes
pause
_____________
матфак вгу и остальная классика =)
vedro-compota
Wed, 06/20/2012 - 21:30
Permalink
проверка связи
_____________
матфак вгу и остальная классика =)
vedro-compota
Wed, 06/20/2012 - 21:34
Permalink
ещё
_____________
матфак вгу и остальная классика =)