跳到主要内容

安装参考配置文件(RCF)

可在首次设置 Broadcom BES-53248 集群交换机后以及在应用新许可证后安装 RCF。

  1. 将集群交换机连接到管理网络。
  2. 使用 ping 命令验证与托管 EFOS、许可证和 RCF 的服务器的连接。

    如果连接存在问题,请使用非路由网络并使用 IP 地址 192.168.x 或 172.19.x 配置服务端口。可以在之后将服务端口重新配置为生产管理 IP 地址。

    示例

    此示例验证交换机是否已通过 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.
  3. 使用 copy 命令在 BES-53248 交换机上安装 RCF。

    示例

    (cs2) # copy sftp://root@172.19.2.1//tmp/BES-53248_RCFv1.0.4.txt
    Remote Password ********

    Mode........................................... SFTP
    Set Server IP.................................. 172.19.2.1
    Path........................................... //tmp/
    Filename....................................... BES-53248_RCFv1.0.4.txt
    Data Type...................................... Config Script
    Destination Filename........................... BES-53248_RCFv1.0.4.scr

    File with same name already exists.
    WARNING:Continuing with this command will overwrite the existing file.


    Management access will be blocked for the duration of the transfer
    Are you sure you want to start? (y/n) y


    Validating configuration script...
    [the script is now displayed line by line]

    Configuration script validated.
    File transfer operation completed successfully.


    调用脚本之前,必须将 .scr 扩展名设置为文件名的一部分。此扩展名是 EFOS 操作系统的扩展名。当脚本下载到交换机时,交换机会自动验证脚本,输出将进入控制台。
  4. 验证脚本是否已下载并保存到您提供的文件名中:script list

    示例

    (cs2) # script list

    Configuration Script Name Size(Bytes)Date of Modification
    ----------------------------- -------------- ---------------------
    BES-53248_RCF_v1.0.4.scr 771 2019 02 28 06:48:29

    1 configuration script(s) found.
    2047 Kbytes free.

  5. 将脚本应用到交换机。

    文件 BES-53248_RCD_v1.0.4.scr 包含安装了所有许可证的满载交换机的配置信息。如果您的 BES-53248 交换机未安装或未完整安装许可证,会返回错误消息。可以放心忽略此错误消息。

    如果您的 BES-53248 交换机未安装任何许可证,会显示如下开头的错误消息:
    interface 0/17-0/24

    Unrecognized command : interface 0/17-0/24

    以下示例显示了安装了一个许可证的 BES-53248 交换机返回的错误消息。

    示例

    (cs2) # script apply BES-53248_RCF_v1.0.4.scr

    Are you sure you want to apply the configuration script? (y/n) y


    The system has unsaved changes.
    Would you like to save them now? (y/n) y
    [

    Config file 'startup-config' created successfully .
    Configuration Saved!
    [The script is now displayed line by line]...

    interface 0/25-0/32

    Unrecognized command : interface 0/25-0/32

    Error! in configuration script file at line number 77.
    CLI Command :: interface 0/25-0/32.
    Aborting script.
    Execution of configuration script 'BES-53248_RCF_v1.0.4.scr' could not be completed.

    WARNING:
    The running configuration may not be the desired configuration. You might want to reload the saved configuration.
  6. 应用 RCF 后,验证端口是否有其他许可证:show port all

    示例

    (cs2) # show port all

    Admin Physical Physical Link Link LACP Actor
    Intf Type Mode Mode Status Status Trap Mode Timeout
    --------- ------ --------- ---------- ---------- ------ ------- ------ --------
    0/1 Enable Auto Down Enable Enable long
    0/2 Enable Auto Down Enable Enable long
    0/3 Enable Auto Down Enable Enable long
    0/4 Enable Auto Down Enable Enable long
    0/5 Enable Auto Down Enable Enable long
    0/6 Enable Auto Down Enable Enable long
    0/7 Enable Auto Down Enable Enable long
    0/8 Enable Auto Down Enable Enable long
    0/9 Enable Auto Down Enable Enable long
    0/10 Enable Auto Down Enable Enable long
    0/11 Enable Auto Down Enable Enable long
    0/12 Enable Auto Down Enable Enable long
    0/13 Enable Auto Down Enable Enable long
    0/14 Enable Auto Down Enable Enable long
    0/15 Enable Auto Down Enable Enable long
    0/16 Enable Auto Down Enable Enable long
    0/17 Enable Auto Down Enable Enable long
    0/18 Enable Auto Down Enable Enable long
    0/19 Enable Auto Down Enable Enable long
    0/20 Enable Auto Down Enable Enable long
    0/21 Enable Auto Down Enable Enable long
    0/22 Enable Auto Down Enable Enable long
    0/23 Enable Auto Down Enable Enable long
    0/24 Enable Auto Down Enable Enable long
    0/53 Enable 100G Full Down Enable Enable long
    0/54 Enable 100G Full Down Enable Enable long
    0/55 Enable 100G Full Down Enable Enable long
    0/56 Enable 100G Full Down Enable Enable long
  7. 在交换机上验证所做的更改:show running-config

    示例

    (cs2) # show running-config

  8. 保存正在运行的配置,以便在重新启动交换机时成为启动配置:write memory

    示例

    (cs2) # 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!

  9. 重新启动交换机并验证运行的配置是否正确:reload

    示例

    (cs2) # reload

    Are you sure you would like to reset the system? (y/n)y

    System will now restart!