Los routers Juniper disponen de una GUI para la gestión de dispositivos. Instalaremos esta función en un router JunOS en un laboratorio GNS3 para poder probar esta interfaz web.

Lo instalaré en un router que ejecute JunOS 12.1R1.9. Una vez que tengamos el paquete, recuerde que un router Junos tiene un sistema operativo BSD subyacente, por lo que el paquete será .tgz

Primero tenemos que configurar nuestro servidor TFTP en un ordenador accesible al router. No explicaré como conectar una red GNS3 con nuestra red física ya que es algo que hice anteriormente.

Vamos a conectarnos a nuestro servidor TFTP, recuerda hacerlo fuera de la CLI:

root@JUNOS5% tftp 192.168.66.100

Descargar el paquete JWeb:

tftp> binary  
tftp> status  
Connected to 192.168.66.100.  
Mode: octet Verbose: off Tracing: off  
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds  
tftp> get jweb-12.1R1.9-signed.tgz /var/tmp/jweb-12.1R1.9-signed.tgz  
Received 7770670 bytes in 28.6 seconds  
tftp> quit

Instalar:

root@JUNOS5> request system software add /var/tmp/jweb-12.1R1.9-signed.tgz  
NOTICE: Validating configuration against jweb-12.1R1.9-signed.tgz.  
NOTICE: Use the 'no-validate' option to skip this if desired.  
Checking compatibility with configuration  
Initializing…  
Using jbase-12.1R1.9  
Verified manifest signed by PackageProduction_12_1_0  
Verified jbase-12.1R1.9 signed by PackageProduction_12_1_0  
Using /var/tmp/jweb-12.1R1.9-signed.tgz  
Verified jweb-12.1R1.9.tgz signed by PackageProduction_12_1_0  
Using jweb-12.1R1.9.tgz  
Checking jweb requirements on /  
Available space: 686832 require: 9852  
Verified manifest signed by PackageProduction_12_1_0  
Verified jweb-12.1R1.9 signed by PackageProduction_12_1_0  
Using jruntime-12.1R1.9  
Verified manifest signed by PackageProduction_12_1_0  
Verified jruntime-12.1R1.9 signed by PackageProduction_12_1_0  
Using jkernel-12.1R1.9  
Verified manifest signed by PackageProduction_12_1_0  
Verified jkernel-12.1R1.9 signed by PackageProduction_12_1_0  
Using jroute-12.1R1.9  
Verified manifest signed by PackageProduction_12_1_0  
Verified jroute-12.1R1.9 signed by PackageProduction_12_1_0  
Using jcrypto-12.1R1.9  
Verified manifest signed by PackageProduction_12_1_0  
Verified jcrypto-12.1R1.9 signed by PackageProduction_12_1_0  
Hardware Database regeneration succeeded  
Validating against /config/juniper.conf.gz  
mgd: commit complete  
Validation succeeded  
Installing package '/var/tmp/jweb-12.1R1.9-signed.tgz' …  
Verified jweb-12.1R1.9.tgz signed by PackageProduction_12_1_0  
Adding jweb…  
Available space: 686830 require: 9852  
Mounted jweb package on /dev/md10…  
Verified manifest signed by PackageProduction_12_1_0  
Verified jweb-12.1R1.9 signed by PackageProduction_12_1_0  
Executing /packages/mnt/jweb-12.1R1.9/mount.post..  
Restarting bslockd …  
Reloading /config/juniper.conf.gz …  
Activating /config/juniper.conf.gz …  
mgd: commit complete  
Restarting mgd …  
Saving package file in /var/sw/pkg/jweb-12.1R1.9-signed.tgz …  
Saving state for rollback …

WARNING: cli has been replaced by an updated version:  
CLI release 12.1R1.9 built by builder on 2012-03-24 08:36:49 UTC  
Restart cli using the new version ? [yes,no](yes) yes

Restarting cli …  
root@JUNOS5>  

Se le pedirá que reinicie la CLI, ya que se ha actualizado, no se preocupe con eso. Ahora vamos a habilitar la gestión web:

root@JUNOS5> request system software add /var/tmp/jweb-12.1R1.9-signed.tgz  
 NOTICE: Validating configuration against jweb-12.1R1.9-signed.tgz.  
 NOTICE: Use the 'no-validate' option to skip this if desired.  
 Checking compatibility with configuration  
 Initializing…  
 Using jbase-12.1R1.9  
 Verified manifest signed by PackageProduction_12_1_0  
 Verified jbase-12.1R1.9 signed by PackageProduction_12_1_0  
 Using /var/tmp/jweb-12.1R1.9-signed.tgz  
 Verified jweb-12.1R1.9.tgz signed by PackageProduction_12_1_0  
 Using jweb-12.1R1.9.tgz  
 Checking jweb requirements on /  
 Available space: 686832 require: 9852  
 Verified manifest signed by PackageProduction_12_1_0  
 Verified jweb-12.1R1.9 signed by PackageProduction_12_1_0  
 Using jruntime-12.1R1.9  
 Verified manifest signed by PackageProduction_12_1_0  
 Verified jruntime-12.1R1.9 signed by PackageProduction_12_1_0  
 Using jkernel-12.1R1.9  
 Verified manifest signed by PackageProduction_12_1_0  
 Verified jkernel-12.1R1.9 signed by PackageProduction_12_1_0  
 Using jroute-12.1R1.9  
 Verified manifest signed by PackageProduction_12_1_0  
 Verified jroute-12.1R1.9 signed by PackageProduction_12_1_0  
 Using jcrypto-12.1R1.9  
 Verified manifest signed by PackageProduction_12_1_0  
 Verified jcrypto-12.1R1.9 signed by PackageProduction_12_1_0  
 Hardware Database regeneration succeeded  
 Validating against /config/juniper.conf.gz  
 mgd: commit complete  
 Validation succeeded  
 Installing package '/var/tmp/jweb-12.1R1.9-signed.tgz' …  
 Verified jweb-12.1R1.9.tgz signed by PackageProduction_12_1_0  
 Adding jweb…  
 Available space: 686830 require: 9852  
 Mounted jweb package on /dev/md10…  
 Verified manifest signed by PackageProduction_12_1_0  
 Verified jweb-12.1R1.9 signed by PackageProduction_12_1_0  
 Executing /packages/mnt/jweb-12.1R1.9/mount.post..  
 Restarting bslockd …  
 Reloading /config/juniper.conf.gz …  
 Activating /config/juniper.conf.gz …  
 mgd: commit complete  
 Restarting mgd …  
 Saving package file in /var/sw/pkg/jweb-12.1R1.9-signed.tgz …  
 Saving state for rollback …  
 WARNING: cli has been replaced by an updated version:  
 CLI release 12.1R1.9 built by builder on 2012-03-24 08:36:49 UTC  
 Restart cli using the new version ? [yes,no](yes) yes  
 Restarting cli …  
 root@JUNOS5>  
 It will ask to restart the CLI as it has been upgraded, no worries with
that. Now we will enable the web management:  
 
root@JUNOS5> configure  
 Entering configuration mode  
 [edit]  
 root@JUNOS5# set system services web-management http interface em1.0  
 [edit]  
 root@JUNOS5# commit  
 commit complete  
 [edit]  
 root@JUNOS5#

Ahora podemos entrar con el navegador:

Juniper WDM

De aquí en adelante, estás sólo!

Salud,