Mr.Chan

导航

junos 5.5版本到5.6版本升级心得


刚刚配了IP地址,保存配置
lab@host# commit
commit complete

切换到operational mode
lab@host# exit
Exiting configuration mode

测试与我的笔记本的连通性^_^
lab@host> ping 192.168.36.43
PING 192.168.36.43 (192.168.36.43): 56 data bytes
64 bytes from 192.168.36.43: icmp_seq=0 ttl=64 time=2.678 ms
64 bytes from 192.168.36.43: icmp_seq=1 ttl=64 time=1.857 ms
64 bytes from 192.168.36.43: icmp_seq=2 ttl=64 time=1.129 ms
64 bytes from 192.168.36.43: icmp_seq=3 ttl=64 time=1.467 ms
64 bytes from 192.168.36.43: icmp_seq=4 ttl=64 time=0.716 ms
64 bytes from 192.168.36.43: icmp_seq=5 ttl=64 time=2.036 ms
64 bytes from 192.168.36.43: icmp_seq=6 ttl=64 time=2.346 ms
^C
--- 192.168.36.43 ping statistics ---
7 packets transmitted, 7 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.716/1.747/2.678/0.637 ms

转到空间比较大的目录/var下
root@host%
root@host% cd /var
root@host% ls -l
total 44
drwxr-xr-x 2 bin bin 512 Jan 19 2001 account
drwxr-xr-x 4 root wheel 512 Feb 22 2002 at
drwxr-x--- 2 root wheel 512 Jan 19 2001 backups
drwxr-x--- 2 root wheel 512 Feb 22 2002 crash
drwxr-x--- 3 root wheel 512 Feb 22 2002 cron
drwxr-xr-x 5 bin bin 512 Mar 19 17:42 db
drwxr-xr-x 5 root wheel 2560 Mar 19 17:42 etc
drwxrwxr-x 5 root games 512 Feb 22 2002 games
drwxr-xr-x 8 root wheel 512 Jan 28 16:35 home
drwxrwxr-x 2 root wheel 512 Mar 19 17:42 log
drwxrwxr-x 2 bin mail 512 Jan 19 2001 mail
drwxr-xr-x 2 daemon bin 512 Jan 19 2001 msgs
drwxr-xr-x 2 bin bin 512 Jan 19 2001 preserve
drwxr-xr-x 2 root bin 1536 Mar 19 17:42 run
drwxrwxr-x 2 bin daemon 512 Jan 19 2001 rwho
drwxr-xr-x 9 bin bin 512 Feb 22 2002 spool
drwxr-xr-x 3 root wheel 512 Feb 22 2002 sw
drwxrwxrwt 3 bin field 512 Jan 29 00:10 tmp
drwxr-xr-x 2 bin bin 512 Feb 22 2002 yp
root@host% cd /var/tmp
root@host% ls
jbundle-5.5R2.3-export.tgz sampled.pkts
jinstall-5.5R2.3-export-signed.tgz vi.recover
root@host% cd /var/
root@host% pwd
/var

开始FTP.........:-)

root@host% ftp 192.168.36.43
Connected to 192.168.36.43.
220 Serv-U FTP Server v4.0 for WinSock ready...
Name (192.168.36.43:root): ftp
331 User name okay, please send complete E-mail address as password.
Password:
230 User logged in, proceed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> binary
200 Type set to I.
ftp> ls -l
200 PORT Command successful.
150 Opening ASCII mode data connection for /bin/ls.
drw-rw-rw- 1 user group 0 Dec 5 17:06 4.4R3.4
-rw-rw-rw- 1 user group 1474560 Dec 5 15:28 boot.flp
-rw-rw-rw- 1 user group 17728 Nov 28 18:53 fdimage.exe
-r--r--r-- 1 user group 24735403 Nov 25 18:15 jbundle-5.5R2.3-export-signed.tgz
-rw-rw-rw- 1 user group 24759041 Mar 3 08:35 jbundle-5.5R3.1-export-signed.tgz
-rw-rw-rw- 1 user group 28687432 Feb 19 09:01 jbundle-5.6R2.4-export-signed.tgz
-rw-rw-rw- 1 user group 21051665 Apr 27 2002 jinstall-5.0R1.4-export.tgz
-rw-rw-rw- 1 user group 23983137 Dec 5 14:10 jinstall-5.1B3.1-export.tgz
-r--r--r-- 1 user group 25599684 Jul 25 2002 jinstall-5.2R3.4-export.tgz
-r--r--r-- 1 user group 27314596 Nov 25 18:23 jinstall-5.5R2.3-export-signed.tgz
-rw-rw-rw- 1 user group 31351247 Mar 18 21:20 jinstall-5.6R2.4-export-signed.tgz

226 Transfer complete.
ftp> get jbundle-5.6R2.4-export-signed.tgz
local: jbundle-5.6R2.4-export-signed.tgz remote: jbundle-5.6R2.4-export-signed.tgz
200 PORT Command successful.
150 Opening BINARY mode data connection for jbundle-5.6R2.4-export-signed.tgz (28687432 bytes).
100% |**************************************************| 28015 KB 00:00 ETA
226 Transfer complete.
28687432 bytes received in 35.23 seconds (795.31 KB/s)
ftp> bye
221 Goodbye!

