首页 > 其他分享 >upgrade or replace

upgrade or replace

时间:2023-02-20 20:33:16浏览次数:35  
标签:00 upgrade 08 up replace down ge config

juniper upgrade

1. Login:

2. Mount USB:

For EX:

mount -t msdosfs /dev/da1s1 /mnt

mount_msdosfs /dev/da1s1 /mnt

For QFX:

mount -t msdosfs /dev/da0s1 /mnt

3. Copy firmware to local drive:

For EX:

cp /mnt/jinstall-ex-4300-17.3R3-S4.2-signed.tgz /var/tmp

For QFX

cp /mnt/jinstall-host-qfx-5-17.3R3-S4.2-signed.tgz /var/tmp

4. Unmount USB:

umount /mnt

5. Install new firmware and reboot

For EX:

cli

request system software add /var/tmp/jinstall-ex-4300-17.3R3-S4.2-signed.tgz no-copy no-validate reboot

For QFX:

cli

request system software add /var/tmp/jinstall-host-qfx-5-17.3R3-S4.2-signed.tgz no-copy no-validate force-host reboot


示例:

root@pvg03-sfi-mdf3-2r20:LC:0%

root@pvg03-sfi-mdf3-2r20:LC:0% mount_msdosfs /dev/da1s1 /mnt

mount_msdosfs: /dev/da1s1: No such file or directory


root@pvg03-sfi-mdf3-2r20:LC:0% ls /dev/

acpi kmem md23.uzip md41 stderr

apm ksyms md24 md41.uzip stdin

apmctl led md24.uzip md42 stdout

audit mch md25 md42.uzip sysmouse

auditpipe md0 md25.uzip md43 ttyu0

bcm_563xx md0.uzip md26 md43.uzip ttyu0.init

console md1 md26.uzip md5 ttyu0.lock

consolectl md1.uzip md27 md5.uzip ttyu1

ctty md10 md27.uzip md6 ttyu1.init

cuau0 md10.uzip md28 md6.uzip ttyu1.lock

cuau0.init md11 md28.uzip md7 ttyu2

cuau0.lock md11.uzip md29 md7.uzip ttyu2.init

cuau1 md12 md29.uzip md8 ttyu2.lock

cuau1.init md12.uzip md3 md8.uzip ttyv0

cuau1.lock md13 md30 md9 ttyv1

cuau2 md13.uzip md30.uzip md9.uzip ttyv2

cuau2.init md14 md31 mdctl ttyv3

cuau2.lock md14.uzip md31.uzip mem ttyv4

da0 md15 md32 mmcsd0 ttyv5

da0s1 md15.uzip md32.uzip mmcsd0p1 ttyv6

devctl md16 md33 mmcsd0p2 ttyv7

devctl2 md16.uzip md34 mmcsd0p3 ttyv8

devstat md17 md34.uzip mmcsd0p4 ttyv9

dtrace md17.uzip md35 mmcsd0p5 ttyva

dumpdev md18 md35.uzip mmcsd0p6 ttyvb

fd md18.uzip md36 nfslock ufssuspend

fido md19 md36.uzip null ugen0.1

fileassoc md19.uzip md37 pass0 ugen0.2

full md2 md37.uzip pass1 urandom

fuse md2.uzip md38 pass2 usb

geom.ctl md20 md38.uzip pci usbctl

gpioc0 md20.uzip md39 pvidb veriexec

gpt md21 md39.uzip random xpt0

gptid md21.uzip md4 relpcfpga zero

hpet0 md22 md4.uzip reroot

io md22.uzip md40 smb0

klog md23 md40.uzip smb1

root@pvg03-sfi-mdf3-2r20:LC:0%

root@pvg03-sfi-mdf3-2r20:LC:0% mount_msdosfs /dev/da0s1 /mnt

root@pvg03-sfi-mdf3-2r20:LC:0% ls /mnt/


junos-install-ex-x86-64-21.4R3-S2.4.tgz

root@pvg03-sfi-mdf3-2r20:LC:0%
root@pvg03-sfi-mdf3-2r20:LC:0% cp /mnt/junos-install-ex-x86-64-21.4R3-S2.4.tgz /var/tmp

root@pvg03-sfi-mdf3-2r20:LC:0% umount /mnt

root@pvg03-sfi-mdf3-2r20:LC:0% ls /var/tmp/


junos-install-ex-x86-64-21.4R3-S2.4.tgz



root@pvg03-sfi-mdf3-2r20:LC:0%

root@pvg03-sfi-mdf3-2r20:LC:0% cli

root@pvg03-fi-mdf3-2r20> request system software add /var/tmp/junos-install-ex-x86-64-21.4R3-S2.4.tgz no-validate no-copy reboot


重启完成,可以看到版本已经通过USB挂载升级成功
login: root

Password:

Last login: Tue Jan 10 21:37:47 on ttyu0


--- JUNOS 21.4R3-S2.4 Kernel 64-bit JNPR-12.1-20221028.898be19_buil






接下来需要恢复出厂设置

使用常规的恢复出厂命令(request system zeroize)会发现在此版本下该命令使用有问题
(无法清空配置)

(使用request system zeroize恢复出厂会自动重启系统)

root> request system zeroize
warning: System will be rebooted and may not boot without configuration

Erase all data, including configuration and log files?. In case of Dual RE system, both Routing Engines will be zeroized [yes,no] (no) yes

warning: zeroizing fpc0

error: Failed to clear nvram. (status 256)


接下来,换一个恢复出厂命令(load factory-default)

(使用load factory-default恢复出厂不会自动重启系统,所以后面还需要手工重启)

root@pvg03-sfi-mdf3-2r20> configure

root@pvg03-sfi-mdf3-2r20# load factory-default

warning: activating factory configuration


{linecard:0}[edit]

root@pvg03-sfi-mdf3-2r20# commit
warning: 'synchronize' ignored in single routing engine chassis

FreeBSD/i386 (pvg03-sfi-mdf3-2r20) (ttyu0)
...
login: rootPassword:

Last login: Thu Jan 12 16:00:07 on ttyu0


--- JUNOS 21.4R3-S2.4 Kernel 64-bit JNPR-12.1-20221028.898be19_buil

root@pvg03-sfi-mdf3-2r20:RE:0%


如上,可以初步判断该命令的执行暂无问题

接下来,手动重启系统

root@pvg03-sfi-mdf3-2r20:RE:0% cli

root@pvg03-sfi-mdf3-2r20> request system reboot
root@:RE:0% cli


root>

root> show configuration | display set
set version 21.4R3-S2.4

set system commit factory-settings reset-chassis-lcd-menu

set system commit factory-settings reset-virtual-chassis-configuration

set system services ssh

set system services netconf ssh

set system services netconf rfc-compliant

set system services netconf yang-compliant

set system auto-snapshot

set system syslog file interactive-commands interactive-commands any

set system syslog file messages any notice

set system syslog file messages authorization info

set system processes dhcp-service traceoptions file dhcp_logfile

set system processes dhcp-service traceoptions file size 10m

set system processes dhcp-service traceoptions level all

set system processes dhcp-service traceoptions flag packet

set system phone-home server https://redirect.juniper.net

set system phone-home rfc-compliant

set chassis redundancy graceful-switchover

set chassis auto-image-upgrade

