Que tal gente para actualizar el firmware del juniper debido a algun brick o otro motivo por tftp hay que hacer lo siguiente.
Primero antes que nada tienen que tener instalado un servidor tftp (que no les voy a decir como se hace), y tienen que tener el firmware (en este caso un ex200).
bue… a comenzar
al iniciar el equipo te da la opcion de precionar espacio para poder entrar en el loader, una vez que estemos en el loader configuramos la ip del switch y del tftp-server
set ipaddr=192.168.100.2
set netmask=255.255.255.0
set serverip=192.168.100.1
despues conectamos un cable de red entre el puerto de management y nuestro servidor tftp, y comenzamos a instalar
install tftp://192.168.100.1/jinstall-ex-2200-10.4R5.5-domestic-signed.tgz
listo… dejar que suceda lo que tiene que suceder he’i y listo, ya les va a actualizar
bueno…
debido a que esto es el blog de mi6uel y no el blog de linux jejejeje voy a tener que moverme un chiqui e irme hacia otra parte que me gusta… el networking
laburo nuevo hardarware y software nuevo (por suerte lo que mas tocamos es juniper y esta basado por lo menos en freebsd jajaja)…
Hoy comienzo con un cambio de firmware de un switch juniper ex2200, este cambio creo que aplica a cualquier juniper que tengamos, debemos conseguir el firmware que querramos instalar, no les voy a decir como conseguir jejeje.
en inet hay muchos, bueno… yo bajo el firmware de la pagina juniper.net en este caso baje el firware jinstall-ex-2200-10.4R4.5-domestic-signed.tgz
Para actualizar primero debemos (no les voy a explicar tampoco como “todavia”) tener todo configurado nuestro switch (o sea tiene que tener ip) para poder copiar con scp (desde un linux).
scp jinstall-ex-2200-10.4R4.5-domestic-signed.tgz user@ip:/tmp/
el user@ip es el usuario y la ip de la maquina ehhhhh por ejemplo: scp jinstall-ex-2200-10.4R4.5-domestic-signed.tgz 192.168.1.1:/tmp/
con ese comando ya tenes copiado el firmware dentro de la carpeta /tmp de nuestro juniper
bue… una ves que tenemos copiado el archivo le damos el comando para comenzar a actualizar
Amnesiac (ttyu0)
login: root
Password:
--- JUNOS 10.4R1.9 built 2010-12-04 09:19:51 UTC
root@:RE:0% cli
root> show version
Model: ex2200-24p-4g
JUNOS Base OS boot [10.4R1.9]
JUNOS Base OS Software Suite [10.4R1.9]
JUNOS Kernel Software Suite [10.4R1.9]
JUNOS Crypto Software Suite [10.4R1.9]
JUNOS Online Documentation [10.4R1.9]
JUNOS Enterprise Software Suite [10.4R1.9]
JUNOS Packet Forwarding Engine Enterprise Software Suite [10.4R1.9]
JUNOS Routing Software Suite [10.4R1.9]
JUNOS Web Management [10.4R1.9]
esa es la version anterior ahora vamos a comenzar a actualizar
root> request system software add /tmp/jinstall-ex-2200-10.4R4.5-domestic-signed.tgz
WARNING: A reboot is required to install the software
WARNING: Use the 'request system reboot' command immediately
> request system reboot
Reboot the system ? [yes,no] (no) yes
contestamos yes y ahi comienza a reiniciar y a actualizar nuestro Junos
Shutdown NOW!
[pid 2120]
root>
*** FINAL System shutdown message from root@ ***
System going down IMMEDIATELY
DWaiting (max 300 seconds) for system process `vnlru' to stop...done
Waiting (max 300 seconds) for system process `vnlru_mem' to stop...done
Waiting (max 300 seconds) for system process `bufdaemon' to stop...done
Waiting (max 300 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining...3 3 1 1 1 0 0 0 done
syncing disks... All buffers synced.
Uptime: 11m58s
Rebooting...
U-Boot 1.1.6 (Nov 22 2009 - 07:01:21)
Board: EX2200-24P-4G 4.15
EPLD: Version 04.100311 (0x02)
DRAM: Initializing (512MB)
Flash: 8 MB
USB: scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
ELF file is 32 bit
Consoles: U-Boot console
FreeBSD/arm U-Boot loader, Revision 1.0
(marcelm@svl-junos-pool57.juniper.net, Wed Nov 18 14:02:39 PST 2009)
Memory: 512MB
Package /incoming-package.tgz is signed...
/kernel data=0x453684+0x51078 syms=[0x4+0x874a0+0x4+0x757f6]
Kernel entry at 0x1400100 ...
GDB: debug ports: uart
GDB: current port: uart
KDB: debugger backends: ddb gdb
KDB: current backend: ddb
Copyright (c) 1996-2011, Juniper Networks, Inc.
All rights reserved.
Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
JUNOS 10.4R4.5 #0: 2011-05-06 04:26:49 UTC
builder@warth.juniper.net:/volume/build/junos/10.4/release/10.4R4.5/obj-arm/bsd/sys/compile/INSTALL-EX
CPU: Feroceon 88FR131 rev 1 (Marvell core)
WB enabled EABT branch prediction enabled
16KB/32B 4-way Instruction cache
16KB/32B 4-way write-back-locking-C Data cache
real memory = 536870912 (512 MB)
avail memory = 503566336 (480 MB)
SOC: Marvell 88F6281 rev A0, TClock 200MHz
Initializing EXSERIES platform properties ...
mbus0: <marvell Internal Bus (Mbus)> on motherboard
ic0: </marvell><marvell Integrated Interrupt Controller> at mem 0xf1020200-0xf102023b on mbus0
timer0: </marvell><marvell CPU Timer> at mem 0xf1020300-0xf102032f irq 1 on mbus0
gpio0: </marvell><marvell Integrated GPIO Controller> at mem 0xf1010100-0xf101011f irq 35,36,37,38,39,40,41 on mbus0
uart0: <16550 or compatible> at mem 0xf1012000-0xf101201f irq 33 on mbus0
uart0: console (9600,n,8,1)
ehci0: <88F5XXX Integrated USB 2.0 controller> at mem 0xf1050000-0xf1050fff irq 48,19 on mbus0
usb0: EHCI version 1.0
usb0 on ehci0
usb0: USB revision 2.0
uhub0: Marvell EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub0: 1 port with 1 removable, self powered
uhub1: vendor 0x04cc product 0x1520, class 9/0, rev 2.00/2.00, addr 2
uhub1: single transaction translator
uhub1: 2 ports with 2 removable, self powered
umass0: STMicroelectronics ST72682 High Speed Mode, rev 2.00/2.10, addr 3
mge0: </marvell><marvell Gigabit Ethernet controller> at mem 0xf1072000-0xf1073fff irq 12,13,14,11,46 on mbus0
mge0: hardware MAC address 5c:5e:ab:77:e3:ff
miibus0: <mii bus> on mge0
e1000phy0: <marvell 88E1118 Gigabit PHY> on miibus0
e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
i2c0: <i2c ARM 6281 OnChip i2c Controller> at mem 0xf1011000-0xf101101f irq 29 on mbus0
8564 rtc0: <8564 RTC> on i2c0
cfi0: <spi flash - 8MB> at mem 0xf1010600-0xf101062f,0xf8000000-0xf87fffff irq 23 on mbus0
pcib0: <marvell 88F6281 PCI-Express host controller> at mem 0xf1040000-0xf1041fff,0xe8000000-0xefffffff irq 9 on mbus0
pci0: <pci bus> on pcib0
Initializing product: 76 ..
Timecounter "CPU Timer" frequency 200000000 Hz quality 1000
Timecounters tick every 10.000 msec
md0: Preloaded image 9508864 bytes at 0xc19a139c
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <st ST72682 2.10> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 1000MB (2048000 512 byte sectors: 64H 32S/T 1000C)
Trying to mount root from cd9660:/dev/md0
Invalid time in real time clock.
Check and reset the date immediately!
1+0 records in
1+0 records out
512 bytes transferred in 0.001376 secs (372116 bytes/sec)
Disk needs to be formatted in order to proceed
Saving the configuration in memory before formatting the disk
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 102980 free (28 frags, 12869 blocks, 0.0% fragmentation)
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 28295 free (31 frags, 3533 blocks, 0.1% fragmentation)
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 102980 free (28 frags, 12869 blocks, 0.0% fragmentation)
Formatting installation disk...
32+0 records in
32+0 records out
16384 bytes transferred in 0.035813 secs (457486 bytes/sec)
******* Working on device /dev/da0 *******
fdisk: invalid fdisk partition table found
fdisk: Geom not found
32+0 records in
32+0 records out
16384 bytes transferred in 0.037240 secs (439957 bytes/sec)
32+0 records in
32+0 records out
16384 bytes transferred in 0.185321 secs (88409 bytes/sec)
32+0 records in
32+0 records out
16384 bytes transferred in 0.183797 secs (89142 bytes/sec)
32+0 records in
32+0 records out
16384 bytes transferred in 0.189307 secs (86547 bytes/sec)
/dev/da0s3d: 375.0MB (767984 sectors) block size 16384, fragment size 2048
using 4 cylinder groups of 93.75MB, 6000 blks, 12032 inodes.
super-block backups (for fsck -b #) at:
32, 192032, 384032, 576032
/dev/da0s3e: 125.0MB (256008 sectors) block size 16384, fragment size 2048
using 4 cylinder groups of 31.27MB, 2001 blks, 4096 inodes.
super-block backups (for fsck -b #) at:
32, 64064, 128096, 192128
/dev/da0s4d: 63.0MB (129012 sectors) block size 16384, fragment size 2048
using 4 cylinder groups of 15.75MB, 1008 blks, 2048 inodes.
with soft updates
super-block backups (for fsck -b #) at:
32, 32288, 64544, 96800
/dev/da0s1a: 186.9MB (382700 sectors) block size 16384, fragment size 2048
using 4 cylinder groups of 46.72MB, 2990 blks, 6016 inodes.
with soft updates
super-block backups (for fsck -b #) at:
32, 95712, 191392, 287072
Restoring configuration
Installing disk0s3d:/incoming-package.tgz
date: connect: Can't assign requested address
Checking package integrity...
Verified SHA1 checksum of jbase-ex-10.4R4.5.tgz
Verified SHA1 checksum of jboot-ex-10.4R4.5.tgz
Verified SHA1 checksum of jcrypto-ex-10.4R4.5.tgz
Verified SHA1 checksum of jdocs-ex-10.4R4.5.tgz
Verified SHA1 checksum of jkernel-ex-10.4R4.5.tgz
Verified SHA1 checksum of jpfe-ex42x-10.4R4.5.tgz
Verified SHA1 checksum of jroute-ex-10.4R4.5.tgz
Verified SHA1 checksum of jswitch-ex-10.4R4.5.tgz
Verified SHA1 checksum of jweb-ex-10.4R4.5.tgz
Running requirements check first for jbundle-ex-2200-10.4R4.5-domestic...
Running pre-install for jbundle-ex-2200-10.4R4.5-domestic...
Installing jbundle-ex-2200-10.4R4.5-domestic in /tmp/pa2463.02/jbundle-ex-2200-10.4R4.5-domestic.x2463...
Running post-install for jbundle-ex-2200-10.4R4.5-domestic...
Adding jkernel-ex...
Adding jcrypto-ex...
Adding jdocs-ex...
Adding jswitch-ex...
Adding jpfe-ex42x...
Adding jroute-ex...
Adding jweb-ex...
Initializing the alternate root slice...
/dev/da0s2a: 186.9MB (382700 sectors) block size 16384, fragment size 2048
using 4 cylinder groups of 46.72MB, 2990 blks, 6016 inodes.
with soft updates
super-block backups (for fsck -b #) at:
32, 95712, 191392, 287072
Rebooting to complete the installation. Please wait...
Waiting (max 300 seconds) for system process `vnlru' to stop...done
Waiting (max 300 seconds) for system process `vnlru_mem' to stop...done
Waiting (max 300 seconds) for system process `bufdaemon' to stop...done
Waiting (max 300 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining...12 1 0 done
syncing disks... All buffers synced.
Uptime: 15m59s
Rebooting...
U-Boot 1.1.6 (Nov 22 2009 - 07:01:21)
Board: EX2200-24P-4G 4.15
EPLD: Version 04.100311 (0x02)
DRAM: Initializing (512MB)
Flash: 8 MB
USB: scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
ELF file is 32 bit
Consoles: U-Boot console
FreeBSD/arm U-Boot loader, Revision 1.0
(marcelm@svl-junos-pool57.juniper.net, Wed Nov 18 14:02:39 PST 2009)
Memory: 512MB
Loading /boot/defaults/loader.conf
/kernel data=0x741d80+0x8bf04 syms=[0x4+0xd0230+0x4+0xa6803]
Hit [Enter] to boot immediately, or space bar for command prompt.
Booting [/kernel]...
Kernel entry at 0x1400100 ...
GDB: debug ports: uart
GDB: current port: uart
KDB: debugger backends: ddb gdb
KDB: current backend: ddb
Copyright (c) 1996-2011, Juniper Networks, Inc.
All rights reserved.
Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
JUNOS 10.4R4.5 #0: 2011-05-06 05:02:10 UTC
builder@warth.juniper.net:/volume/build/junos/10.4/release/10.4R4.5/obj-arm/bsd/sys/compile/JUNIPER-EX
CPU: Feroceon 88FR131 rev 1 (Marvell core)
WB enabled EABT branch prediction enabled
16KB/32B 4-way Instruction cache
16KB/32B 4-way write-back-locking-C Data cache
real memory = 536870912 (512 MB)
avail memory = 509304832 (485 MB)
SOC: Marvell 88F6281 rev A0, TClock 200MHz
ETHERNET SOCKET BRIDGE initialising
Initializing EXSERIES platform properties ...
mbus0: <marvell Internal Bus (Mbus)> on motherboard
ic0: </marvell><marvell Integrated Interrupt Controller> at mem 0xf1020200-0xf102023b on mbus0
timer0: </marvell><marvell CPU Timer> at mem 0xf1020300-0xf102032f irq 1 on mbus0
gpio0: </marvell><marvell Integrated GPIO Controller> at mem 0xf1010100-0xf101011f irq 35,36,37,38,39,40,41 on mbus0
uart0: <16550 or compatible> at mem 0xf1012000-0xf101201f irq 33 on mbus0
uart0: console (9600,n,8,1)
ehci0: <88F5XXX Integrated USB 2.0 controller> at mem 0xf1050000-0xf1050fff irq 48,19 on mbus0
usb0: EHCI version 1.0
usb0 on ehci0
usb0: USB revision 2.0
uhub0: Marvell EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub0: 1 port with 1 removable, self powered
uhub1: vendor 0x04cc product 0x1520, class 9/0, rev 2.00/2.00, addr 2
uhub1: single transaction translator
uhub1: 2 ports with 2 removable, self powered
umass0: STMicroelectronics ST72682 High Speed Mode, rev 2.00/2.10, addr 3
mge0: </marvell><marvell Gigabit Ethernet controller> at mem 0xf1072000-0xf1073fff irq 12,13,14,11,46 on mbus0
mge0: hardware MAC address 5c:5e:ab:77:e3:ff
miibus0: <mii bus> on mge0
e1000phy0: <marvell 88E1118 Gigabit PHY> on miibus0
e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
i2c0: <i2c ARM 6281 OnChip i2c Controller> at mem 0xf1011000-0xf101101f irq 29 on mbus0
8564 rtc0: <8564 RTC> on i2c0
cfi0: <spi flash - 8MB> at mem 0xf1010600-0xf101062f,0xf8000000-0xf87fffff irq 23 on mbus0
mpfe0: <juniper EX-series Packet Forwarding Engine> at mem 0xf4000000-0xf7ffffff irq 113 on mbus0
pcib0: <marvell 88F6281 PCI-Express host controller> at mem 0xf1040000-0xf1041fff,0xe8000000-0xefffffff irq 9 on mbus0
pci0: <pci bus> on pcib0
Initializing product: 76 ..
bmeb: bmeb_lib_init done 0xc31c2000, addr 0xc1bc8418
bme0:Virtual BME driver initializing
Timecounter "CPU Timer" frequency 200000000 Hz quality 1000
Timecounters tick every 1.000 msec
Loading the NETPFE picpeer module
IPsec: Initialized Security Association Processing.
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <st ST72682 2.10> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 1000MB (2048000 512 byte sectors: 64H 32S/T 1000C)
Trying to mount root from ufs:/dev/da0s1a
Attaching /packages/jbase via /dev/mdctl...
Mounted jbase package on /dev/md0...
Verified manifest signed by PackageProduction_10_4_0
Verified jboot signed by PackageProduction_10_4_0
Verified jbase-10.4R4.5 signed by PackageProduction_10_4_0
Mounted jcrypto-ex package on /dev/md1...
Verified manifest signed by PackageProduction_10_4_0
Verified jcrypto-ex-10.4R4.5 signed by PackageProduction_10_4_0
Mounted jdocs-ex package on /dev/md2...
Verified manifest signed by PackageProduction_10_4_0
Verified jdocs-ex-10.4R4.5 signed by PackageProduction_10_4_0
Mounted jkernel-ex package on /dev/md3...
Verified manifest signed by PackageProduction_10_4_0
Verified jkernel-ex-10.4R4.5 signed by PackageProduction_10_4_0
Mounted jpfe-ex42x package on /dev/md4...
Verified manifest signed by PackageProduction_10_4_0
Verified jpfe-ex42x-10.4R4.5 signed by PackageProduction_10_4_0
Mounted jroute-ex package on /dev/md5...
Verified manifest signed by PackageProduction_10_4_0
Verified jroute-ex-10.4R4.5 signed by PackageProduction_10_4_0
Mounted jswitch-ex package on /dev/md6...
Verified manifest signed by PackageProduction_10_4_0
Verified jswitch-ex-10.4R4.5 signed by PackageProduction_10_4_0
Mounted jweb-ex package on /dev/md7...
Verified manifest signed by PackageProduction_10_4_0
Verified jweb-ex-10.4R4.5 signed by PackageProduction_10_4_0
Executing /packages/mnt/jweb-ex-10.4R4.5/mount.post..
Automatic reboot in progress...
** /dev/da0s1a
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 30084 free (20 frags, 3758 blocks, 0.0% fragmentation)
** /dev/da0s3e
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 62844 free (20 frags, 7853 blocks, 0.0% fragmentation)
savecore: could not be determined
No dump exists
** /dev/da0s3d
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 188913 free (25 frags, 23611 blocks, 0.0% fragmentation)
** /dev/da0s4d
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 31636 free (20 frags, 3952 blocks, 0.1% fragmentation)
ln: /var/db/commits: File exists
Creating initial configuration...mgd: commit complete
Setting initial options: debugger_on_panic=NO debugger_on_break=NO.
Starting optional daemons: .
Doing initial network setup:
.
Initial interface configuration:
additional daemons:.
Additional routing options:kern.module_path: /boot//kernel;/boot/modules -> /boot//kernel;/boot/modules;/modules
grat_arp_on_ifup=YES: neLoading the NETPFE ethernet module
t.link.ether.inet.grat_arp_on_ifup: 1 -> 1
kld netpfe drv: ifpfed_eth ifpfed_mlLoading common multilink module.
_cmnkld platform: ex_ifpfeLoading the EX-series platform NETPFE module
if_vcpkern.module_path: /boot//kernel;/boot/modules;/modules -> /boot//kernel;/boot/modules;/modules;/modules/peertype
kld peertype: peertype_hcm peertype_pfem peertype_sfi peertype_slavere ipsec kld.
Doing additional network setup:.
Starting final network daemons:.
setting ldconfig path: /usr/lib /opt/lib
starting standard daemons: cron.
Local package initialization:.
kern.securelevel: -1 -> 1
starting local daemons:.
Fri May 6 07:05:19 UTC 2011
Boot media /dev/da0 has dual root support
** /dev/da0s2a
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 30084 free (20 frags, 3758 blocks, 0.0% fragmentation)
rm: ./mnt/jroute-ex-10.4R4.5/usr/sbin/mgd.last: Read-only file system
Amnesiac (ttyu0)
--- JUNOS 10.4R4.5 built 2011-05-06 05:02:10 UTC
root@:RE:0% cli
root> show version
Model: ex2200-24p-4g
JUNOS Base OS boot [10.4R4.5]
JUNOS Base OS Software Suite [10.4R4.5]
JUNOS Kernel Software Suite [10.4R4.5]
JUNOS Crypto Software Suite [10.4R4.5]
JUNOS Online Documentation [10.4R4.5]
JUNOS Enterprise Software Suite [10.4R4.5]
JUNOS Packet Forwarding Engine Enterprise Software Suite [10.4R4.5]
JUNOS Routing Software Suite [10.4R4.5]
JUNOS Web Management [10.4R4.5]
en fin los comandos que usamos son:
scp jinstall-ex-2200-10.4R4.5-domestic-signed.tgz user@ip:/tmp/
cli
request system software add /tmp/jinstall-ex-2200-10.4R4.5-domestic-signed.tgz
request system reboot