重命名 Cisco IP 交换机
可能需要重命名 Cisco IP 交换机以确保整个配置中的命名一致。
关于本任务
在此任务的示例中,交换机名称从 myswitch 更改为 IP_switch_A_1。
- 进入全局配置模式:configure terminal
示例
以下示例显示了配置模式提示符。两个提示符都显示了交换机名称 myswitch。myswitch# configure terminal
myswitch(config)# - 重命名交换机:switchname new-switch-name 如果要重命名光纤网中的两台交换机,请对每台交换机使用相同的命令。
示例
CLI 提示符将会更改以反映新名称:myswitch(config)# switchname IP_switch_A_1
IP_switch_A_1(config)# - 退出配置模式:exit
示例
显示顶级交换机提示符:IP_switch_A_1(config)# exit
IP_switch_A_1# - 将当前运行配置拷贝到启动配置文件中:copy running-config startup-config
- 验证是否可从 ONTAP 集群提示符处看到交换机名称变化。注意显示了新的交换机名称,旧的交换机名称(myswitch)没有出现。
- 进入高级权限模式,提示时按 y:set -privilege advanced
- 显示连接的设备:network device-discovery show
- 返回到管理员权限模式:set -privilege admin
示例
以下示例显示交换机显示了新名称 IP_switch_A_1:cluster_A::storage show> set advanced
Warning: These advanced commands are potentially dangerous; use them only when directed to do so by Lenovo personnel.
Do you want to continue? {y|n}: y
cluster_A::storage show*> network device-discovery show
Node/ Local Discovered
Protocol Port Device Interface Platform
----------- ------ ------------------------- ---------------- ----------------
node_A_2/cdp
e0M LF01-410J53.mycompany.com(SAL18516DZY)
Ethernet125/1/28 N9K-C9372PX
e1a IP_switch_A_1(FOC21211RBU)
Ethernet1/2 N3K-C3232C
e1b IP_switch_A_1(FOC21211RBU)
Ethernet1/10 N3K-C3232C
.
.
. Ethernet1/18 N9K-C9372PX
node_A_1/cdp
e0M LF01-410J53.mycompany.com(SAL18516DZY)
Ethernet125/1/26 N9K-C9372PX
e0a IP_switch_A_2(FOC21211RB5)
Ethernet1/1 N3K-C3232C
e0b IP_switch_A_2(FOC21211RB5)
Ethernet1/9 N3K-C3232C
e1a IP_switch_A_1(FOC21211RBU)
.
.
.
16 entries were displayed.
提供反馈