02 set 2008 @ 4:29 PM 

Stiamo ristrutturando la nostra rete interna, entro la fine dell’anno (speriamo) dovrebbero mettere una connessione in fibra ottica, simmetrica a 2mbit.
Per l’occasione creerò due firewall con tanto di fallback su HDSL in cluster, grazie a pfSense.
Però dato che attualmente switchare dalla adsl alla hdsl lato firewall, dato che i questi sono stati creati in tempi remoti, metterci le mani è (quasi) impossibile e quindi ho creato un piccolo file batch che cambia il default gateway su ogni pc, in modo da uscire o su Ibs o su NGI.
Infatti i problemi sono nati tutti per colpa di quei maledetti di NGI, che da qualche giorno hanno down frequentissimi!!
Ecco a voi il fantastico file!

@echo off
cls

:RICHIESTE
echo.
echo Vuoi uscire su Internet in ADSL o HDSL?
echo (1) ADSL
echo (2) HDSL
echo.
set /p var=”Seleziona un valore…”:
set var=%var:~0,1%
if “%var%”==”1″ goto UNO
if “%var%”==”2″ goto DUE
echo Seleziona 1 o 2
goto RICHIESTE

:UNO
echo ADSL….
netsh interface ip set address name=”Connessione alla rete locale (LAN)” gateway=192.168.0.14 gwmetric=0

goto END

:D UE
echo HDSL….
netsh interface ip set address name=”Connessione alla rete locale (LAN)” gateway=192.168.0.25 gwmetric=0

goto END

:END
echo.
echo Configurazione ultimata….
echo.
pause
cls
@echo on

Posted By: marco
Last Edit: 02 set 2008 @ 04:32 PM

EmailPermalinkComments (0)
Tags

 Last 50 Posts
 Back
Change Theme...
  • Users » 687
  • Posts/Pages » 377
  • Comments » 83
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

Chi Sono?



    No Child Pages.

Consulenze



    No Child Pages.

Note Legali



    No Child Pages.

CV



    No Child Pages.