set interfaces ge-0/0/0 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/1 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/2 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/3 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/4 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/5 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/6 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/7 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/8 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/9 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/10 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/11 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/12 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/13 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/14 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/15 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/16 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/17 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/18 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/19 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/20 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/21 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/22 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/23 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/24 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/25 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/26 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/27 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/28 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/29 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/30 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/31 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/32 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/33 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/34 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/35 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/36 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/37 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/38 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/39 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/40 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/41 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/42 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/43 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/44 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/45 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/46 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/0/47 unit 0 family ethernet-switching storm-control default

set interfaces et-0/2/0 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/2/0 unit 0 family ethernet-switching storm-control default

set interfaces xe-0/2/0 unit 0 family ethernet-switching storm-control default

set interfaces et-0/2/1 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/2/1 unit 0 family ethernet-switching storm-control default

set interfaces xe-0/2/1 unit 0 family ethernet-switching storm-control default

set interfaces et-0/2/2 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/2/2 unit 0 family ethernet-switching storm-control default

set interfaces xe-0/2/2 unit 0 family ethernet-switching storm-control default

set interfaces et-0/2/3 unit 0 family ethernet-switching storm-control default

set interfaces ge-0/2/3 unit 0 family ethernet-switching storm-control default

set interfaces xe-0/2/3 unit 0 family ethernet-switching storm-control default

set interfaces irb unit 0 family inet dhcp vendor-id Juniper-ex4400-48p-ZD4322220349

set interfaces irb unit 0 family inet6 dhcpv6-client client-type stateful

set interfaces irb unit 0 family inet6 dhcpv6-client client-ia-type ia-na

set interfaces irb unit 0 family inet6 dhcpv6-client client-identifier duid-type duid-ll

set interfaces irb unit 0 family inet6 dhcpv6-client vendor-id Juniper:ex4400-48p:ZD4322220349

set interfaces vme unit 0 family inet dhcp vendor-id Juniper-ex4400-48p-ZD4322220349

set interfaces vme unit 0 family inet6 dhcpv6-client client-type stateful

set interfaces vme unit 0 family inet6 dhcpv6-client client-ia-type ia-na

set interfaces vme unit 0 family inet6 dhcpv6-client client-identifier duid-type duid-ll

set interfaces vme unit 0 family inet6 dhcpv6-client vendor-id Juniper:ex4400-48p:ZD4322220349

set forwarding-options storm-control-profiles default all

set protocols router-advertisement interface vme.0 managed-configuration

set protocols router-advertisement interface irb.0 managed-configuration

set protocols lldp interface all

set protocols lldp-med interface all

set protocols igmp-snooping vlan default

set protocols rstp interface ge-0/0/0

set protocols rstp interface ge-0/0/1

set protocols rstp interface ge-0/0/2

set protocols rstp interface ge-0/0/3

set protocols rstp interface ge-0/0/4

set protocols rstp interface ge-0/0/5

set protocols rstp interface ge-0/0/6

set protocols rstp interface ge-0/0/7

set protocols rstp interface ge-0/0/8

set protocols rstp interface ge-0/0/9

set protocols rstp interface ge-0/0/10

set protocols rstp interface ge-0/0/11

set protocols rstp interface ge-0/0/12

set protocols rstp interface ge-0/0/13

set protocols rstp interface ge-0/0/14

set protocols rstp interface ge-0/0/15

set protocols rstp interface ge-0/0/16

set protocols rstp interface ge-0/0/17

set protocols rstp interface ge-0/0/18

set protocols rstp interface ge-0/0/19

set protocols rstp interface ge-0/0/20

set protocols rstp interface ge-0/0/21

set protocols rstp interface ge-0/0/22

set protocols rstp interface ge-0/0/23

set protocols rstp interface ge-0/0/24

set protocols rstp interface ge-0/0/25

set protocols rstp interface ge-0/0/26

set protocols rstp interface ge-0/0/27

set protocols rstp interface ge-0/0/28

set protocols rstp interface ge-0/0/29

set protocols rstp interface ge-0/0/30

set protocols rstp interface ge-0/0/31

set protocols rstp interface ge-0/0/32

set protocols rstp interface ge-0/0/33

set protocols rstp interface ge-0/0/34

set protocols rstp interface ge-0/0/35

set protocols rstp interface ge-0/0/36

set protocols rstp interface ge-0/0/37

set protocols rstp interface ge-0/0/38

set protocols rstp interface ge-0/0/39

set protocols rstp interface ge-0/0/40

set protocols rstp interface ge-0/0/41

set protocols rstp interface ge-0/0/42

set protocols rstp interface ge-0/0/43

set protocols rstp interface ge-0/0/44

set protocols rstp interface ge-0/0/45

set protocols rstp interface ge-0/0/46

set protocols rstp interface ge-0/0/47

set poe interface all

set vlans default vlan-id 1

set vlans default l3-interface irb.0


{master:0}

root>

可以看到,设备成功恢复出厂

IE 2000 IP67 upgrade

IE 2000 IP67 OS upgrate

升级前为ie2000-universalk9-mz.152-7.E3.bin

升级后为ie2000-universalk9-mz.152-8.E1.bin


pvg03-smp-acc-backup(config)#boot system sdflash:ie2000-universalk9-mz.152-8.E1.bin  

pvg03-smp-acc-backup(config)#boot config-file sdflash:config.text

pvg03-smp-acc-backup(config)#do show boot

pvg03-smp-acc-backup(config)#do wr

pvg03-smp-acc-backup(config)#do reload

pvg03-smp-acc-backup(config)#do show version


示例

由于本设备是升级好了的,所以需要先把环境恢复  
pvg03-smp-acc-backup-ip67-1#show version

Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 18 IE-2000-16T67P-G-E 15.2(8)E1 IE2000-UNIVERSALK9-M



Configuration register is 0xF


pvg03-smp-acc-backup-ip67-1#

pvg03-smp-acc-backup-ip67-1#dir

Directory of flash:/


2 -rwx 16 Jan 2 2006 08:00:40 +08:00 license_upgrade

3 drwx 512 Jan 2 2006 08:02:03 +08:00 pnp-tech

6 drwx 512 Mar 1 1993 08:41:41 +08:00 dc_profile_dir

8 -rwx 35916 Jan 2 2006 08:00:52 +08:00 pnap.dat

9 -rwx 1679069 Jan 13 2006 09:36:46 +08:00 jeevesfpga.rbf

10 -rwx 161 Sep 8 2021 14:49:39 +08:00 merge_config.txt

11 drwx 512 Jan 2 2006 08:00:38 +08:00 managed

19 -rwx 27358202 Jan 2 2006 09:46:56 +08:00 ie2000-universalk9-mz.152-8.E1.bin

20 -rwx 616 Jan 2 2006 08:00:39 +08:00 vlan.dat

21 drwx 512 Jan 2 2006 08:00:38 +08:00 eem

22 drwx 512 Jan 2 2006 08:00:57 +08:00 pnp-info

23 -rwx 0 Jan 2 2006 08:32:12 +08:00 config.1

24 -rwx 11318 Sep 8 2021 14:49:55 +08:00 rollback_config.txt

25 -rwx 0 Jan 2 2006 08:14:21 +08:00 config.123

26 -rwx 3586 Jan 2 2006 10:01:28 +08:00 private-config.text

