Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

TÀI LIỆU NÂNG CẤP OS

CISCO ASR920 BẰNG FTP

SỬ DỤNG AGG VAI TRÒ FTP


SERVER

Login vào thiết bị


LSW-HUPL24-10.250.29.145

User Access Verification

Username: cisco
Password: cisco123
LSW-HUPL24>ena
Password: cisco123
LSW-HUPL24#

Cấu hình FTP:

LSW-HUPL24#conf t

Enter configuration commands, one per line. End with


CNTL/Z.

LSW-HUPL24(config)#ip ftp username cisco

LSW-HUPL24(config)#ip ftp password cisco123

ip ftp source-interface Loopback0

LSW-HUPL24(config)#end
Xác định thông tin AGG:
LSW-HUPL24#show ip bgp summary
Neighbor V AS MsgRcvd MsgSent TblVer
InQ OutQ Up/Down State/PfxRcd
10.250.16.16 4 65329 52533 2462 2621
0 0 18:44:39 116
10.250.16.18 4 65329 46742 2458 2621
0 0 18:44:38 116

LSW-HUPL24#

AGG: 10.250.16.16 và 10.250.16.18

Copy file OS vào thiết bị AGG

Sử dụng phần mềm: WINSCP


Thư mục nguồn: Là thư mục chứa file OS.
Thư mục đích: /var/home/tucomas

Sau khi copy hoàn tất 100%

Ví dụ trên copy OS và AGG – 10.250.16.16

Lưu ý: Nếu trường hợp copy chậm, thực hiện như sau:

@AGG-QNNTBH11_RE0# show | display set | match policer-telnet-


ssh | match bandwidth-limit
set groups PROTECT_RE_FILTER firewall policer policer-telnet-ssh if-
exceeding bandwidth-limit 2m

{master}[edit]
@AGG-QNNTBH11_RE0# set groups PROTECT_RE_FILTER firewall
policer policer-telnet-ssh if-exceeding bandwidth-limit 500m

{master}[edit]
@AGG-QNNTBH11_RE0# show | compare
[edit groups PROTECT_RE_FILTER firewall policer policer-telnet-ssh
if-exceeding]
- bandwidth-limit 2m;
- burst-size-limit 75k;
+ bandwidth-limit 500m;
+ burst-size-limit 75k;

{master}[edit]
xxx@AGG-QNNTBH11_RE0# commit
re0:
configuration check succeeds
re1:
commit complete
re0:
commit complete

{master}[edit]
huyvla@AGG-QNNTBH11_RE0#

Sau khi copy xong, thực hiện rollback. Trả lại cấu hình giới hạn băng
thông ssh 2m như cũ.

Copy OS trên thiết bị Cisco ASR920


LSW-HUPL24#copy ftp://tucomas:Tulam%402019@10.250.16.16
bootflash:
Address or name of remote host [10.250.16.16]?
Source filename [asr920-universalk9_npe.16.12.05.SPA.bin]?
Destination filename [asr920-universalk9_npe.16.12.05.SPA.bin]?

Kiểm tra file OS thiết bị Cisco ASR920


LSW-HUPV24#dir flash: | inc 12.05
17 -rw- 467250627 Dec 8 2021 13:37:27 +07:00 asr920-
universalk9_npe.16.12.05.SPA.bin
LSW-HUPV24#

Kiểm tra tính tương thích của OS thiết bị Cisco ASR920


LSW-HUPV24#verify asr920-
universalk9_npe.16.12.05.SPA.bin

....

Embedded Hash SHA1 : 7AEE0B2F8A168CEF2CF0919A0E2AD5152B141445


Computed Hash SHA1 : 7AEE0B2F8A168CEF2CF0919A0E2AD5152B141445
Cấu hình nâng cấp:
LSW-HUPV24(config)#boot system flash asr920-
universalk9_npe.16.12.05.SPA.bin
end
!

Lưu cấu hình và reload router:

LSW-HUPV24# write memory


LSW-HUPV24# reload

Lưu ý: Trên AGG đã copy OS, Deactivate filter trên loopback0 để tránh lỗi copy OS trên TDM:

tucomas@AGG-QNNTBH11_RE0# deactivate interfaces lo0.0 family inet filter

{master}[edit]
tucomas@AGG-QNNTBH11_RE0# show | compare
[edit interfaces lo0 unit 0 family inet]
! inactive: filter { ... }

{master}[edit]
tucomas@AGG-QNNTBH11_RE0# commt
^
unknown command.
tucomas@AGG-QNNTBH11_RE0# commit confirmed
re0:
configuration check succeeds
commit confirmed will be automatically rolled back in 10 minutes unless confirmed
re1:
commit complete
commit confirmed will be automatically rolled back in 10 minutes unless confirmed
re0:
commit complete

# commit confirmed will be rolled back in 10 minutes


{master}[edit]
tucomas@AGG-QNNTBH11_RE0#

# commit confirmed will be rolled back in 10 minutes


{master}[edit]
tucomas@AGG-QNNTBH11_RE0#

# commit confirmed will be rolled back in 10 minutes


{master}[edit]
tucomas@AGG-QNNTBH11_RE0#

# commit confirmed will be rolled back in 10 minutes


{master}[edit]
tucomas@AGG-QNNTBH11_RE0# commit
re0:
configuration check succeeds
re1:
commit complete

re0:
commit complete

{master}[edit]
tucomas@AGG-QNNTBH11_RE0#

{master}[edit]
tucomas@AGG-QNNTBH11_RE0#

{master}[edit]
tucomas@AGG-QNNTBH11_RE0#

{master}[edit]
tucomas@AGG-QNNTBH11_RE0#

{master}[edit]
tucomas@AGG-QNNTBH11_RE0#

{master}[edit]
tucomas@AGG-QNNTBH11_RE0#

{master}[edit]
tucomas@AGG-QNNTBH11_RE0#

{master}[edit]
tucomas@AGG-QNNTBH11_RE0#

{master}[edit]
tucomas@AGG-QNNTBH11_RE0# show | compare rollback 1

{master}[edit]
tucomas@AGG-QNNTBH11_RE0# show | compare rollback 2
[edit interfaces lo0 unit 0 family inet]
! inactive: filter { ... }

{master}[edit]
tucomas@AGG-QNNTBH11_RE0# show interfaces lo0
unit 0 {
family inet {
inactive: filter {
input PROTECT_RE_FILTER;
}
address 10.250.32.11/32;
}
}

Sau khi thực hiện nâng cấp xong, thực hiện rollback trả lại cấu hình filter ban đầu.
{master}[edit]
tucomas@AGG-QNNTBH11_RE0# rollback 2
load complete

{master}[edit]
tucomas@AGG-QNNTBH11_RE0# show | compare
[edit interfaces lo0 unit 0 family inet]
! active: filter { ... }

{master}[edit]
tucomas@AGG-QNNTBH11_RE0# commit
re0:
configuration check succeeds
re1:
commit complete
re0:
commit complete

{master}[edit]
tucomas@AGG-QNNTBH11_RE0#
{master}[edit]
tucomas@AGG-QNNTBH11_RE0# show interfaces lo0
unit 0 {
family inet {
filter {
input PROTECT_RE_FILTER;
}
address 10.250.32.11/32;
}
}

{master}[edit]
tucomas@AGG-QNNTBH11_RE0#

You might also like