Mostrando las entradas con la etiqueta FTP. Mostrar todas las entradas
Mostrando las entradas con la etiqueta FTP. Mostrar todas las entradas

jueves, 2 de septiembre de 2021

Actualizacion Software Junos SRX300 a traves de FTP

Revision de actual version de Software de Router SRX300

SRX300> show version
Hostname: SRX300
Model: srx300
Junos: 17.3R1.10
JUNOS Software Release [17.3R1.10]

Actualizacion de sistema operativo a traves de FTP de una red externa.

SRX300> ftp 192.168.199.9 source 10.10.100.1
Connected to 192.168.199.9.
220-FileZilla Server 0.9.60 beta
220-written by Tim Kosse (tim.kosse@filezilla-project.org)
220 Please visit https://filezilla-project.org/
Name (192.168.199.9): guliano
331 Password required for guliano
Password:
230 Logged on
Remote system type is UNIX.

ftp> lcd /var/tmp/
Local directory now /cf/var/tmp
ftp> bin
200 Type set to I

ftp> get junos-srxsme-18.1R1.9.tgz
local: junos-srxsme-18.1R1.9.tgz remote: junos-srxsme-18.1R1.9.tgz
200 Port command successful
150 Opening data channel for file download from server of "/junos-srxsme-18.1R1.9.tgz"
100% |***********************************************************************************************************|   307 MB    00:00 ETA
226 Successfully transferred "/junos-srxsme-18.1R1.9.tgz"
322693516 bytes received in 149.89 seconds (2.05 MB/s)

ftp>
ftp> bye
SRX300>

Validacion de nuevo Sistema Operativo

SRX300> request system software add no-copy /var/tmp/junos-srxsme-18.1R1.9.tgz
NOTICE: Validating configuration against junos-srxsme-18.1R1.9.tgz.
NOTICE: Use the 'no-validate' option to skip this if desired.
Formatting alternate root (/dev/da0s1a)...
/dev/da0s1a: 2510.1MB (5140780 sectors) block size 16384, fragment size 2048
        using 14 cylinder groups of 183.62MB, 11752 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
 32, 376096, 752160, 1128224, 1504288, 1880352, 2256416, 2632480, 3008544,
 3384608, 3760672, 4136736, 4512800, 4888864
