简介
本文档介绍在托管StarOS虚拟网络功能(VNF)的Ultra-M设置中更换故障枝叶交换机(Nexus 93180YC-EX)所需的步骤。
背景信息
Ultra-M是预打包和验证的虚拟化移动数据包核心解决方案,旨在简化VNF的部署。Ultra-M设置中的服务器连接到三种不同类型的交换机:
Ultra-M设置的网络拓扑如下图所示。
UltraM网络拓扑
注意:网络拓扑只是一种表示,交换机之间的连接可能稍有不同,这取决于部署的解决方案。本文档面向熟悉Cisco Ultra-M设置和Nexus交换机的思科人员。
缩写
VNF |
虚拟网络功能 |
API |
应用程序编程接口 |
MOP |
程序方法 |
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