29 -rwx 2072 Jan 2 2006 08:00:46 +08:00 multiple-fs

28 -rwx 12810 Jan 2 2006 10:01:28 +08:00 config.text


57931776 bytes total (28180992 bytes free)

pvg03-smp-acc-backup-ip67-1#

pvg03-smp-acc-backup-ip67-1#more flash:config.text

!

! Last configuration change at 10:01:20 GMT Mon Jan 2 2006 by netops

!

version 15.2

no service pad

service tcp-keepalives-in

service tcp-keepalives-out

no service timestamps debug uptime

service timestamps log datetime localtime show-timezone

service password-encryption

service sequence-numbers

!

hostname pvg03-smp-acc-backup-ip67-1

!

boot-start-marker

boot-end-marker

!

logging userinfo

no logging console

enable secret 5 $1$P.XU$FuohcVY0D5VWfy8ZgoEUZ0

!

username netops privilege 15 secret 9 $9$c9PjVbEzM1fwrW$U2jZGSlxkZA8iGQgnp53YUmDtbg6EcjgiwR0bouB2JY



pvg03-smp-acc-backup-ip67-1#

pvg03-smp-acc-backup-ip67-1#

pvg03-smp-acc-backup-ip67-1#copy flash:config.text sdflash:

Copy in progress...C

12810 bytes copied in 0.738 secs (17358 bytes/sec)

pvg03-smp-acc-backup-ip67-1#

pvg03-smp-acc-backup-ip67-1#

pvg03-smp-acc-backup-ip67-1#dir sdflash:

Directory of sdflash:/


1777 -rw- 34 Jan 2 2006 08:06:06 +08:00 env_vars

1778 -rw- 12810 Jan 2 2006 08:07:48 +08:00 config.text

4 drw- 0 Oct 12 2021 19:01:56 +08:00 ie2000-universalk9-mz.152-8.E1

1776 -rw- 27339565 Oct 20 2022 10:34:54 +08:00 ie2000-universalk9-mz.152-7.E3.bin


2003697664 bytes total (1923440640 bytes free)

pvg03-smp-acc-backup-ip67-1#

pvg03-smp-acc-backup-ip67-1#

pvg03-smp-acc-backup-ip67-1#show boot

Load for five secs: 4%/0%; one minute: 7%; five minutes: 6%

Time source is NTP, *08:08:30.824 GMT Mon Jan 2 2006


BOOT path-list : flash:ie2000-universalk9-mz.152-8.E1.bin

Config file : flash:/config.text

Private Config file : flash:/private-config.text

Enable Break : no

Manual Boot : no

Allow Dev Key : yes

HELPER path-list :
Auto upgrade : yes

Auto upgrade path :
Boot optimization : enabled

NVRAM/Config file

buffer size: 65536

Timeout for Config

Download: 0 seconds

Config Download
via DHCP: disabled (next boot: disabled)

pvg03-smp-acc-backup-ip67-1#

pvg03-smp-acc-backup-ip67-1#config

pvg03-smp-acc-backup(config)#boot system sdflash:ie2000-universalk9-mz.152-7.E3.bin

pvg03-smp-acc-backup(config)#do show boot

Load for five secs: 22%/0%; one minute: 10%; five minutes: 7%

Time source is NTP, *08:09:28.823 GMT Mon Jan 2 2006


BOOT path-list : sdflash:ie2000-universalk9-mz.152-7.E3.bin

Config file : flash:/config.text

Private Config file : flash:/private-config.text

Enable Break : no

Manual Boot : no

Allow Dev Key : yes

HELPER path-list :
Auto upgrade : yes

Auto upgrade path :
Boot optimization : enabled

NVRAM/Config file

buffer size: 65536

Timeout for Config

Download: 0 seconds

Config Download
via DHCP: disabled (next boot: disabled)

pvg03-smp-acc-backup(config)#

pvg03-smp-acc-backup(config)#

pvg03-smp-acc-backup(config)#boot config-file sdflash:config.text ------> 配置和bin文件最好在一个存储中

pvg03-smp-acc-backup(config)#do show boot

Load for five secs: 27%/0%; one minute: 12%; five minutes: 8%

Time source is NTP, *08:10:46.535 GMT Mon Jan 2 2006


BOOT path-list : sdflash:ie2000-universalk9-mz.152-7.E3.bin

Config file : sdflash:config.text

Private Config file : flash:/private-config.text

Enable Break : no

Manual Boot : no

Allow Dev Key : yes

HELPER path-list :
Auto upgrade : yes

Auto upgrade path :
Boot optimization : enabled

NVRAM/Config file

buffer size: 65536

Timeout for Config

Download: 0 seconds

Config Download
via DHCP: disabled (next boot: disabled)

pvg03-smp-acc-backup(config)#do wr

pvg03-smp-acc-backup(config)#do reload

pvg03-smp-acc-backup-ip67-1#show boot

Load for five secs: 5%/0%; one minute: 5%; five minutes: 2%

Time source is NTP, *08:02:30.474 GMT Mon Jan 2 2006


BOOT path-list : sdflash:ie2000-universalk9-mz.152-7.E3.bin

Config file : sdflash:config.text

Private Config file : flash:/private-config.text

Enable Break : no

Manual Boot : no

Allow Dev Key : yes

HELPER path-list :
Auto upgrade : yes

Auto upgrade path :
Boot optimization : enabled

NVRAM/Config file

buffer size: 65536

Timeout for Config

Download: 0 seconds

Config Download
via DHCP: disabled (next boot: disabled)



至此,环境恢复完成

接下来,进行bin文件升级过程:

pvg03-smp-acc-backup-ip67-1#

pvg03-smp-acc-backup-ip67-1#cd sdflash:ie2000-universalk9-mz.152-8.E1

pvg03-smp-acc-backup-ip67-1#dir

Directory of sdflash:/ie2000-universalk9-mz.152-8.E1/


8 -rw- 47173 Oct 12 2021 19:01:56 +08:00 Cisco_IE2000_GSD.zip

9 -rw- 149564 Oct 12 2021 19:01:56 +08:00 controlfpga.bin

10 -rw- 242451 Oct 12 2021 19:01:56 +08:00 dc_default_profiles.txt

11 -rw- 27384888 Oct 12 2021 19:01:56 +08:00 ie2000-universalk9-mz.152-8.E1.bin

12 -rw- 948 Oct 12 2021 19:01:56 +08:00 INFO

13 -rw- 1679069 Oct 12 2021 19:01:56 +08:00 jeevesfpga.rbf

14 drw- 0 Oct 12 2021 19:01:56 +08:00 EDScisco

36 drw- 0 Oct 12 2021 14:37:42 +08:00 HTML


2003697664 bytes total (1923452928 bytes free)

pvg03-smp-acc-backup-ip67-1#

pvg03-smp-acc-backup-ip67-1#

pvg03-smp-acc-backup-ip67-1#configure

pvg03-smp-acc-backup(config)#boot system sdflash:ie2000-universalk9-mz.152-8.E1/ie2000-universalk9-mz.152-8.E1.bin

pvg03-smp-acc-backup(config)#do show boot
Load for five secs: 46%/0%; one minute: 16%; five minutes: 8%

Time source is NTP, *08:05:43.622 GMT Mon Jan 2 2006


