【HCL】静态路由

  1. 组网需求
    • • 在 Switch A 上配置静态路由可以到达 120.1.1.0/24 网段,在 Switch B 上配置静态路由可以到
    达 121.1.1.0/24 网段,并都使能 BFD 检测功能。
    • • 在 Switch C 和 Switch D 上配置静态路由可以到达 120.1.1.0/24 网段和 121.1.1.0/24 网段。
    • • Switch A 存在到 Switch B 的接口 Loopback1 (2.2.2.9/32)的路由,出接口为 Vlan-interface10;
    Switch B 存在到 Switch A 的接口 Loopback1 (1.1.1.9/32)的路由,出接口为 Vlan-interface12;
    Switch D 存在到 1.1.1.9/32 的路由,出接口为 Vlan-interface10,存在到 2.2.2.9/32 的路由,
    出接口为 Vlan-interface12。
    • • 当 Switch A 和 Switch B 通过 Switch D 通信的链路出现故障时,BFD 能够快速感知,并且切
    换到 Switch C 进行通信。

【HCL】静态路由

  1. 配置步骤
    (1) 配置各接口的 IP 地址(略)
    注意:建议在交换机之间连接的物理接口上关闭stp功能,undo stp enable
    (2) 配置静态路由和 BFD
    #在 Switch A 上配置静态路由,并使能 BFD 检测功能,使用双向检测方式。
    <SwitchA> system-view
    [SwitchA] bfd multi-hop min-transmit-interval 500
    [SwitchA] bfd multi-hop min-receive-interval 500
    [SwitchA] bfd multi-hop detect-multiplier 9
    [SwitchA] ip route-static 2.2.2.9 32 Vlan-interface 10 12.1.1.2
    [SwitchA] ip route-static 120.1.1.0 24 2.2.2.9 bfd control-packet bfd-source 1.1.1.9
    [SwitchA] ip route-static 120.1.1.0 24 vlan-interface 11 10.1.1.100 preference 65
    [SwitchA] quit
    #在Switch B 上配置静态路由,并使能 BFD 检测功能,使用双向检测方式。
    <SwitchB> system-view
    [SwitchB] bfd multi-hop min-transmit-interval 500
    [SwitchB] bfd multi-hop min-receive-interval 500
    [SwitchB] bfd multi-hop detect-multiplier 9
    [SwitchB] ip route-static 1.1.1.9 32 Vlan-interface 12 11.1.1.2
    [SwitchB] ip route-static 121.1.1.0 24 1.1.1.9 bfd control-packet bfd-source 2.2.2.9
    [SwitchB] ip route-static 121.1.1.0 24 vlan-interface 13 13.1.1.2 preference 65
    [SwitchB] quit
    #在Switch C 上配置静态路由。
    <SwitchC> system-view
    [SwitchC] ip route-static 120.1.1.0 24 13.1.1.1
    [SwitchC] ip route-static 121.1.1.0 24 10.1.1.102
    #在Switch D 上配置静态路由。
    <SwitchD> system-view
    [SwitchD] ip route-static 120.1.1.0 24 11.1.1.1
    [SwitchD] ip route-static 121.1.1.0 24 12.1.1.1
    [SwitchD] ip route-static 1.1.1.9 32 12.1.1.1
    [SwitchD] ip route-static 2.2.2.9 32 11.1.1.1

猜你喜欢

转载自blog.51cto.com/14220604/2412713