简介
本文档介绍在Ultra-M设置中更换故障枝叶交换机(Nexus 93180YC-EX)所需的步骤。
此过程适用于使用NEWTON版本的OpenStack环境,其中ESC不管理Cisco Prime Access Registrar(CPAR),CPAR直接安装在OpenStack上部署的VM上。
背景信息
Ultra-M是预打包和验证的虚拟化移动数据包核心解决方案,旨在简化VNF的部署。Ultra-M设置中的服务器连接到三种不同类型的交换机:
Ultra-M设置的网络拓扑如图所示:
注意:网络拓扑只是一种表示,交换机之间的连接可能稍有不同,具体取决于所部署的解决方案。
本文档面向熟悉Cisco Ultra-M设置和Nexus交换机的思科人员。
缩写
VNF |
虚拟网络功能 |
API |
应用程序编程接口 |
MOP |
程序方法 |
DI |
分布式实例 |
FTP |
文件传输协议 |
SFTP |
安全文件传输协议 |
调试输出中显示“BGP |
边界网关协议 |
BFD |
双向转发检测 |
MoP的工作流
此图显示了替换过程的高级工作流程。
UltraM设置中的枝叶交换机
在UltraM设置中,枝叶交换机处理以下网络:
- OpenStack网络 — 处理租户、内部API、存储网络、存储管理网络。
- StarOS VNF网络 — 处理DI网络和服务网络。
- 上行链路网络 — 到主干交换机的上行链路连接。
UltraM设置中的每个机架都有一对枝叶交换机。枝叶交换机处理的网络在 机架的枝叶交换机,这样网络就不会受到枝叶交换机更换的影响。
先决条件
步骤1.在进行交换机更换之前,通过FTP/SFTP从枝叶交换机备份配置文件。
AL03-N93180-POD2-leaf1# copy running-config sftp:
Enter destination filename: [AL03-N93180-POD2-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.
ECDSA key fingerprint is SHA256:dnHSXQ6fyYX5v8DU87oqVkCoA8CSPW7CpT+o2qilNI4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.10.10.10' (ECDSA) to the list of known hosts.
admin@10.10.10.10's 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 /root/backup-leaf-1-cfg
/var/tmp/vsh/backup-leaf-1-cfg 0% 0 0.0KB/s --:-- ETA /var/tmp/vsh/backup-leaf-1-cfg 100% 8588 8.4KB/s 00:00
sftp> exit
Copy complete, now saving to disk (please wait)...
Copy complete.
步骤2.检查交换机中运行的当前软件版本并记录。
AL03-N93180-POD2-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.检查当前许可证授权。
AL03-N93180-POD2-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 No - Unused -
--------------------------------------------------------------------------------
步骤4.记下连接到交换机的物理电缆和端口状态。
AL03-N93180-POD2-leaf1# show int status
步骤5.检查端口通道、BGP对等体和BFD邻居的当前状态。
AL03-N93180-POD2-leaf1# show port-channel summary
AL03-N93180-POD2-leaf1# show ip bgp summary vrf all
AL03-N93180-POD2-leaf1# show ipv6 bgp summary vrf all
AL03-N93180-POD2-leaf1# show bfd neighbor vrf all
AL03-N93180-POD2-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交换机的许可证级别,并根据旧的许可证设置确认其是否相同。
AL03-N93180-POD2-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 No - Unused -
--------------------------------------------------------------------------------
步骤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
AL03-N93180-POD2-leaf1# copy bootflash:///backup-leaf-1-cfg startup-config
Copy progress 100% 33KB
Copy complete, now saving to disk (please wait)...
Copy complete.
步骤6.加载备份配置后重新加载交换机。
AL03-N93180-POD2-leaf1# reload
步骤7.检验端口状态、端口通道、BGP对等体和BFD邻居。
AL03-N93180-POD2-leaf1# show int status
AL03-N93180-POD2-leaf1# show port-channel summary
AL03-N93180-POD2-leaf1# show ip bgp summary vrf all
AL03-N93180-POD2-leaf1# show ipv6 bgp summary vrf all
AL03-N93180-POD2-leaf1# show bfd neighbor vrf all
AL03-N93180-POD2-leaf1# show bfd ipv6 neighbor vrf all