BOOT path-list : sdflash:ie2000-universalk9-mz.152-8.E1/ie2000-universalk9-mz.152-8.E1.bin

Config file : sdflash:config.text

Private Config file : flash:/private-config.text

Enable Break : no

Manual Boot : no

Allow Dev Key : yes

HELPER path-list :
Auto upgrade : yes

Auto upgrade path :
Boot optimization : enabled

NVRAM/Config file

buffer size: 65536

Timeout for Config

Download: 0 seconds

Config Download
via DHCP: disabled (next boot: disabled)

pvg03-smp-acc-backup(config)#do wr

pvg03-smp-acc-backup(config)#do reload

pvg03-smp-acc-backup-ip67-1#show version

Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 18 IE-2000-16T67P-G-E 15.2(7)E3 IE2000-UNIVERSALK9-M

pvg03-smp-acc-backup-ip67-1#show boot
Load for five secs: 5%/0%; one minute: 23%; five minutes: 8%

Time source is NTP, *08:01:55.737 GMT Mon Jan 2 2006


BOOT path-list : sdflash:ie2000-universalk9-mz.152-7.E3.bin

Config file : sdflash:config.text

Private Config file : flash:/private-config.text

Enable Break : no

Manual Boot : no

Allow Dev Key : yes

HELPER path-list :
Auto upgrade : yes

Auto upgrade path :
Boot optimization : enabled

NVRAM/Config file

buffer size: 65536

Timeout for Config

Download: 0 seconds

Config Download
via DHCP: disabled (next boot: disabled)

pvg03-smp-acc-backup-ip67-1#


可以看到,直接指定文件夹中的bin文件作为BOOT path-list,重启后bin版本并没有成功升级

以往是成功了

这次,把bin文件从文件夹中拿出来试一下

pvg03-smp-acc-backup-ip67-1#

pvg03-smp-acc-backup-ip67-1#dir sdflash:

Directory of sdflash:/


4 -rw- 99 Jan 2 2006 00:00:22 +08:00 env_vars

5 -rw- 12800 Jan 2 2006 08:10:54 +08:00 config.text

6 -rw- 35916 Jan 2 2006 08:11:14 +08:00 pnap.dat

7 drw- 0 Oct 12 2021 19:01:56 +08:00 ie2000-universalk9-mz.152-8.E1

1782 -rw- 27339565 Oct 20 2022 10:34:54 +08:00 ie2000-universalk9-mz.152-7.E3.bin

1783 -rw- 616 Jan 2 2006 08:00:42 +08:00 vlan.dat

1784 -rw- 0 Jan 2 2006 08:00:42 +08:00 ssh.enable

1785 -rw- 16 Jan 2 2006 08:00:44 +08:00 license_upgrade


2003697664 bytes total (1923461120 bytes free)

pvg03-smp-acc-backup-ip67-1#

pvg03-smp-acc-backup-ip67-1#copy sdflash:ie2000-universalk9-mz.152-8.E1/ie2000-universalk9-mz.152-8.E1.bin sdflash:

pvg03-smp-acc-backup-ip67-1#dir sdflash:

Directory of sdflash:/


4 -rw- 99 Jan 2 2006 00:00:22 +08:00 env_vars

5 -rw- 12800 Jan 2 2006 08:10:54 +08:00 config.text

6 -rw- 35916 Jan 2 2006 08:11:14 +08:00 pnap.dat

7 drw- 0 Oct 12 2021 19:01:56 +08:00 ie2000-universalk9-mz.152-8.E1

1782 -rw- 27339565 Oct 20 2022 10:34:54 +08:00 ie2000-universalk9-mz.152-7.E3.bin

1783 -rw- 616 Jan 2 2006 08:00:42 +08:00 vlan.dat

1784 -rw- 0 Jan 2 2006 08:00:42 +08:00 ssh.enable

1785 -rw- 16 Jan 2 2006 08:00:44 +08:00 license_upgrade

1786 -rw- 27384888 Jan 2 2006 08:09:12 +08:00 ie2000-universalk9-mz.152-8.E1.bin


2003697664 bytes total (1896075264 bytes free)

pvg03-smp-acc-backup-ip67-1#

pvg03-smp-acc-backup-ip67-1#configure
pvg03-smp-acc-backup(config)#boot system sdflash:ie2000-universalk9-mz.152-8.E1.bin

pvg03-smp-acc-backup(config)#

pvg03-smp-acc-backup(config)#do sh boot
Load for five secs: 39%/0%; one minute: 25%; five minutes: 20%

Time source is NTP, *08:10:31.217 GMT Mon Jan 2 2006


BOOT path-list : sdflash:ie2000-universalk9-mz.152-8.E1.bin

Config file : sdflash:config.text

Private Config file : flash:/private-config.text

Enable Break : no

Manual Boot : no

Allow Dev Key : yes

HELPER path-list :
Auto upgrade : yes

Auto upgrade path :
Boot optimization : enabled

NVRAM/Config file

buffer size: 65536

Timeout for Config

Download: 0 seconds

Config Download
via DHCP: disabled (next boot: disabled)

pvg03-smp-acc-backup(config)#do wr

pvg03-smp-acc-backup(config)#do reload

pvg03-smp-acc-backup-ip67-1#sh version


Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 18 IE-2000-16T67P-G-E 15.2(8)E1 IE2000-UNIVERSALK9-M


pvg03-smp-acc-backup-ip67-1#


至此,版本升级完成

为什么要先copy到sd卡中进行引导,引导成功后再将新版本copy到flash?

首先,flash中有旧版本,在内存不够的情况下需要删除旧版本,使用新版本,但是有可能新版本引导时会有问题,如果贸然删除旧版本,可能会造成死机,所以先在sd卡中进行新版本引导,如果说引导正常没问题,才可以确定这个新版本是OK的

其次,有时候可能sd卡会出现问题,所以当sd卡中的新版本引导成功后,可以把新版本放入flash卡中,这样,当sd卡故障,系统就会自动查找flash卡,找到新bin文件

注系统引导,先找sd卡,再找flash卡

IE 2000 din upgrade

IE 2000 DIN OS upgrate

升级前为ie2000-universalk9-mz.152-7.E3.bin

升级后为ie2000-universalk9-mz.152-8.E1.bin


升级过程类似

示例

Switch#sh version  

Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 10 IE-2000-8TC-G-E 15.2(7)E2 IE2000-UNIVERSALK9-M


Configuration register is 0xF


Switch#
Switch#

Switch#dir sdflash:

Directory of sdflash:/


4 -rw- 99 Jan 2 2006 00:00:22 +00:00 env_vars

5 -rw- 12819 Jan 2 2006 08:10:48 +00:00 config.text

6 -rw- 35916 Jan 2 2006 08:11:14 +00:00 pnap.dat

7 drw- 0 Oct 12 2021 19:01:56 +00:00 ie2000-universalk9-mz.152-8.E1

1782 -rw- 27339565 Oct 20 2022 10:34:54 +00:00 ie2000-universalk9-mz.152-7.E3.bin

1783 -rw- 616 Jan 2 2006 08:00:42 +00:00 vlan.dat

1784 -rw- 0 Jan 2 2006 08:00:42 +00:00 ssh.enable

1785 -rw- 16 Jan 2 2006 08:00:44 +00:00 license_upgrade

1786 -rw- 27384888 Jan 2 2006 08:09:12 +00:00 ie2000-universalk9-mz.152-8.E1.bin