开始升级(因我这是小版本升级5.x-->5.y,所以只需要jbundle文件就可以了)

root@host% cli
reroot@host> request system software add jbundle-5.6R2.4-export-signed.tgz

Installing package '/var/jbundle-5.6R2.4-export-signed.tgz' ...
Verified MD5 checksum of jbundle-5.6R2.4-export.tgz
Adding jbundle...
Verified MD5 checksum of jbase-5.6R2.4.tgz
Verified MD5 checksum of jboot-5.6R2.4
Verified MD5 checksum of jdocs-5.6R2.4.tgz
Verified MD5 checksum of jkernel-5.6R2.4.tgz
Verified MD5 checksum of jpfe-5.6R2.4.tgz
Verified MD5 checksum of jroute-5.6R2.4.tgz
Mounted jboot on /mnt (/dev/vn5)
Updating root filesystem...
Unmounted /mnt
Auto-deleting old jroute...
Auto-deleting old jdocs...
Auto-deleting old jpfe...
Auto-deleting old jkernel...
Auto-deleting old jbase...
Adding jbase...

WARNING: A reboot is required to load this software correctly
WARNING: Use the 'request system reboot' command
WARNING: when software installation is complete

Adding jkernel...
Mounted jkernel package on /dev/vn5...
Adding jpfe...
Mounted jpfe package on /dev/vn2...
Adding jdocs...
Mounted jdocs package on /dev/vn6...
Adding jroute...
Mounted jroute package on /dev/vn7...
Saving package file in /var/sw/pkg/jbundle-5.6R2.4-export-signed.tgz ...
Saving state for rollback ...
WARNING: Package jkernel wants to reboot

root@host>

重新启动机器

root@host> request system reboot
Reboot the system ? [yes,no] (no) yes

shutdown: [pid 3555]
Shutdown NOW!

root@host>
*** FINAL System shutdown message from root@host ***
System going down IMMEDIATELY


Mar 19 17:47:59 init: syslogd (PID 323) exited with status=0 Normal Exit
Waiting (max 60 seconds) for system process `bufdaemon' to stop...stopped
Waiting (max 60 seconds) for system process `syncer' to stop...stopped

syncing disks...
done
Uptime: 10m13s
ata0: resetting devices .. done
Rebooting...
Console: serial port
BIOS drive C: is disk0
BIOS 638kB/64504kB available memory

FreeBSD/i386 bootstrap loader, Revision 0.8
(builder@zu.juniper.net., Fri Feb 14 23:14:36 GMT 2003)
Loading /boot/defaults/loader.conf
/kernel text=0x2f95e7 data=0x266bc+0x49660 syms=[0x4+0x39180+0x4+0x42e68]

Loader Quick Help
-----------------
The boot order is PCMCIA or floppy -> Flash -> Disk -> Lan ->
back to PCMCIA or floppy. Typing reboot from the command prompt will
cycle through the boot devices. On some models, you can set the next
boot device using the nextboot command: nextboot compact-flash | disk

For more information, use the help command: help <topic> <subtopic>

