ZikFred
17-06-2010, 16:24
Имеется Windows Vista Buisness SP1 лицензия. Компьютер подключен к коммутатору Cisco 3560. На порту разрешен доступ к 5ю различным сетям, с различными vlan'ами. Как реализовать настройки в Висте, что бы из под неё был доступ к ним? В линуксе все просто, а в винде, если честно, не знаю.
вот например выдержки из скрипта в линуксе
#!/bin/bash
/bin/hostname alex
/sbin/ifconfig lo down
/sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0 up
/sbin/vconfig rem eth0.2
/sbin/vconfig rem eth0.7
/sbin/vconfig rem eth0.824
/sbin/vconfig rem eth0.239
/sbin/ifconfig eth0 down
/sbin/ifconfig eth0 0.0.0.0 up
/sbin/vconfig add eth0 2
/sbin/vconfig add eth0 7
/sbin/vconfig add eth0 824
/sbin/vconfig add eth0 239
/sbin/ifconfig eth0 172.2.13.26 netmask 255.255.255.0 up
/sbin/ifconfig eth0.2 10.2.13.19 netmask 255.255.255.0 up
/sbin/ifconfig eth0.7 192.168.110.24 netmask 255.255.255.0 up
/sbin/ifconfig eth0.824 172.0.0.1 netmask 255.255.255.0 up
/sbin/ifconfig eth0.239 192.168.6.150 netmask 255.255.255.248 up
/sbin/route add default gw 10.2.13.1
exit 0
вот например выдержки из скрипта в линуксе
#!/bin/bash
/bin/hostname alex
/sbin/ifconfig lo down
/sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0 up
/sbin/vconfig rem eth0.2
/sbin/vconfig rem eth0.7
/sbin/vconfig rem eth0.824
/sbin/vconfig rem eth0.239
/sbin/ifconfig eth0 down
/sbin/ifconfig eth0 0.0.0.0 up
/sbin/vconfig add eth0 2
/sbin/vconfig add eth0 7
/sbin/vconfig add eth0 824
/sbin/vconfig add eth0 239
/sbin/ifconfig eth0 172.2.13.26 netmask 255.255.255.0 up
/sbin/ifconfig eth0.2 10.2.13.19 netmask 255.255.255.0 up
/sbin/ifconfig eth0.7 192.168.110.24 netmask 255.255.255.0 up
/sbin/ifconfig eth0.824 172.0.0.1 netmask 255.255.255.0 up
/sbin/ifconfig eth0.239 192.168.6.150 netmask 255.255.255.248 up
/sbin/route add default gw 10.2.13.1
exit 0