2003697664 bytes total (1923461120 bytes free)

Switch#

Switch#configure t

Switch(config)#no ip domain-lookup
Switch(config)#do show boot
BOOT path-list : flash:/ie2000-universalk9-mz.152-7.E2/ie2000-universalk9-mz.152-7.E2.bin

Config file : flash:/config.text

Private Config file : flash:/private-config.text

Enable Break : no

Manual Boot : no

Allow Dev Key : yes

HELPER path-list :
Auto upgrade : yes

Auto upgrade path :
Boot optimization : enabled

NVRAM/Config file

buffer size: 65536

Timeout for Config

Download: 0 seconds

Config Download
via DHCP: disabled (next boot: disabled)

Switch(config)#

Switch(config)#

Switch#

Switch#copy flash:config.text sdflash:

Switch#

Switch#conf t

Switch(config)#do dir sdflash:

Directory of sdflash:/


4 -rw- 99 Jan 2 2006 00:00:22 +00:00 env_vars

5 -rw- 1020 Jan 2 2006 00:10:08 +00:00 config.text

6 -rw- 35916 Jan 2 2006 08:11:14 +00:00 pnap.dat

7 drw- 0 Oct 12 2021 19:01:56 +00:00 ie2000-universalk9-mz.152-8.E1

1782 -rw- 27339565 Oct 20 2022 10:34:54 +00:00 ie2000-universalk9-mz.152-7.E3.bin

1783 -rw- 616 Jan 2 2006 08:00:42 +00:00 vlan.dat

1784 -rw- 0 Jan 2 2006 08:00:42 +00:00 ssh.enable

1785 -rw- 16 Jan 2 2006 08:00:44 +00:00 license_upgrade

1786 -rw- 27384888 Jan 2 2006 08:09:12 +00:00 ie2000-universalk9-mz.152-8.E1.bin


2003697664 bytes total (1923473408 bytes free)

Switch(config)#

Switch(config)#

Switch(config)#do dir sdflash:ie2000-universalk9-mz.152-8.E1

Directory of sdflash:/ie2000-universalk9-mz.152-8.E1/


8 -rw- 47173 Oct 12 2021 19:01:56 +00:00 Cisco_IE2000_GSD.zip

9 -rw- 149564 Oct 12 2021 19:01:56 +00:00 controlfpga.bin

10 -rw- 242451 Oct 12 2021 19:01:56 +00:00 dc_default_profiles.txt

11 -rw- 27384888 Oct 12 2021 19:01:56 +00:00 ie2000-universalk9-mz.152-8.E1.bin

12 -rw- 948 Oct 12 2021 19:01:56 +00:00 INFO

13 -rw- 1679069 Oct 12 2021 19:01:56 +00:00 jeevesfpga.rbf

14 drw- 0 Oct 12 2021 19:01:56 +00:00 EDScisco

36 drw- 0 Oct 12 2021 14:37:42 +00:00 HTML

1779 -rw- 130 Jan 2 2006 08:06:30 +00:00 env_vars

1780 -rw- 35916 Jan 2 2006 08:06:32 +00:00 pnap.dat

1781 -rw- 12829 Jan 2 2006 08:06:24 +00:00 config.text


2003697664 bytes total (1923473408 bytes free)

Switch(config)#

Switch(config)#

Switch(config)#boot system sdflash:ie2000-universalk9-mz.152-8.E1/ie2000-universalk9-mz.152-8.E1.bin

Switch(config)#boot config-file sdflash:config.text

Switch(config)#

Switch(config)#do show boot
BOOT path-list : sdflash:ie2000-universalk9-mz.152-8.E1/ie2000-universalk9-mz.152-8.E1.bin

Config file : sdflash:config.text

Private Config file : flash:/private-config.text

Enable Break : no

Manual Boot : no

Allow Dev Key : yes

HELPER path-list :
Auto upgrade : yes

Auto upgrade path :
Boot optimization : enabled

NVRAM/Config file

buffer size: 65536

Timeout for Config

Download: 0 seconds

Config Download
via DHCP: disabled (next boot: disabled)

Switch(config)#

Switch(config)#do wr

Switch(config)#do reload

Switch>

Switch>

Switch>en

Switch#

Switch#

Switch#show version

Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 10 IE-2000-8TC-G-E 15.2(8)E1 IE2000-UNIVERSALK9-M


Configuration register is 0xF

device replace

环境搭建

先搭建一个联网的环境

ZD4322130262  作为堆叠主

ZD4322130182  作为堆叠备

ZD4322220289  作为agg

ZD4322220270  作为备用机


root# run show virtual-chassis  


Virtual Chassis ID: 6cec.23f7.2d8e

Virtual Chassis Mode: Enabled

                                               Mstr           Mixed Route Neighbor List

Member ID  Status   Serial No    Model          prio  Role      Mode  Mode ID  Interface

0 (FPC 0)  Prsnt    ZD4322130262 ex4400-48p     128   Master*      N  VC


Member ID for next new member: 1 (FPC 1)


{master:0}[edit]


root# set virtual-chassis preprovisioned  

root# set virtual-chassis no-split-detection  

root# set virtual-chassis member 0 role routing-engine  

root# set virtual-chassis member 0 serial-number ZD4322130262  

root# set virtual-chassis member 1 role line-card  

root# set virtual-chassis member 1 serial-number ZD4322130182  

root# commit  


插上堆叠线缆

root# run show virtual-chassis    


Preprovisioned Virtual Chassis

Virtual Chassis ID: 6cec.23f7.2d8e

Virtual Chassis Mode: Enabled

                                               Mstr           Mixed Route Neighbor List

Member ID  Status   Serial No    Model          prio  Role      Mode  Mode ID  Interface

0 (FPC 0)  Prsnt    ZD4322130262 ex4400-48p     129   Master*      N  VC   1  vcp-255/1/0

                                                                          1  vcp-255/1/1

1 (FPC 1)  Prsnt    ZD4322130182 ex4400-48p       0   Backup       N  VC   0  vcp-255/1/0

                                                                          0  vcp-255/1/1


{master:0}[edit]


堆叠完成

创建vlan82

root# set vlans vlan82 vlan-id 82 description mgmt  

root# commit  


堆叠备下联电口接vlan82的流量

root# set interfaces ge-1/0/10 unit 0 family ethernet-switching interface-mode access  

root# set interfaces ge-1/0/10 unit 0 family ethernet-switching vlan members vlan82       

root# commit  


在agg交换机上设置vlan82的vlan网关


root> configure  

root# set vlans vlan82 vlan-id 82 description mgmt  

root# set interfaces irb unit 82 family inet address 192.168.82.254/24  

root# set vlans vlan82 l3-interface irb.82  

root# commit  


查看插槽

root# run show chassis hardware  

Hardware inventory:

Item             Version  Part number  Serial number     Description

Chassis                                ZD4322220289      EX4400-48P

Pseudo CB 0      

Routing Engine 0          BUILTIN      BUILTIN           RE-EX4400-48P

FPC 0            REV 10   650-114383   ZD4322220289      EX4400-48P

 CPU                     BUILTIN      BUILTIN           FPC CPU

 PIC 0          REV 10   BUILTIN      BUILTIN           48x10M/100M/1G

 PIC 1          REV 10   650-114383   ZD4322220289      2x100G QSFP28 VCP

 PIC 2          REV 04   650-107358   YP4322030560      4x10G SFP+

