簡介
本文檔介紹在託管StarOS虛擬網路功能(VNF)的Ultra-M設定中更換故障枝葉交換機(Nexus 93180YC-EX)所需的步驟。
背景資訊
Ultra-M是經過預打包和驗證的虛擬化移動資料包核心解決方案,旨在簡化VNF的部署。Ultra-M設定中的伺服器連線到三種不同型別的交換機:
Ultra-M設定的網路拓撲如圖所示。
UltraM網路拓撲
注意:網路拓撲只是一個表示形式,交換機之間的連線可能略有不同,具體取決於所部署的解決方案。本文檔面向熟悉Cisco Ultra-M設定和Nexus交換機的思科人員。
縮寫
VNF |
虛擬網路功能 |
API |
應用程式程式設計介面 |
澳門幣 |
程式方法 |
DI |
分散式例項 |
FTP |
檔案傳輸通訊協定 |
SFTP |
安全檔案傳輸通訊協定 |
BGP |
邊界網關協定 |
BFD |
雙向轉發檢測 |
MoP的工作流程
替換過程的高級工作流
Ultra-M設定中的枝葉交換機
在Ultra-M設定中,枝葉交換機處理以下網路:
- OpenStack網路 — 處理租戶、內部API、儲存網路、儲存管理網路
- StarOS VNF網路 — 處理DI網路和服務網路
- 上行鏈路網路 — 到主幹交換機的上行鏈路連線
Ultra-M設定中的每個機架都有一對枝葉交換機。枝葉交換機處理的網路在
機架的枝葉交換機。因此,更換枝葉交換機不會影響網路。
必要條件
1.進行交換器替換之前,請先使用ftp/sftp從枝葉交換器備份組態檔。
POD1-leaf1# copy running-config sftp:
Enter destination filename: [POD1-leaf1-running-config] backup-leaf-1-cfg
Enter vrf (If no input, current vrf 'default' is considered): management
Enter hostname for the sftp server: 10.10.10.10
Enter username: admin
The authenticity of host '10.10.10.10 (10.10.10.10)' can't be established.
RSA key fingerprint is SHA256:fnbUmd2mL5yE94zxrRoKAlvYfQbheXJfQox7m3XfpIU.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.10.10.10' (RSA) to the list of known hosts.
User Access Verification
Password:
Connected to 10.10.10.10
sftp> put /var/tmp/vsh/backup-leaf-1-cfg backup-leaf-1-cfg
Uploading /var/tmp/vsh/backup-leaf-1-cfg to /backup-leaf-1-cfg
/var/tmp/vsh/backup-leaf-1-cfg 100% 33KB 33.2KB/s 00:00
sftp> exit
Copy complete, now saving to disk (please wait)...
Copy complete.
POD1-leaf1#
2.檢查交換器中執行的目前軟體版本,並記下它。
POD1-leaf1# show version
<snip>
Software
BIOS: version 07.59
NXOS: version 7.0(3)I7(3)
BIOS compile time: 08/26/2016
NXOS image file is: bootflash:///nxos.7.0.3.I7.3.bin
NXOS compile time: 2/12/2018 13:00:00 [02/12/2018 19:13:48]
3.檢查當前的許可證權利。
POD1-leaf1 # show license usage
Feature Ins Lic Status Expiry Date Comments
Count
--------------------------------------------------------------------------------
N9K_LIC_1G No - Unused -
VPN_FABRIC No - Unused -
FCOE_NPV_PKG No - Unused -
SECURITY_PKG No 0 Unused -
N9K_UPG_EX_10G No - Unused -
TP_SERVICES_PKG No - Unused -
NXOS_ADVANTAGE_GF No - Unused -
NXOS_ADVANTAGE_M4 No - Unused -
NXOS_ADVANTAGE_XF No - Unused -
NXOS_ESSENTIALS_GF No - Unused -
NXOS_ESSENTIALS_M4 No - Unused -
NXOS_ESSENTIALS_XF No - Unused -
SAN_ENTERPRISE_PKG No - Unused -
PORT_ACTIVATION_PKG No 0 Unused -
NETWORK_SERVICES_PKG No - Unused -
NXOS_ADVANTAGE_M8-16 No - Unused -
NXOS_ESSENTIALS_M8-16 No - Unused -
FC_PORT_ACTIVATION_PKG No 0 Unused -
LAN_ENTERPRISE_SERVICES_PKG Yes - In use Never -
--------------------------------------------------------------------------------
4.記下連線到交換機的物理電纜和埠狀態。
POD1-leaf1 # show int status
5.檢查埠通道、邊界網關協定(BGP)對等體以及雙向轉發檢測(BFD)鄰居的當前狀態。
POD1-leaf1 # show port-channel summary
POD1-leaf1 # show ip bgp summary vrf all
POD1-leaf1 # show ipv6 bgp summary vrf all
POD1-leaf1 # show bfd neighbor vrf all
POD1-leaf1 # show bfd ipv6 neighbor vrf all
交換機更換過程
1.將新交換機安裝到機架中,並將電纜連線到交換機,如前所述。有關交換機安裝的步驟,請參閱:Cisco Nexus 93180YC-EX NX-OS模式硬體安裝指南
2.執行初始IP配置,以便通過管理IP地址訪問交換機以進行進一步配置。執行初始IP設定的步驟為:將交換機連線到網路
3.檢查Nexus交換機的軟體版本,並根據此連結升級/降級到以前的軟體版本:Cisco Nexus 9000系列NX-OS軟體升級和降級指南
4.檢查新Nexus交換機的許可證級別,確認它符合舊許可證設定。
POD1-leaf1 # show license usage
Feature Ins Lic Status Expiry Date Comments
Count
--------------------------------------------------------------------------------
N9K_LIC_1G No - Unused -
VPN_FABRIC No - Unused -
FCOE_NPV_PKG No - Unused -
SECURITY_PKG No 0 Unused -
N9K_UPG_EX_10G No - Unused -
TP_SERVICES_PKG No - Unused -
NXOS_ADVANTAGE_GF No - Unused -
NXOS_ADVANTAGE_M4 No - Unused -
NXOS_ADVANTAGE_XF No - Unused -
NXOS_ESSENTIALS_GF No - Unused -
NXOS_ESSENTIALS_M4 No - Unused -
NXOS_ESSENTIALS_XF No - Unused -
SAN_ENTERPRISE_PKG No - Unused -
PORT_ACTIVATION_PKG No 0 Unused -
NETWORK_SERVICES_PKG No - Unused -
NXOS_ADVANTAGE_M8-16 No - Unused -
NXOS_ESSENTIALS_M8-16 No - Unused -
FC_PORT_ACTIVATION_PKG No 0 Unused -
LAN_ENTERPRISE_SERVICES_PKG Yes - In use Never -
--------------------------------------------------------------------------------
5.將配置備份轉移到新交換機。
server-backup$ sftp admin@10.10.10.10
The authenticity of host '10.10.10.10 (10.10.10.10)' can't be established.
RSA key fingerprint is SHA256:fnbUmd2mL5yE94zxrRoKAlvYfQbheXJfQox7m3XfpIU.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.10.10.10' (RSA) to the list of known hosts.
User Access Verification
Password:
Password:
Connected to 10.10.10.10.
sftp> ls
20170607_193430_poap_15489_1.log 20170607_193430_poap_15489_2.log 20170607_193430_poap_15489_init.log backup-leaf-1-cfg
sftp> put backup-leaf-1-cfg
Uploading backup-spine-cfg-2 to /backup-leaf-1-cfg
backup-leaf-1-cfg 100% 33KB 23.5KB/s 00:01
sftp> bye
POD1-leaf1 # copy bootflash:///backup-leaf-1-cfg startup-config
Copy progress 100% 33KB
Copy complete, now saving to disk (please wait)...
Copy complete.
6.在載入備份組態後,重新載入交換器。
POD1-leaf1 # reload
7.檢驗埠狀態、埠通道、BGP對等體和BFD鄰居。
POD1-leaf1# show int status
POD1-leaf1 # show port-channel summary
POD1-leaf1 # show ip bgp summary vrf all
POD1-leaf1 # show ipv6 bgp summary vrf all
POD1-leaf1 # show bfd neighbor vrf all
POD1-leaf1 # show bfd ipv6 neighbor vrf all