将 Broadcom IP 交换机重置为出厂默认设置
在安装新的交换机软件版本和 RCF 之前,必须清除 Broadcom 交换机设置并执行基本配置。
关于本任务
必须在 MetroCluster IP 配置中的每台 IP 交换机上重复这些步骤。
必须使用串行控制台连接到交换机。
此任务将重置管理网络的配置。
- 更改为提升的命令提示符(#):enable
示例
(Routing)> enable
(Routing) # - 擦除启动配置:erase startup-config
示例
(Routing) #erase startup-config
Are you sure you want to clear the configuration? (y/n) y
(Routing) #此命令不会删除横幅。
- 重新启动交换机:reload
示例
(IP_switch_A_1) #reload
Are you sure you would like to reset the system? (y/n) y注如果系统在重新加载交换机之前询问是否保存未保存或更改的配置,请选择否。 - 等待交换机重新加载,然后登录交换机。
默认用户为
admin
,未设置密码。显示类似于以下的提示:示例
(Routing)>
- 更改为提升的命令提示符:enable
示例
Routing)> enable
(Routing) # - 将 serviceport 协议设置为 none:serviceport protocol none
示例
(Routing) #serviceport protocol none
Changing protocol mode will reset ip configuration.
Are you sure you want to continue? (y/n) y
(Routing) # - 为服务端口分配 IP 地址:serviceport ip ip-address netmask gateway
示例
以下示例显示了一个服务端口已分配了 IP 地址 10.10.10.10,并具有子网 255.255.255.0 和网关 10.10.10.1:
(Routing) #serviceport ip 10.10.10.10 255.255.255.0 10.10.10.1
- 验证是否已正确配置服务端口:show serviceport
示例
以下示例显示端口为 up 状态并已分配正确的地址:
(Routing) #show serviceport
Interface Status............................... Up
IP Address..................................... 10.10.10.10
Subnet Mask.................................... 255.255.255.0
Default Gateway................................ 10.10.10.1
IPv6 Administrative Mode....................... Enabled
IPv6 Prefix is ................................ fe80::dac4:97ff:fe56:87d7/64
IPv6 Default Router............................ fe80::222:bdff:fef8:19ff
Configured IPv4 Protocol....................... None
Configured IPv6 Protocol....................... None
IPv6 AutoConfig Mode........................... Disabled
Burned In MAC Address.......................... D8:C4:97:56:87:D7
(Routing) # - 如果需要,请配置 SSH 服务器。注RCF 文件禁用 Telnet 协议。如果未配置 SSH 服务器,则只能使用串行端口连接访问网桥。
- 生成 RSA 密钥。
(Routing) #configure
(Routing) (Config)#crypto key generate rsa - 生成 DSA 密钥。
(Routing) #configure
(Routing) (Config)#crypto key generate dsa - 启用 SSH 服务器。如有必要,退出配置上下文。
(Routing) (Config)#end
(Routing) #ip ssh server enable注如果密钥已经存在,则系统可能会要求您覆盖它们。
- 生成 RSA 密钥。
- 如果需要,请配置域和名称服务器:configure
示例
以下示例显示了 ip domain 和 ip name server 命令:
(Routing) # configure
(Routing) (Config)#ip domain name labs.Lenovo.com
(Routing) (Config)#ip name server 10.99.99.1 10.99.99.2
(Routing) (Config)#exit
(Routing) (Config)# - 如果需要,请配置时区和时间同步(SNTP)。
示例
以下示例显示了 sntp 命令,其中指定了 SNTP 服务器的 IP 地址以及相关时区。
(Routing) #
(Routing) (Config)#sntp client mode unicast
(Routing) (Config)#sntp server 10.99.99.5
(Routing) (Config)#clock timezone -7
(Routing) (Config)#exit
(Routing) (Config)# - 配置交换机名称:hostname IP_switch_A_1
示例
交换机提示符处将显示新名称:
(Routing) # hostname IP_switch_A_1
(IP_switch_A_1) # - 保存配置:write memory
示例
您会收到类似于以下示例的提示和输出:
(IP_switch_A_1) #write memory
This operation may take a few minutes.
Management interfaces will not be available during this time.
Are you sure you want to save? (y/n) y
Config file 'startup-config' created successfully .
Configuration Saved!
(IP_switch_A_1) # - 在 MetroCluster IP 配置中的其他三台交换机上重复上述步骤。
提供反馈