Power Supply 0   REV 01   640-107109   1EA2C0608WJ       JPSU-1600-C-AC-AFO

Fan Tray 0                                               Fan Module, Airflow Out (AFO)

Fan Tray 1                                               Fan Module, Airflow Out (AFO)


{master:0}[edit]


查看接口

root# run show interfaces terse  

Interface               Admin Link Proto    Local                 Remote

ge-0/0/0                up    down

ge-0/0/0.0              up    down eth-switch

gr-0/0/0                up    up

pfe-0/0/0               up    up

pfe-0/0/0.16383         up    up   inet    

                                  inet6    

pfh-0/0/0               up    up

pfh-0/0/0.16383         up    up   inet    

pfh-0/0/0.16384         up    up   inet    

ge-0/0/1                up    down

ge-0/0/1.0              up    down eth-switch

ge-0/0/2                up    down

ge-0/0/2.0              up    down eth-switch

ge-0/0/3                up    down

ge-0/0/3.0              up    down eth-switch

ge-0/0/4                up    down

ge-0/0/4.0              up    down eth-switch

ge-0/0/5                up    down

ge-0/0/5.0              up    down eth-switch

ge-0/0/6                up    down

ge-0/0/6.0              up    down eth-switch

ge-0/0/7                up    down

ge-0/0/7.0              up    down eth-switch

ge-0/0/8                up    down

ge-0/0/8.0              up    down eth-switch

ge-0/0/9                up    down

ge-0/0/9.0              up    down eth-switch

ge-0/0/10               up    down

ge-0/0/10.0             up    down eth-switch

ge-0/0/11               up    down

ge-0/0/11.0             up    down eth-switch

ge-0/0/12               up    down

ge-0/0/12.0             up    down eth-switch

ge-0/0/13               up    down

ge-0/0/13.0             up    down eth-switch

ge-0/0/14               up    down

ge-0/0/14.0             up    down eth-switch

ge-0/0/15               up    down

ge-0/0/15.0             up    down eth-switch

ge-0/0/16               up    down

ge-0/0/16.0             up    down eth-switch

ge-0/0/17               up    down

ge-0/0/17.0             up    down eth-switch

ge-0/0/18               up    down

ge-0/0/18.0             up    down eth-switch

ge-0/0/19               up    down      

ge-0/0/19.0             up    down eth-switch

ge-0/0/20               up    down

ge-0/0/20.0             up    down eth-switch

ge-0/0/21               up    down

ge-0/0/21.0             up    down eth-switch

ge-0/0/22               up    down

ge-0/0/22.0             up    down eth-switch

ge-0/0/23               up    down

ge-0/0/23.0             up    down eth-switch

ge-0/0/24               up    down

ge-0/0/24.0             up    down eth-switch

ge-0/0/25               up    down

ge-0/0/25.0             up    down eth-switch

ge-0/0/26               up    down

ge-0/0/26.0             up    down eth-switch

ge-0/0/27               up    down

ge-0/0/27.0             up    down eth-switch

ge-0/0/28               up    down

ge-0/0/28.0             up    down eth-switch

ge-0/0/29               up    down

ge-0/0/29.0             up    down eth-switch

ge-0/0/30               up    down

ge-0/0/30.0             up    down eth-switch

ge-0/0/31               up    down

ge-0/0/31.0             up    down eth-switch

ge-0/0/32               up    down

ge-0/0/32.0             up    down eth-switch

ge-0/0/33               up    down

ge-0/0/33.0             up    down eth-switch

ge-0/0/34               up    down

ge-0/0/34.0             up    down eth-switch

ge-0/0/35               up    down

ge-0/0/35.0             up    down eth-switch

ge-0/0/36               up    down

ge-0/0/36.0             up    down eth-switch

ge-0/0/37               up    down

ge-0/0/37.0             up    down eth-switch

ge-0/0/38               up    down

ge-0/0/38.0             up    down eth-switch

ge-0/0/39               up    down

ge-0/0/39.0             up    down eth-switch

ge-0/0/40               up    down

ge-0/0/40.0             up    down eth-switch

ge-0/0/41               up    down

ge-0/0/41.0             up    down eth-switch

ge-0/0/42               up    down      

ge-0/0/42.0             up    down eth-switch

ge-0/0/43               up    down

ge-0/0/43.0             up    down eth-switch

ge-0/0/44               up    down

ge-0/0/44.0             up    down eth-switch

ge-0/0/45               up    down

ge-0/0/45.0             up    down eth-switch

ge-0/0/46               up    down

ge-0/0/46.0             up    down eth-switch

ge-0/0/47               up    down

ge-0/0/47.0             up    down eth-switch

xe-0/2/0                up    up

xe-0/2/0.0              up    up   eth-switch

xe-0/2/1                up    up

xe-0/2/1.0              up    up   eth-switch

bme0                    up    up

bme0.0                  up    up   inet     128.0.0.1/2      

                                           128.0.0.4/2      

                                           128.0.0.16/2    

                                           128.0.0.63/2    

cbp0                    up    up

dsc                     up    up

esi                     up    up        

fti0                    up    up

gre                     up    up

ipip                    up    up

irb                     up    up

irb.0                   up    up   inet    

                                  inet6    fe80::fac1:1600:47:4c80/64

irb.82                  up    down inet     192.168.82.254/24

jsrv                    up    up

jsrv.1                  up    up   inet     128.0.0.127/2    

lo0                     up    up

lo0.16385               up    up   inet    

lsi                     up    up

me0                     up    down

me0.0                   up    down eth-switch

mtun                    up    up

pimd                    up    up

pime                    up    up

pip0                    up    up

tap                     up    up

vme                     up    down

vme.0                   up    down inet    

                                  inet6    fe80::fac1:16ff:fe47:4c81/64

vtep                    up    up        


{master:0}[edit]

root# run show virtual-chassis  


Virtual Chassis ID: 17ab.70aa.794a

Virtual Chassis Mode: Enabled

                                               Mstr           Mixed Route Neighbor List

Member ID  Status   Serial No    Model          prio  Role      Mode  Mode ID  Interface

0 (FPC 0)  Prsnt    ZD4322220289 ex4400-48p     128   Master*      N  VC


Member ID for next new member: 1 (FPC 1)


{master:0}[edit]


agg一根光纤连接堆叠主,一根光纤连接堆叠备,需要做跨机箱的链路捆绑

root# set chassis aggregated-devices ethernet device-count 2        ------>  2是指聚会口可以同时捆绑多少物理接口,1-64

root# set interfaces xe-0/2/0 ether-options 802.3ad ae0             ------>  ae0是聚合口的名字

root# set interfaces xe-0/2/1 ether-options 802.3ad ae0    

root# set interfaces ae0 aggregated-ether-options lacp active

root# commit check  

[edit interfaces xe-0/2/0]

 'unit 0'

    logical unit is not allowed on aggregated links

[edit interfaces xe-0/2/1]

 'unit 0'

    logical unit is not allowed on aggregated links

error: configuration check-out failed


{master:0}[edit]


root# delete interfaces xe-0/2/0 unit 0

root# delete interfaces xe-0/2/1 unit 0    

root# commit  

