- Abort Power On Auto Provisioning [yes - continue with normal setup, skip - bypass password and basic configuration, no - continue with Power On Auto Provisioning] (yes/skip/no)[no]:
输入 yes 停止 POAP(Cisco NX-OS PowerOn Auto Provisioning)
(6)出现初始化配置界面:
1 2 3 4 5 6
---- System Admin Account Setup ----
Do you want to enforce secure password standard (yes/no) [y]: 直接按回车,启用安全密码 Enter the password for "admin": 为 admin 设置密码,这里是明文显示的 Confirm the password for "admin": 确认密码
确认后:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
---- Basic System Configuration Dialog VDC: 1 ----
This setup utility will guide you through the basic configuration of the system. Setup configures only enough connectivity for management of the system.
Please register Cisco Nexus9000 Family devices promptly with your supplier. Failure to register may affect response times for initial service calls. Nexus9000 devices must be registered to receive entitled support services.
Press Enter at anytime to skip a dialog. Use ctrl-c at anytime to skip the remaining dialogs.
Would you like to enter the basic configuration dialog (yes/no): 这里直接输入 no 终止
(7)此时出现登录界面:
1 2 3 4
User Access Verification login: admin admin Password:
Cisco NX-OS Software Copyright (c) 2002-2021, Cisco Systems, Inc. All rights reserved. Nexus 9000v software ("Nexus 9000v Software") and related documentation, files or other reference materials ("Documentation") are the proprietary property and confidential information of Cisco Systems, Inc. ("Cisco") and are protected, without limitation, pursuant to United States and International copyright and trademark laws in the applicable jurisdiction which provide civil and criminal penalties for copying or distribution without Cisco's authorization.
Any use or disclosure, in whole or in part, of the Nexus 9000v Software or Documentation to any third party for any purposes is expressly prohibited except as otherwise authorized by Cisco in writing. The copyrights to certain works contained herein are owned by other third parties and are used and distributed under license. Some parts of this software may be covered under the GNU Public License or the GNU Lesser General Public License. A copy of each such license is available at http://www.gnu.org/licenses/gpl.html and http://www.gnu.org/licenses/lgpl.html *************************************************************************** * Nexus 9000v is strictly limited to use for evaluation, demonstration * * and NX-OS education. Any use or disclosure, in whole or in part of * * the Nexus 9000v Software or Documentation to any third party for any * * purposes is expressly prohibited except as otherwise authorized by * * Cisco in writing. * *************************************************************************** switch#
## 配置管理 IP switch# conf t Enter configuration commands, one per line. End with CNTL/Z. switch(config)# interface mgmt0 switch(config-if)# ip address 10.0.2.15/24 # <--- NOTE: can use "ip address dhcp" here instead switch(config-if)# no shut switch(config-if)# end # 此时可以通过 ssh 访问管理口,默认 ssh 服务开启。 # 配置管理口路由 switch(config)#vrf context management switch(config-vrf)# ip route 0.0.0.0/0 10.0.2.1 ## 配置引导镜像 (sysin) switch# conf t Enter configuration commands, one per line. End with CNTL/Z. switch(config)# boot nxos bootflash:nxos.10.1.2.bin # 或者直接 boot nxos nxos.10.1.2.bin # <--- Note: use correct imagename from "dir"command output switch(config)# copy r s [########################################] 100% Copy complete. switch(config)# # 运行 show boot 命令确认 switch(config)# show boot show boot Current Boot Variables: sup-1 NXOS variable = bootflash:/nxos.10.1.2.bin Boot POAP Disabled
Boot Variables on next reload: sup-1 NXOS variable not set Boot POAP Disabled switch# ## 添加一个用户(可选) switch(config)# username sysin password vagrant role network-admin switch(config)# username sysin shell bash switch(config)# copy r s
小贴士:开启 shell 访问,可以看到 NX-OS 10.1.2 是基于 Linux kernel 4.19(LTS)。
1 2 3 4 5 6 7 8 9 10 11 12
switch# show feature | grep bash bash-shell 1 disabled switch# conf t Enter configuration commands, one per line. End with CNTL/Z. switch(config)# feature bash-shell switch(config)# end switch# run bash sudo su - root@switch#whoami root root@switch#uname -a Linux switch4.19.179 #1 SMP Thu May 1316:52:16 PDT 2021 x86_64 x86_64 x86_64 GNU/Linux root@switch#