lunes, 18 de marzo de 2013

Volver a valores de fabrica firewall NS-5GT de Juniper


1- Colocamos el cable consola DB-9 al puerto CONSOLE y la otra punta a nuestra PC.
 

2- Abrimos el putty para conectarnos por port serie con la siguiente configuracion.
    Baud Rate: 9600
    Parity: NO
    Data Bits: 8
    Stop Bit:1
    Flow Control: None

 

3-Ahora una vez conectados enchufamos nuestro 5GT y veremos por consola que comienza el inicio del booteo.
 

4-Cuando termina totalmente de iniciar vamos recien ahi a proceder a volverlo a valores de fabrica , para esto debemos resetear desde el boton reset que esta ubicado en la parte posterior del firewall. Lo tenemos que tener presionado hasta que aparece el sigueinte mensaje.
    Configuration Erasure Process has been initiated.
    Waiting for 2nd confirmation.

 

5- luego dejamos de optrimir el reset por unos 4 segundo y volvemos a oprimir el boton de reset, nos aparecera el siguiente mensaje

    2nd push has been confirmed.
    Configuration Erase sequence accepted, unit reset.

 

6-Comenzara el reboot mostrando la siguiente secuencia en la pantalla


NetScreen NS-5GT Boot Loader Version 2.1.0 (Checksum: 61D07DA5)
Copyright (c) 1997-2003 NetScreen Technologies, Inc.

Total physical memory: 128MB
    Test - Pass
    Initialization.... Done

Hit any key to run loader
Hit any key to run loader
Hit any key to run loader
Hit any key to run loader

Loading default system image from on-board flash disk...
Done! (size = 9,994,240 bytes)
Ignore image authentication!

Start loading...
.................................................................
.................................................................
.................................................................
.................................................................
.................................................................
.................................................................
.................................................................
.................................................................
.................................................................
.................................................................
.................................................................
..........
Done.

Juniper Networks, Inc
NS-5GT System Software
Copyright, 1997-2006

Version 5.4.0r10.0
Load Manufacture Information ... Done

Initialize FBTL 0.... Done
Load NVRAM Information ... (5.4.0)Done
SYIMAGE
Install module init vectors
Your license key is invalid

Initial port mode trust-untrust(1)
Install modules (00e10000,017f36a4) ...
load dns table ... Done

Initializing DI 1.1.0-ns
*********************************************************
System time: 05Mar2013:12:47:57
If this is the initial device startup,
use the "set clock" command to set the system clock.
*********************************************************
system init done..
login: System change state to Active(1)



7- una vez que hayamos llegado al final de lo que dice la pantalla anterior. Debemos configurar una PC para poder configurarlo. El firewall quedo configurado con la ip 192.168.1.1/24.
 

8- En nuestra PC ponemos la IP 192.168.1.2/24 la enchufamos al port 1 del firewall y accedemos al firewall mediante http://192.168.1.1. Luego ahi debemos seguir el wizard que nos ofrece para configurarlo..

miércoles, 6 de marzo de 2013

Pasar archivos desde windows a linux

Este ejemplo es como pasar un archivo rar (lunes.rar), que se encuentra en el directorio D:\backups\ de una PC con windows, a un directorio /home/backup/ de una pc en linux. Para ello utilizaremos el programa winscp para transferir el archivo a la pc con linux (10.10.10.10)


1- Creo un archivo txt llamado scriptlunes.txt en el directorio D:\backups\ donde coloco las siguientes lineas:

# Aborta el script si encuentra errores
option batch abort
# Nos conectamos al servidor remoto linux por sftp
open sftp://root:mippassword@10.10.10.10
#path donde voy a dejar el archivo rar en el servidor remoto (10.10.10.10)
cd /home/backup/
option transfer binary
#transfiero el archivo rar de mi windows que se encuentra en D:\backups
put D:\backups\lunes.rar
exit

2- Creo una tarea programada en windows donde debe ejecutar el programa winscp

"C:\Winscp\WinSCP.exe" /console /script=d:\backups\scriptlunes.txt


miércoles, 9 de enero de 2013

Volver a valores de fabrica EX2200 Juniper

1°- Nos conectamos al port CON a 9600 8-N-1 mediante hyperterminal o putty

lab@EX2200> request system configuration rescue delete
lab@EX2200> start shell user root
Password:xxxxx
root@EX2200% cd /config
root@EX2200% rm *
root@EX2200% reboot


Luego podemos iniciar nuevamente la configuracion como se muestra en el siguiente  link
http://it-yoda.blogspot.com.ar/2013/01/configuracion-inicial-en-switch-ex-2200.html

Configuracion inicial en switch EX 2200 Juniper

1°- Nos conectamos al port CON a 9600 8-N-1 mediante hyperterminal o putty

root@:RE:0% ezsetup   (ingreso este comando para comenzar el wizar de configuracion)


EZSetup Initializing..done.

Initial Setup Configuration
---------------------------

Enter System hostname [Optional]:SW_Contaduria

Enter new root password:xxxxxx
Re-enter the new password:
xxxxxx
Enable Telnet service? [yes|no]. Default [no]:ENTER
Enable SSH service? [yes|no]. Default [yes]:ENTER

Switch Management
1: Configure in-band Management [interface vlan.XX]
2: Configure out-of-band management [me0.0]
Choose Option [1 or 2], default [1]:1

1: Use VLAN "default" for management
2: Create new VLAN for management
Choose Option [1 or 2], default [1]:1
Enter Management IP address [192.168.1.1]:10.x.x.x
Enter Subnetmask [255.255.255.0]:255.255.0.0
Enter Gateway IP address:10.x.0.1
Configure SNMP [yes|no], default [yes]:ENTER
SNMP Configuration
Contact information for administrator, Enter contact [Optional]:ENTER
Community name, Enter community [Optional]:MiComu
Physical location of system, Enter location [Optional]:Lugar_Donde_estara
Enter System Time and Date YYYY:MM:DD:hh:mm:ss [Optional]:ENTER

The input configuration parameters are

System Hostname:  
SW_Contaduria 
Root password:                 ******
System Telnet Service:         no
System SSH Service:            yes
Management IP Address:         x.x.x.x
SubnetMask:                    255.255.0.0
Gateway IP Address:            10.x.0.1
VLAN for management:           default
VLAN-id for management:
SNMP Community:                MiComu
SNMP Location:                 Contaduria
SNMP Contact:
Time-Date:
Time-zone:
Interfaces:

Commit the new configuration?
Choosing option "yes" will add new configuration to existing configuration.
Option "No" will allow user to come out of EZSetup wizard.

Choose option [yes|no], default [yes]:ENTER
Committing the new configuration, please wait.....


Commit success.
root@:RE:0%



Ahora si queremos podemos ingresar mediante http://ip_del_switch