安装参考配置文件( RCF )
首次设置 Nexus 92300YC 交换机后,您可以安装 RCF 。
此操作步骤中的示例使用以下交换机和节点命名:
-
这两台 Cisco 交换机的名称分别为
CS1
和CS2
。 -
节点名称为
node1
和node2
。 -
集群 LIF 名称是 node1 的
node1_clus1
和node1_clus2
, node2 的node2_clus1
和node2_clus2
。 -
cluster1 ::: * >
提示符指示集群的名称。 -
每个节点上的集群端口分别命名为
e0a
和e0b
。请参见 "Hardware Universe^ _" 您的平台支持的实际集群端口。
-
Nexus 92300YC 交换机支持的交换机间链路( ISL )为端口 1/65 和 1/66 。
-
Nexus 92300YC 交换机支持的节点连接为端口 1/1 到 1/66 。
-
此操作步骤中的示例使用两个节点。这些节点使用两个10GbE集群互连端口
e0a
和e0b
。请参见 "Hardware Universe" 验证平台上的集群端口是否正确。
-
您必须具有当前 RCF 。
-
集群必须完全正常运行(日志中不应有任何错误或类似问题)。
-
如果您仅安装 NX-OS 并保留当前 RCF 版本,则必须在 RCF 中检查或设置所需的启动配置,以反映所需的启动映像。
-
如果您需要更改启动配置以反映当前启动映像,则必须在重新应用 RCF 之前进行更改,以便在将来重新启动时实例化正确的版本。
-
您必须已查看上的交换机兼容性表 "Cisco 以太网交换机" 页面上显示了受支持的 ONTAP , NX-OS 和 RCF 版本。
-
RCF 中的命令语法与 NX-OS 版本中的命令语法之间可能存在命令依赖关系。
操作步骤要求同时使用 ONTAP 命令和 Cisco Nexus 9000 系列交换机命令;除非另有说明,否则使用 ONTAP 命令。
根据不同版本的 ONTAP ,命令输出可能会有所不同。
-
将集群交换机连接到管理网络。
-
使用 ping 命令验证与托管 RCF 的服务器的连接。
此示例验证交换机是否可以通过 IP 地址 172.19.2.1 访问服务器:
cs2# ping 172.19.2.1 Pinging 172.19.2.1 with 0 bytes of data: Reply From 172.19.2.1: icmp_seq = 0. time= 5910 usec.
-
将 RCF 复制到 Nexus 92300YC 交换机:
cs2# copy sftp: bootflash: vrf management Enter source filename: /code/Nexus_92300YC_RCF_v1.0.2.txt Enter hostname for the sftp server: 172.19.2.1 Enter username: user1 Outbound-ReKey for 172.19.2.1:22 Inbound-ReKey for 172.19.2.1:22 user1@172.19.2.1's password: sftp> progress Progress meter enabled sftp> get /code/Nexus_92300YC_RCF_v1.0.2.txt /bootflash/nxos.9.2.2.bin /code/Nexus_92300YC_R 100% 9687 530.2KB/s 00:00 sftp> exit Copy complete, now saving to disk (please wait)... Copy complete.
-
将 RCF 与交换机的运行配置合并:
cs2# copy bootflash:Nexus_92300YC_RCF_v1.0.2.txt running-config Disabling ssh: as its enabled right now: generating ecdsa key(521 bits)...... generated ecdsa key Enabling ssh: as it has been disabled this command enables edge port type (portfast) by default on all interfaces. You should now disable edge port type (portfast) explicitly on switched ports leading to hubs, switches and bridges as they may create temporary bridging loops. Edge port type (portfast) should only be enabled on ports connected to a single host. Connecting hubs, concentrators, switches, bridges, etc... to this interface when edge port type (portfast) is enabled, can cause temporary bridging loops. Use with CAUTION Edge Port Type (Portfast) has been configured on Ethernet1/1 but will only have effect when the interface is in a non-trunking mode. ... Copy complete, now saving to disk (please wait)... Copy complete.
-
在交换机上验证 RCF 是否已成功合并:
s如何运行配置
cs2# show running-config !Command: show running-config !Running configuration last done at: Wed Apr 10 06:32:27 2019 !Time: Wed Apr 10 06:36:00 2019 version 9.2(2) Bios:version 05.33 switchname cs2 vdc cs2 id 1 limit-resource vlan minimum 16 maximum 4094 limit-resource vrf minimum 2 maximum 4096 limit-resource port-channel minimum 0 maximum 511 limit-resource u4route-mem minimum 248 maximum 248 limit-resource u6route-mem minimum 96 maximum 96 limit-resource m4route-mem minimum 58 maximum 58 limit-resource m6route-mem minimum 8 maximum 8 feature lacp no password strength-check username admin password 5 $5$HY9Kk3F9$YdCZ8iQJ1RtoiEFa0sKP5IO/LNG1k9C4lSJfi5kesl 6 role network-admin ssh key ecdsa 521 banner motd # * * * Nexus 92300YC Reference Configuration File (RCF) v1.0.2 (10-19-2018) * * * * Ports 1/1 - 1/48: 10GbE Intra-Cluster Node Ports * * Ports 1/49 - 1/64: 40/100GbE Intra-Cluster Node Ports * * Ports 1/65 - 1/66: 40/100GbE Intra-Cluster ISL Ports * * *
-
保存正在运行的配置,使其在重新启动交换机时成为启动配置:
cs2# copy running-config startup-config [] 100% Copy complete, now saving to disk (please wait)... Copy complete.
-
对于 ONTAP 9.6P8 及更高版本,使用以下命令启用以太网交换机运行状况监控器日志收集功能以收集交换机相关的日志文件:
ssystem cluster-switch log setup-password
和ssystem cluster-switch log enable-Collection
cluster1::*> system cluster-switch log setup-password Enter the switch name: <return> The switch name entered is not recognized. Choose from the following list: cs1 cs2 cluster1::*> system cluster-switch log setup-password Enter the switch name: cs1 RSA key fingerprint is e5:8b:c6:dc:e2:18:18:09:36:63:d9:63:dd:03:d9:cc Do you want to continue? {y|n}::[n] y Enter the password: <enter switch password> Enter the password again: <enter switch password> cluster1::*> system cluster-switch log setup-password Enter the switch name: cs2 RSA key fingerprint is 57:49:86:a1:b9:80:6a:61:9a:86:8e:3c:e3:b7:1f:b1 Do you want to continue? {y|n}:: [n] y Enter the password: <enter switch password> Enter the password again: <enter switch password> cluster1::*> system cluster-switch log enable-collection Do you want to enable cluster log collection for all nodes in the cluster? {y|n}: [n] y Enabling cluster switch log collection. cluster1::*>
-
重新启动交换机并验证正在运行的配置是否正确:
re负载
cs2# reload This command will reboot the system. (y/n)? [n] y