Juniper 交换机通过CLI方式版本升级实例
为了更好的帮助大家学习juniper
深圳CISCO代理商 思科代理商 深圳Ruckus优科代理商 深圳华为代理商 watchguard代理商 juniper代理商 临同信息 与您 分享Juniper 交换机通过CLI方式版本升级实例
Juniper ex4200交换机通过CLI方式版本升级实例
以4200升级到10.4.r1.9为例
升级文件:jinstall-ex-4200-10.4R1.9-domestic-signed.tgz
升级前版本9.0.r2.10
step1:登陆设备
Step2:设置根密码
Step3:配置一个VLAN及将接口加入VLAN,以便通过FTP将文件COPY进交换机
set vlans vlan0 vlan-id 0
set vlans vlan0 interface ge-0/0/22.0
set vlans vlan0 l3-interface vlan.0
set interfaces vlan unit 0 family inetaddress 192.168.0.1/24
commit
然后把电脑的IP设为192.168.0.0/24网段的任意地址,并运行3cdaemon软件,配置FTP并启动FTP服务器,如下:
使用以下命令将文件COPY到交换机上
admin> file copy
ftp://username:password@ftp.hostname.net/filename
/var/tmp/filename
安装新的JUNOS软件:
user@host> request system software add source reboot
其中source参数为通过上一步骤保存在系统中的文件,
如:/var/tmp/jinstall-ex-4200-10.4R1.9-domestic-signed.tgz
最后可以去喝杯茶回来就升级成功了
以下是COSOLE口显示的升级日志:
Rebooting...
U-Boot 1.1.6 (Feb 6 2008 - 11:27:42)
Board: EX4200-24T 2.11
EPLD: Version 6.0 (0x85)
DRAM: Initializing (1024 MB)
FLASH: 8 MB
USB: scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Consoles: U-Boot console
Found compatible API, ver. 7
FreeBSD/PowerPC U-Boot bootstrap loader,Revision 2.1
(marcelm@apg-bbuild01.juniper.net, WedFeb 6 11:23:55 PST 2008)
Memory: 1024MB
Package/jinstall-ex-4200-10.4R1.9-domestic-signed.tgz is signed...
/kernel data=0x54c7c8+0x56198syms=[0x4+0x52ae0+0x4+0x78366]
Kernel entry at 0x800000e0 ...
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1996-2010, Juniper Networks,Inc.
All rights reserved.
Copyright (c) 1992-2006 The FreeBSDProject.
Copyright (c) 1979, 1980, 1983, 1986, 1988,1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
JUNOS 10.4R1.9 #0: 2010-12-04 09:51:02 UTC
builder@warth.juniper.net:/volume/build/junos/10.4/release/10.4R1.9/obj-powerpc/bsd/sys/compile/INSTALL-EX
Timecounter "decrementer"frequency 50000000 Hz quality 0
cpu0: Freescale e500v2 core revision 2.2
cpu0: HID080004080<EMCP,TBEN,EN_MAS7_update>
real memory = 1043333120 (995 MB)
avail memory = 1021054976 (973 MB)
Initializing EXSERIES platform properties...
nexus0: <PPC e500 Nexus device>
ocpbus0: <on-chip peripheral bus> onnexus0
openpic0: <OpenPIC in on-chip peripheralbus> iomem 0xfef40000-0xfef600b3 on ocpbus0
memctl0: <mpc85xx memory errorreporting> iomem 0xfef20000-0xfef20e5b,0xfef02000-0xfef02e5b irq 32,34 onocpbus0
i2c0: <MPC85XX OnChip i2c Controller>iomem 0xfef03000-0xfef03014 irq 59 on ocpbus0
i2c1: <MPC85XX OnChip i2c Controller>iomem 0xfef03100-0xfef03114 irq 59 on ocpbus0
uart0: <16550 or compatible> iomem0xfef04500-0xfef0450f irq 58 on ocpbus0
uart0: console (9600,n,8,1)
uart1: <16550 or compatible> iomem0xfef04600-0xfef0460f irq 58 on ocpbus0
lbc0: <Freescale 8533 Local BusController> iomem 0xfef05000-0xfef05fff,0xff000000-0xffffffff irq 22 onocpbus0
cfi0: <AMD/Fujitsu - 8MB> iomem0xff800000-0xffffffff on lbc0
syspld0 iomem 0xff000000-0xff00ffff on lbc0
tsec0: <eTSEC ethernet controller>iomem 0xfef24000-0xfef24fff irq 45,46,50 on ocpbus0
tsec0: hardware MAC address00:21:59:c9:62:3f
miibus0: <MII bus> on tsec0
e1000phy0: <Marvell 88E1112 GigabitPHY> on miibus0
e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
pcib0: <Freescale MPC8544 PCI host controller>iomem 0xfef08000-0xfef08fff,0xf0000000-0xf3ffffff on ocpbus0
pci0: <PCI bus> on pcib0
ohci0: <OHCI (generic) USBcontroller> mem 0xf0000000-0xf0000fff irq 22 at device 18.0 on pci0
usb0: OHCI version 1.0
usb0: <OHCI (generic) USB controller>on ohci0
usb0: USB revision 1.0
uhub0: (0x1131) OHCI root hub, class 9/0,rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, selfpowered
ehci0: <Philips ISP156x USB 2.0controller> mem 0xf0001000-0xf00010ff irq 22 at device 18.2 on pci0
usb1: EHCI version 1.0
usb1: companion controller, 2 ports each:usb0
usb1: <Philips ISP156x USB 2.0controller> on ehci0
usb1: USB revision 2.0
uhub1: Philips EHCI root hub, class 9/0,rev 2.00/1.00, addr 1
uhub1: 2 ports with 2 removable, selfpowered
umass0: STMicroelectronics ST72682 High Speed Mode, rev 2.00/2.10, addr 2
pcib1: <Freescale MPC8544 PCI Expresshost controller> iomem0xfef0a000-0xfef0afff,0xe0000000-0xe3ffffff,0xec000000-0xec0fffff irq 42 onocpbus0
pci1: <PCI bus> on pcib1
pcib2: <PCI-PCI bridge> at device 0.0on pci1
pci2: <PCI bus> on pcib2
pci2: <memory> at device 0.0 (nodriver attached)
pcib3: <Freescale MPC8544 PCI Expresshost controller> iomem0xfef0b000-0xfef0bfff,0xe8000000-0xebffffff,0xec200000-0xec2fffff irq 43 onocpbus0
pci3: <PCI bus> on pcib3
pcib4: <PCI-PCI bridge> at device 0.0on pci3
pci4: <PCI bus> on pcib4
pci4: <memory> at device 0.0 (nodriver attached)
Initializing product: 41 ..
Timecounters tick every 10.000 msec
md0: Preloaded image</isofs-install-ex> 11022336 bytes at 0x8066d7b0
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <ST ST72682 2.10> RemovableDirect Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 1000MB (2048000 512 byte sectors: 64H32S/T 1000C)
Trying to mount root from cd9660:/dev/md0
1+0 records in
1+0 records out
512 bytes transferred in 0.000489 secs(1047042 bytes/sec)
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 99436 free (28 frags, 12426 blocks,0.0% fragmentation)
tunefs: soft updates remains unchanged asdisabled
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 28296 free (16 frags, 3535 blocks,0.1% fragmentation)
/dev/da0s2a: 187.2MB (383352 sectors) blocksize 16384, fragment size 2048
using 4 cylinder groups of 46.80MB, 2995 blks, 6016 inodes.
with soft updates
super-block backups (for fsck -b #) at:
32,95872, 191712, 287552
/dev/da0s2f: 124.8MB (255584 sectors) blocksize 16384, fragment size 2048
using 4 cylinder groups of 31.20MB, 1997 blks, 4096 inodes.
with soft updates
super-block backups (for fsck -b #) at:
32,63936, 127840, 191744
Installingdisk0s3d:/jinstall-ex-4200-10.4R1.9-domestic-signed.tgz
date: connect: Can't assign requestedaddress
Checking package integrity...
Verified SHA1 checksum ofjbase-ex-10.4R1.9.tgz
Verified SHA1 checksum of jboot-ex-10.4R1.9.tgz
Verified SHA1 checksum ofjcrypto-ex-10.4R1.9.tgz
Verified SHA1 checksum ofjdocs-ex-10.4R1.9.tgz
Verified SHA1 checksum ofjkernel-ex-10.4R1.9.tgz
Verified SHA1 checksum ofjpfe-ex42x-10.4R1.9.tgz
Verified SHA1 checksum of jroute-ex-10.4R1.9.tgz
Verified SHA1 checksum ofjswitch-ex-10.4R1.9.tgz
Verified SHA1 checksum ofjweb-ex-10.4R1.9.tgz
Running requirements check first forjbundle-ex-4200-10.4R1.9-domestic...
Running pre-install forjbundle-ex-4200-10.4R1.9-domestic...
Installing jbundle-ex-4200-10.4R1.9-domesticin /tmp/pa2415.26/jbundle-ex-4200-10.4R1.9-domestic.x2415...
Running post-install forjbundle-ex-4200-10.4R1.9-domestic...
Adding jkernel-ex...
Adding jcrypto-ex...
Adding jdocs-ex...
Adding jswitch-ex...
Adding jpfe-ex42x...
Adding jroute-ex...
Adding jweb-ex...
Rebooting to complete the installation.Please wait...
Waiting (max 300 seconds) for systemprocess `vnlru' to stop...done
Waiting (max 300 seconds) for systemprocess `vnlru_mem' to stop...done
Waiting (max 300 seconds) for systemprocess `bufdaemon' to stop...done
Waiting (max 300 seconds) for systemprocess `syncer' to stop...
Syncing disks, vnodes remaining...0 0 0 0 00 0 0 0 done
syncing disks... All buffers synced.
Uptime: 3m22s
Rebooting...
U-Boot 1.1.6 (Feb 6 2008 - 11:27:42)
Board: EX4200-24T 2.11
EPLD: Version 6.0 (0x85)
DRAM: Initializing (1024 MB)
FLASH: 8 MB
USB: scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Consoles: U-Boot console
Found compatible API, ver. 7
FreeBSD/PowerPC U-Boot bootstrap loader,Revision 2.1
(marcelm@apg-bbuild01.juniper.net, WedFeb 6 11:23:55 PST 2008)
Memory: 1024MB
Loading /boot/defaults/loader.conf
/kernel data=0x8d8e8c+0x947cc syms=[0x4+0x7a1a0+0x4+0xad2a2]
Hit [Enter] to boot immediately, or spacebar for command prompt.
Booting [/kernel]...
Kernel entry at 0x800000e0 ...
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1996-2010, Juniper Networks,Inc.
All rights reserved.
Copyright (c) 1992-2006 The FreeBSDProject.
Copyright (c) 1979, 1980, 1983, 1986, 1988,1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
JUNOS 10.4R1.9 #0: 2010-12-04 09:57:12 UTC
builder@warth.juniper.net:/volume/build/junos/10.4/release/10.4R1.9/obj-powerpc/bsd/sys/compile/JUNIPER-EX
Timecounter "decrementer"frequency 50000000 Hz quality 0
cpu0: Freescale e500v2 core revision 2.2
cpu0: HID0 80004080<EMCP,TBEN,EN_MAS7_update>
real memory = 1048576000 (1000 MB)
avail memory = 1026605056 (979 MB)
ETHERNET SOCKET BRIDGE initialising
Initializing EXSERIES platform properties...
nexus0: <PPC e500 Nexus device>
ocpbus0: <on-chip peripheral bus> on nexus0
openpic0: <OpenPIC in on-chip peripheralbus> iomem 0xfef40000-0xfef600b3 on ocpbus0
memctl0: <mpc85xx memory errorreporting> iomem 0xfef20000-0xfef20e5b,0xfef02000-0xfef02e5b irq 32,34 onocpbus0
i2c0: <MPC85XX OnChip i2c Controller>iomem 0xfef03000-0xfef03014 irq 59 on ocpbus0
i2c1: <MPC85XX OnChip i2c Controller>iomem 0xfef03100-0xfef03114 irq 59 on ocpbus0
uart0: <16550 or compatible> iomem0xfef04500-0xfef0450f irq 58 on ocpbus0
uart0: console (9600,n,8,1)
uart1: <16550 or compatible> iomem 0xfef04600-0xfef0460firq 58 on ocpbus0
lbc0: <Freescale 8533 Local BusController> iomem 0xfef05000-0xfef05fff,0xff000000-0xffffffff irq 22 onocpbus0
cfi0: <AMD/Fujitsu - 8MB> iomem0xff800000-0xffffffff on lbc0
syspld0 iomem 0xff000000-0xff00ffff on lbc0
tsec0: <eTSEC ethernet controller>iomem 0xfef24000-0xfef24fff irq 45,46,50 on ocpbus0
tsec0: hardware MAC address00:21:59:c9:62:3f
miibus0: <MII bus> on tsec0
e1000phy0: <Marvell 88E1112 GigabitPHY> on miibus0
e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
pcib0: <Freescale MPC8544 PCI hostcontroller> iomem 0xfef08000-0xfef08fff,0xf0000000-0xf3ffffff on ocpbus0
pci0: <PCI bus> on pcib0
pci0: <serial bus, USB> at device18.0 (no driver attached)
ehci0: <Philips ISP156x USB 2.0controller> mem 0xf0001000-0xf00010ff irq 22 at device 18.2 on pci0
usb0: EHCI version 1.0
usb0: <Philips ISP156x USB 2.0controller> on ehci0
usb0: USB revision 2.0
uhub0: Philips EHCI root hub, class 9/0,rev 2.00/1.00, addr 1
uhub0: 2 ports with 2 removable, selfpowered
umass0: STMicroelectronics ST72682 High Speed Mode, rev 2.00/2.10, addr 2
pcib1: <Freescale MPC8544 PCI Expresshost controller> iomem0xfef0a000-0xfef0afff,0xe0000000-0xe3ffffff,0xec000000-0xec0fffff irq 42 onocpbus0
pci1: <PCI bus> on pcib1
pcib2: <PCI-PCI bridge> at device 0.0on pci1
pci2: <PCI bus> on pcib2
mpfe0: <Juniper EX-series PacketForwarding Engine> mem 0xa4000000-0xa40fffff,0xa0000000-0xa3ffffff irq 19 atdevice 0.0 on pci2
pcib3: <Freescale MPC8544 PCI Expresshost controller> iomem0xfef0b000-0xfef0bfff,0xe8000000-0xebffffff,0xec200000-0xec2fffff irq 43 onocpbus0
pci3: <PCI bus> on pcib3
pcib4: <PCI-PCI bridge> at device 0.0on pci3
pci4: <PCI bus> on pcib4
mpfe1: <Juniper EX-series PacketForwarding Engine> mem 0xb4000000-0xb40fffff,0xb0000000-0xb3ffffff irq 18 atdevice 0.0 on pci4
idma0: <mp85xxx DMA Controller> iomem0xfef21000-0xfef21300 irq 36 on ocpbus0
Initializing product: 41 ..
bmeb: bmeb_lib_init done 0x82a98800, addr0x808db444
bme0:Virtual BME driver initializing
Timecounters tick every 1.000 msec
Loading the NETPFE picpeer module
IPsec: Initialized Security AssociationProcessing.
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <ST ST72682 2.10> RemovableDirect Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 1000MB (2048000 512 byte sectors: 64H32S/T 1000C)
Trying to mount root from ufs:/dev/da0s2a
Attaching /packages/jbase via /dev/mdctl...
Mounted jbase package on /dev/md0...
Verified manifest signed byPackageProduction_10_4_0
Verified jboot signed byPackageProduction_10_4_0
Verified jbase-10.4R1.9 signed byPackageProduction_10_4_0
Mounted jcrypto-ex package on /dev/md1...
Verified manifest signed byPackageProduction_10_4_0
Verified jcrypto-ex-10.4R1.9 signed byPackageProduction_10_4_0
Mounted jdocs-ex package on /dev/md2...
Verified manifest signed byPackageProduction_10_4_0
Verified jdocs-ex-10.4R1.9 signed byPackageProduction_10_4_0
Mounted jkernel-ex package on /dev/md3...
Verified manifest signed byPackageProduction_10_4_0
Verified jkernel-ex-10.4R1.9 signed byPackageProduction_10_4_0
Mounted jpfe-ex42x package on /dev/md4...
Verified manifest signed byPackageProduction_10_4_0
Verified jpfe-ex42x-10.4R1.9 signed byPackageProduction_10_4_0
Mounted jroute-ex package on /dev/md5...
Verified manifest signed byPackageProduction_10_4_0
Verified jroute-ex-10.4R1.9 signed byPackageProduction_10_4_0
Mounted jswitch-ex package on /dev/md6...
Verified manifest signed byPackageProduction_10_4_0
Verified jswitch-ex-10.4R1.9 signed byPackageProduction_10_4_0
Mounted jweb-ex package on /dev/md7...
Verified manifest signed byPackageProduction_10_4_0
Verified jweb-ex-10.4R1.9 signed byPackageProduction_10_4_0
executing/packages/mnt/jweb-ex-10.4R1.9/mount.post..
Automatic reboot in progress...
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 30928 free (32 frags, 3862 blocks,0.0% fragmentation)
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 28289 free (17 frags, 3534 blocks,0.1% fragmentation)
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 62738 free (26 frags, 7839 blocks,0.0% fragmentation)
savecore: could not be determined
No dump exists
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 160996 free (28 frags, 20121 blocks,0.0% fragmentation)
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 routingoptions:kern.module_path: /boLoading the NETPFE ethernet module
ot//kernel;/boot/modules -> /booLoadingcommon multilink module.
t//kernel;/boot/modules;/modulesLoading theEX-series platform NETPFE module
grat_arp_on_ifup=YES:net.link.ether.inet.grat_arp_on_ifup: 1 -> 1
kld netpfe drv: ifpfed_eth ifpfed_ml_cmnkldplatform: ex_ifpfe if_vcpkern.module_path: /boot//kernel;/boot/modules;/modules-> /boot//kernel;/boot/modules;/modules;/modules/peertype
kld peertype: peertype_hcm peertype_pfempeertype_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:.
Sat Dec 4 11:13:57 UTC 2010
Amnesiac (ttyu0)
login: root
Password:
--- JUNOS 10.4R1.9 built 2010-12-0409:57:12 UTC
root@:RE:0%
root@:RE:0% cli
Step4:升级成功验证
只要看到类似下面信息证明已经升级成功了
深圳CISCO代理商 思科代理商 深圳Ruckus优科代理商 深圳华为代理商 watchguard代理商