root> show virtual-chassis  


Preprovisioned Virtual Chassis

Virtual Chassis ID: 6cec.23f7.2d8e

Virtual Chassis Mode: Enabled

                                               Mstr           Mixed Route Neighbor List

Member ID  Status   Serial No    Model          prio  Role      Mode  Mode ID  Interface

0 (FPC 0)  Prsnt    ZD4322130262 ex4400-48p     129   Master*      N  VC   1  vcp-255/1/0

                                                                          1  vcp-255/1/1

1 (FPC 1)  Prsnt    ZD4322130182 ex4400-48p       0   Linecard     N  VC   0  vcp-255/1/0

                                                                          0  vcp-255/1/1


{master:0}


root# run show configuration | display set | match ae0  

set interfaces xe-0/2/0 ether-options 802.3ad ae0

set interfaces xe-1/2/0 ether-options 802.3ad ae0

set interfaces ae0 aggregated-ether-options lacp active


{master:0}[edit]


root# run show interfaces ae0  

Physical interface: ae0, Enabled, Physical link is Down

 Interface index: 750, SNMP ifIndex: 718

 Link-level type: Ethernet, MTU: 1514, Speed: Unspecified, BPDU Error: None,

 Ethernet-Switching Error: None, MAC-REWRITE Error: None, Loopback: Disabled,

 Source filtering: Disabled, Flow control: Disabled, Minimum links needed: 1,

 Minimum bandwidth needed: 1bps

 Device flags   : Present Running

 Interface flags: Hardware-Down SNMP-Traps Internal: 0x4000

 Current address: f8:c1:16:46:5d:40, Hardware address: f8:c1:16:46:5d:40

 Last flapped   : 2023-01-04 15:13:12 UTC (00:00:08 ago)

 Input rate     : 0 bps (0 pps)

 Output rate    : 0 bps (0 pps)


{master:0}[edit]


后来发现,之所以ae0接口的up的,而链路状态是down的,是因为这条链路上还没有任何流量通行

完成trunk封装即可

root# set interfaces ae0 unit 0 family ethernet-switching interface-mode trunk                  

root# set interfaces ae0 unit 0 family ethernet-switching vlan members all          

root# commit  


login: rootLast login: Wed Jan  4 13:54:25 on ttyu0


--- JUNOS 21.1R3-S4.2 Kernel 64-bit  JNPR-11.0-20220930.3578701_buil

root@:RE:0% cli

root> configure  

root# set interfaces ae0 unit 0 family ethernet-switching interface-mode trunk                  

root# set interfaces ae0 unit 0 family ethernet-switching vlan members all

root# commit  


trunk封装完后,物理链路也up了  

root# run show interfaces ae0  

Physical interface: ae0, Enabled, Physical link is Up

 Interface index: 640, SNMP ifIndex: 621

 Link-level type: Ethernet, MTU: 1514, Speed: 20Gbps, BPDU Error: None,

 Ethernet-Switching Error: None, MAC-REWRITE Error: None, Loopback: Disabled,

 Source filtering: Disabled, Flow control: Disabled, Minimum links needed: 1,

 Minimum bandwidth needed: 1bps

 Device flags   : Present Running

 Interface flags: SNMP-Traps Internal: 0x4000

 Current address: f8:c1:16:47:4c:c0, Hardware address: f8:c1:16:47:4c:c0

 Last flapped   : 2023-01-04 15:25:12 UTC (00:00:08 ago)

 Input rate     : 2104 bps (1 pps)

 Output rate    : 3800 bps (1 pps)


 Logical interface ae0.0 (Index 604) (SNMP ifIndex 615)

   Flags: Up SNMP-Traps 0x24024000 Encapsulation: Ethernet-Bridge

   Statistics        Packets        pps         Bytes          bps

   Bundle:

       Input :             0          0             0            0

       Output:             5          0           934            0

   Adaptive Statistics:

       Adaptive Adjusts:          0

       Adaptive Scans  :          0

       Adaptive Updates:          0

   Protocol eth-switch, MTU: 1514      

     Flags: Trunk-Mode


{master:0}[edit]


以思科工业交换机模拟下联设备,配置和vlan82同一网段的IP,网关落在agg上

Switch#show ip interface brief  

Interface              IP-Address      OK? Method Status                Protocol

Vlan1                  unassigned      YES unset  administratively down down    

FastEthernet1/1        unassigned      YES unset  down                  down    

FastEthernet1/2        unassigned      YES unset  up                    up      

FastEthernet1/3        unassigned      YES unset  down                  down    

FastEthernet1/4        unassigned      YES unset  down                  down    

FastEthernet1/5        unassigned      YES unset  down                  down    

FastEthernet1/6        unassigned      YES unset  down                  down    

FastEthernet1/7        unassigned      YES unset  down                  down    

FastEthernet1/8        unassigned      YES unset  down                  down    

GigabitEthernet1/1     unassigned      YES unset  down                  down    

GigabitEthernet1/2     unassigned      YES unset  down                  down    

Switch(config)#

Switch(config)#interface f1/2

Switch(config-if)#no switchport

Switch(config-if)#ip add 192.168.82.1 255.255.255.0

Switch(config-if)#no sh

Switch(config-if)#exi

Switch(config)#

Switch(config)#do sh ip int br

Interface              IP-Address      OK? Method Status                Protocol

Vlan1                  unassigned      YES unset  administratively down down    

FastEthernet1/1        unassigned      YES unset  down                  down    

FastEthernet1/2        192.168.82.1    YES manual up                    up      

FastEthernet1/3        unassigned      YES unset  down                  down    

FastEthernet1/4        unassigned      YES unset  down                  down    

FastEthernet1/5        unassigned      YES unset  down                  down    

FastEthernet1/6        unassigned      YES unset  down                  down    

FastEthernet1/7        unassigned      YES unset  down                  down    

FastEthernet1/8        unassigned      YES unset  down                  down    

GigabitEthernet1/1     unassigned      YES unset  down                  down    

GigabitEthernet1/2     unassigned      YES unset  down                  down    

Switch(config)#

Switch(config)#do ping 192.168.82.254

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.82.254, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/205/1015 ms

Switch(config)#


下联设备ping网关通

网络基础环境搭建完成

接下来模拟堆叠备设备出故障,需要用备机来进行设备更换操作


设备更换操作按照以下步骤严格执行:

  • 更换设备需提前检查设备版本,确保替换设备正确(4400-48P:21.1R3-S4.2,4300-48P:18.4R2-S7.4)
  • 替换设备前后确保网线接入配线架的顺序不变;若有飞线的情况,检查跳线端口所属的vlan,在不影响生产的情况下修改端口vlan配置恢复跳线按顺序插入配线架;
  • 更换设备前需提前抓取mac地址表信息,与更换后的mac地址表进行对比;
  • 在替换设备后的mac中随机选取3-5个mac地址,上防火墙查看arp获取ip地址信息,ping测试;
  • 更换后检查网络可达性,确保能远程ssh进行管理;


实现

1、在开始时,四台交换机版本都为4400-48P:21.1R3-S4.2


2、本实验中,不涉及配线架

在实际项目中,往往配线架和交换机端口的一一对应的,如果说存在交换机和配线架交叉互连的情况,在不影响生产的情况下,可以把这两个交叉端口的配置互换,从而在连线上实现一对一