Checking compatibility with configuration
Initializing...
cp: /var/etc/extensions.allow: No such file or directory
cp: /var/db/certs/common/local/*: No such file or directory
cp: /var/db/certs/common/key-pair/*: No such file or directory
Using junos-18.1R1.9 from /altroot/cf/packages/install-tmp/junos-18.1R1.9
Copying package ...
mkdir: /cf/var/validate/c/tmp: No such file or directory
mount_nullfs: /cf/var/validate/c/tmp: No such file or directory
cd: can't cd to /cf/var/validate/c/tmp/junos
/usr/libexec/ui/validate-config: cannot create /cf/var/validate/c/tmp/junos/+INSTALL.x: No such file or directory
chroot: /bin/sh: No such file or directory
ERROR: validate-config: /cf/var/validate/c/tmp/junos/+INSTALL fails
ERROR: Configuration validation failed with /altroot/cf/packages/install-tmp/junos-18.1R1.9

Si el reporte de la configuracion no opera con el nuevo sistema operativo, se puede  realizar el bypass con la opcion "no-validate option".

SRX300> request system software add no-copy no-validate /var/tmp/junos-srxsme-18.1R1.9.tgz
Formatting alternate root (/dev/da0s1a)...
/dev/da0s1a: 2510.1MB (5140780 sectors) block size 16384, fragment size 2048
        using 14 cylinder groups of 183.62MB, 11752 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
 32, 376096, 752160, 1128224, 1504288, 1880352, 2256416, 2632480, 3008544,
 3384608, 3760672, 4136736, 4512800, 4888864
Installing package '/altroot/cf/packages/install-tmp/junos-18.1R1.9' ...
Verified junos-boot-srxsme-18.1R1.9.tgz signed by PackageProductionEc_2018 method ECDSA256+SHA256
Verified junos-srxsme-18.1R1.9-domestic signed by PackageProductionEc_2018 method ECDSA256+SHA256
JUNOS 18.1R1.9 will become active at next reboot
WARNING: A reboot is required to load this software correctly
WARNING:     Use the 'request system reboot' command
WARNING:         when software installation is complete
Saving state for rollback ...

Validacion de Sistema Operativo instalado.

SRX300> start shell
% ls -al /var/tmp/

-rw-r--r--   1 2000  wheel  295871546 Oct  4  2017 junos-srxsme-17.3R1.10.tgz
-rw-r--r--   1 nec   wheel  322693516 Sep  1 20:23 junos-srxsme-18.1R1.9.tgz

Reiniciar el Equipo Router

SRX300> request system reboot
Reboot the system ? [yes,no] (no) yes
Shutdown NOW!
[pid 75925]

SRX300>
*** FINAL System shutdown message from SRX300 ***
System going down IMMEDIATELY

Validacion final

login: 
Password:
--- JUNOS 18.1R1.9 built 2018-03-23 20:34:24 UTC

SRX300>
SRX300>show version
Hostname: SRX300
Model: srx300
Junos: 18.1R1.9
JUNOS Software Release [18.1R1.9]


miércoles, 28 de abril de 2021

Cargar IOS Cisco a traves de FTP utilizando VRF

Cuando copiamos la IOS de un router utilizando VRF, debemos utilizar la interface fuente correspondiente a la VRF a utilizar, ademas el nombre y la password debe ser especificada.

Ejemplo en un equipo Cisco9500


C9500#show run interf vlan 9

!
interface Vlan9
 description Red Internet
 ip vrf forwarding Internet
 ip address 2.2.2.2 255.255.255.240
end


C9500#configure terminal
C9500(config)#ip ftp source-interface Vlan9
C9500(config)#ip ftp username Gfuentes
C9500(config)#ip ftp password C1sC0$

C9500#
C9500#copy ftp: flash:
Address or name of remote host []? 1.1.1.1    /* IP ADD del servidor FTP /*
Source filename []? cat9k_iosxe.17.03.03.SPA.bin
Destination filename [cat9k_iosxe.17.03.03.SPA.bin]?
Accessing ftp://200.68.6.62/cat9k_iosxe.17.03.03.SPA.bin...
Loading cat9k_iosxe.17.03.03.SPA.bin !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 901741775/4096 bytes]

901741775 bytes copied in 654.829 secs (1377065 bytes/sec)
C9500#

Validar la correcta instalacion de la nueva IOS

C9500#verify flash:cat9k_iosxe.17.03.03.SPA.bin
Verifying file integrity of flash:cat9k_iosxe.17.03.03.SPA.bin...........................................................................................................................................................................................................................................................................................................................................................................
Embedded Hash   SHA1 : 86144E8D88FE3DC09924989F6D54614CD760F70A
Computed Hash   SHA1 : 86144E8D88FE3DC09924989F6D54614CD760F70A
Starting image verification
Hash Computation:    100%Done!
Computed Hash   SHA2: d86bccd824544cac29ae634be6e4d394
                      a05a0d9cdd7d9d0b569cfa4083a5394d
                      3ceca89a6562b2f4c91814066314b0f3
                      d96f36e07c44ab35433e7a8286f61d69

Embedded Hash   SHA2: d86bccd824544cac29ae634be6e4d394
                      a05a0d9cdd7d9d0b569cfa4083a5394d
                      3ceca89a6562b2f4c91814066314b0f3
                      d96f36e07c44ab35433e7a8286f61d69

Digital signature successfully verified in file flash:cat9k_iosxe.17.03.03.SPA.bin
 

Instalación de modulo PoE ISR-1100-POE4 en Router Cisco series 1100

  El documento detalla la habilitación del servicio PoE (Power over Ethernet) en equipo Router Cisco C1111-4PWA, permitiendo la alimentación...