Hit [Enter] to boot immediately, or space bar for command prompt.
Booting [kernel]...
Copyright (c) 1996-2001, Juniper Networks, Inc.
All rights reserved.
Copyright (c) 1992-2001 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 5.6R2.4 #0: 2003-02-14 23:22:39 UTC
builder@zu.juniper.net.:/build/zu-b/5.6R2.4/obj-i386/sys/compile/JUNIPER
Timecounter "i8254" frequency 1193182 Hz
Timecounter "TSC" frequency 298648827 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (298.65-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x634 Stepping = 4
Features=0x80f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,MMX>
real memory = 67100672 (65528K bytes)
sio0: gdb debugging port
avail memory = 60182528 (58772K bytes)
smbios: Table at 0xc00ef880
Olive CPU
Preloaded elf kernel "kernel" at 0xc04e8000.
DEVFS: ready for devices
Pentium Pro MTRR support enabled
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI Mach64-GB graphics accelerator> at 0.0
fxp0: <Intel EtherExpress Pro 10/100B Ethernet> port 0x1000-0x101f mem 0xf4000000-0xf40fffff,0xf4400000-0xf4400fff irq 11 at device 6.0 on pci0
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0x1040-0x104f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 irq 9
smb0: <Intel 82371AB SMB controller> port 0x7000-0x700f at device 7.3 on pci0
fdc0: direction bit not set
fdc0: cmd 3 failed at out byte 1 of 3
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x90 on isa0
sio0: type 16550A, console
sio1: configured irq 5 not in bitmap of probed irqs 0
sio2 at port 0x2f8-0x2ff irq 3 on isa0
sio2: type 16550A
sio3: configured irq 7 not in bitmap of probed irqs 0
fxp0: Ethernet address 00:a0:c9:c4:16:fa
DEVFS: ready to run
ad0: 3098MB <ST33223A> [6296/16/63] at ata0-master using UDMA33
Mounting root from ufs:/dev/ad0s1a
Mounted jbase package on /dev/vn0...
Completing pending install of jbase
/dev/ad0s1a: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1a: clean, 37697 free (49 frags, 4706 blocks, 0.1% fragmentation)
Mounted jkernel package on /dev/vn1...
Mounted jpfe package on /dev/vn2...
Mounted jdocs package on /dev/vn3...
Mounted jroute package on /dev/vn4...
swapon: adding /dev/ad0s1b as swap device
Automatic reboot in progress...
/dev/ad0s1a: 1043 files, 23600 used, 41831 free /dev/ad0s1e: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1e: clean, 9881 free (47 frags, 5223 blocks, 0.1% fragmentation)
(9 frags, 1234 blocks, 0.1% fragmentation)
(47 frags, 5223 blocks, 0.1% fragmentation)
/dev/ad0s1f: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1f: clean, 2256412 free (540 frags, 281984 blocks, 0.0% fragmentation)
mgd: commit complete
Setting initial options: debugger_on_panic=NO debugger_on_break=NO.
Doing initial network setup:.
Initial interface configuration:
add default: gateway 192.168.0.2
additional daemons: syslogd.
checking for core dump...savecore: Router rebooting after a normal shutdown....
Additional routing options:.
Doing additional network setup:.
Starting final network daemons:.
setting ldconfig path: /usr/lib
starting standard daemons: cron.
Initial rc.i386 initialization:.
rc.i386 configuring syscons:.
Local package initialization:.
starting local daemons:.
Wed Mar 19 17:49:49 UTC 2003

host (ttyd0)

login: lab
Password:

--- JUNOS 5.6R2.4 built 2003-02-14 23:22:39 UTC


lab@host>

看一下,所有的jbase,jkernel都是升级后的最新版

lab@host> show version detail
Hostname: host
Model: olive
JUNOS Base OS boot [5.6R2.4]
JUNOS Base OS Software Suite [5.6R2.4]
JUNOS Kernel Software Suite [5.6R2.4]
JUNOS Packet Forwarding Engine Support (M20/M40) [5.6R2.4]
JUNOS Routing Software Suite [5.6R2.4]
JUNOS Online Documentation [5.6R2.4]
KERNEL 5.6R2.4 #0 built by builder on 2003-02-14 23:22:39 UTC
MGD release 5.6R2.4 built by builder on 2003-02-14 23:02:11 UTC
CLI release 5.6R2.4 built by builder on 2003-02-14 22:59:53 UTC
CHASSISD release 5.6R2.4 built by builder on 2003-02-14 22:58:15 UTC
DCD release 5.6R2.4 built by builder on 2003-02-14 22:56:00 UTC
RPD release 5.6R2.4 built by builder on 2003-02-14 23:03:18 UTC
SNMPD release 5.6R2.4 built by builder on 2003-02-14 23:09:36 UTC
MIB2D release 5.6R2.4 built by builder on 2003-02-14 23:02:15 UTC
APSD release 5.6R2.4 built by builder on 2003-02-14 22:58:12 UTC
VRRPD release 5.6R2.4 built by builder on 2003-02-14 23:09:48 UTC
ALARMD release 5.6R2.4 built by builder on 2003-02-14 22:58:04 UTC
PFED release 5.6R2.4 built by builder on 2003-02-14 23:03:02 UTC
CRAFTD release 5.6R2.4 built by builder on 2003-02-14 23:00:07 UTC
SAMPLED release 5.6R2.4 built by builder on 2003-02-14 23:09:23 UTC
ILMID release 5.6R2.4 built by builder on 2003-02-14 23:01:24 UTC
RMOPD release 5.6R2.4 built by builder on 2003-02-14 23:03:11 UTC
COSD release 5.6R2.4 built by builder on 2003-02-14 22:59:59 UTC
FSAD release 5.6R2.4 built by builder on 2003-02-14 23:00:23 UTC
SERVICED release 5.6R2.4 built by builder on 2003-02-14 23:09:29 UTC
IRSD release 5.6R2.4 built by builder on 2003-02-14 23:01:28 UTC
NASD release 5.6R2.4 built by builder on 2003-02-14 23:02:56 UTC
FUD release 5.6R2.4 built by builder on 2003-02-14 23:00:25 UTC
PPMD release 5.6R2.4 built by builder on 2003-02-14 23:03:08 UTC
LMPD release 5.6R2.4 built by builder on 2003-02-14 23:02:07 UTC
RTSPD release 5.6R2.4 built by builder on 2003-02-14 23:09:20 UTC
SMARTD release 5.6R2.4 built by builder on 2003-02-14 23:13:59 UTC
jkernel-dd release 5.6R2.4 built by builder on 2003-02-14 22:53:19 UTC
jroute-dd release 5.6R2.4 built by builder on 2003-02-14 22:53:33 UTC

posted on 2005-05-18 23:09  cunshen  阅读(748)  评论(0)    收藏  举报