3、更换设备前抓取mac地址表信息

root# run show ethernet-switching table  


MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static, C - Control MAC

          SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC)


Ethernet switching table : 3 entries, 3 learned

Routing instance : default-switch

   Vlan                MAC                 MAC         Age    Logical                NH        RTR  

   name                address             flags              interface              Index     ID

   default             f8:c1:16:47:4c:80   D             -   ae0.0                  0         0        

   vlan82              c0:14:fe:ca:1b:c1   D             -   ge-1/0/10.0            0         0        

   vlan82              f8:c1:16:47:4c:80   D             -   ae0.0                  0         0        


{master:0}[edit]

root# run show ethernet-switching table | except ae0  


MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static, C - Control MAC

          SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC)


Ethernet switching table : 3 entries, 3 learned

Routing instance : default-switch

   Vlan                MAC                 MAC         Age    Logical                NH        RTR  

   name                address             flags              interface              Index     ID

   vlan82              c0:14:fe:ca:1b:c1   D             -   ge-1/0/10.0            0         0        


{master:0}[edit]


之所以要排除从聚合口学习到的mac地址,是因为聚合口是上连口,并且作为trunk连接,放行所以vlan,所以从聚合口可以学习到很多mac地址,甚至是其他不相干设备的mac地址

而我们关心的是本故障设备下连的上网终端更换后是否可以成功上线,所以我们只需要看下连接口学习到的mac就行


接下来,堆叠备设备出现故障,无法使用

我们首先需要把备设备上的堆叠线缆拔掉

由于是在堆叠环境中,新设备又是一个空配,所以我们只需要在主设备上重新指定member 1为备机就行了

(因为故障设备就是member 1)

root# run show virtual-chassis  


Preprovisioned Virtual Chassis

Virtual Chassis ID: 6cec.23f7.2d8e

Virtual Chassis Mode: Enabled

                                               Mstr           Mixed Route Neighbor List

Member ID  Status   Serial No    Model          prio  Role      Mode  Mode ID  Interface

0 (FPC 0)  Prsnt    ZD4322130262 ex4400-48p     129   Master*      N  VC   1  vcp-255/1/0

                                                                          1  vcp-255/1/1

1 (FPC 1)  Prsnt    ZD4322130182 ex4400-48p       0   Linecard     N  VC   0  vcp-255/1/0

                                                                          0  vcp-255/1/1


{master:0}[edit]

root# run show configuration |display set |match virtual  

set virtual-chassis preprovisioned

set virtual-chassis no-split-detection

set virtual-chassis member 0 role routing-engine

set virtual-chassis member 0 serial-number ZD4322130262

set virtual-chassis member 1 role line-card

set virtual-chassis member 1 serial-number ZD4322130182


{master:0}[edit]

root# delete virtual-chassis member 1 serial-number ZD4322130182

root# set virtual-chassis member 1 serial-number ZD4322220270


给备机插上堆叠线缆

root# run show virtual-chassis  


Preprovisioned Virtual Chassis

Virtual Chassis ID: 6cec.23f7.2d8e

Virtual Chassis Mode: Enabled

                                               Mstr           Mixed Route Neighbor List

Member ID  Status   Serial No    Model          prio  Role      Mode  Mode ID  Interface

0 (FPC 0)  Prsnt    ZD4322130262 ex4400-48p     129   Master*      N  VC   1  vcp-255/1/0

                                                                          1  vcp-255/1/1

1 (FPC 1)  Prsnt    ZD4322220270 ex4400-48p       0   Linecard     N  VC   0  vcp-255/1/0

                                                                          0  vcp-255/1/1


{master:0}[edit]


堆叠备设备故障,下架,备机上线成功

把故障设备上插的线移插到备机上(互连光纤和下连设备)

更换设备后抓取mac地址表信息

root# run show ethernet-switching table | except ae0  


MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static, C - Control MAC

          SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC)


Ethernet switching table : 3 entries, 3 learned

Routing instance : default-switch

   Vlan                MAC                 MAC         Age    Logical                NH        RTR  

   name                address             flags              interface              Index     ID

   vlan82              c0:14:fe:ca:1b:c1   D             -   ge-1/0/10.0            0         0        


{master:0}[edit]

可以看到,mac地址表前后是一致的


4、在替换设备后的mac中随机选取3-5个mac地址,上防火墙(三层设备)查看arp获取ip地址信息,ping测试

root# run show arp    

MAC Address       Address         Name                      Interface               Flags

c0:14:fe:ca:1b:c1 192.168.82.1    192.168.82.1              irb.82 [ae0.0]          none


{master:0}[edit]


用下连设备去ping网关,通

Switch(config)#do ping 192.168.82.254

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.82.254, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/205/1015 ms

Switch(config)#

更换成功

标签:00,upgrade,08,up,replace,down,ge,config
From: https://blog.51cto.com/u_15450494/6069374

相关文章

  • vue2 - router-link 的replace属性与push属性,编程式路由导航,路由的缓存
    1.router-link的replace属性与push属性//替换游览器历史记录游览器没有记录<router-linkreplace...></router-link>//追加游览器历史记录游览器有记录<router-l......
  • 使用 upgrade-assistant 升级Framework项目到.NET
    只在VS2022有效首先安装扩展包 upgrade-assistant重启后打开netframework项目,并在VS中切换到终端切换到当前项目的文件夹运行升级命令、根据条件进行选择就行......
  • C# Replace
    阅读目录前言一、String.Replace()的几个重载1、Replace(Char,Char)2、String.Replace(String,String) 3、Replace(String,String,StringComparison)4、Rep......
  • str_replace函数详解
    在开发过程中,字符串的操作是很频繁的,这几天有看PHP手册中讲解str_replace函数的讲解,不是很明白,特作如下笔记,以作备忘。     函数原型:mixed str_replace ( mixed $......
  • C# Replace:一个熟悉而又陌生的替换
    前言Replace的作用就是,通过指定内容的替换,返回一个新字符串。返回值中,已将当前字符串中的指定Unicode字符或String的所有匹配项,替换为指定的新的Unicode字符或S......
  • Gooreplacer网址重定向
    在浏览器的扩展中搜索Gooreplacer并安装,配置需要重定向的两个网址,  并可以使用沙箱测试是否成功 ......
  • 1234.replace-the-substring-for-balanced-string 替换子串得到平衡字符串
    问题描述1234.替换子串得到平衡字符串解题思路利用两个指针left,right,right从0开始遍历,如果[left,right]之外的字符串中,每个字符出现次数都小于或等于n/4,说明替换[lef......
  • ReplaceGoogleCDN扩展 V2版本和V3版本的区别
    文档说明:只记录关键地方;2023-02-11环境:chromium内核备注:firefox目前不支持declarativeNetRequest区别:v2版本允许通过javascript脚本动态修改HTTP请求头、......
  • MySQL中 replace 替换字符
    阅读目录语法:replace(field,search,replace)说明:field-数据库表的列名search-需要替换的字符串replace-替换成的字符串语义:将列名:field中出现......
  • 利用AutoUpgrade工具升级数据库
    0.当升级到12cR2及以上的版本时,可以使用AutoUpgrade工具来完成升级工作。具体可以参考MOS文档AutoUpgradeTool(DocID2485457.1)。在本示例中,源数据库的版本为:11.2.0.4......