首页 > 其他 > 详细

组网需求 ? ? 所有的交换机都运行 OSPF,并将整个自治系统划分为 3 个区域。 ? ?

时间:2019-06-07 09:52:04      阅读:179      评论:0      收藏:0      [点我收藏+]
  • 组网需求
    ? ? 所有的交换机都运行 OSPF,并将整个自治系统划分为 3 个区域。
    ? ? 其中 Switch A 和 Switch B 作为 ABR 来转发区域之间的路由。
    ? ? 配置完成后,每台交换机都应学到 AS 内的到所有网段的路由。

  • 配置步骤
    (1) 配置各接口的 IP 地址(略)
    例SwitchB:
    <H3C>sys
    [H3C]hostname SwitchB
    [SwitchB]vlan 100
    [SwitchB-vlan100]port g 1/0/10
    [SwitchB-vlan100]quit
    [SwitchB]vlan 200
    [SwitchB-vlan200]port g 1/0/20
    [SwitchB-vlan200]quit
    [SwitchB]inter vlan 100
    [SwitchB-Vlan-interface100]ip add 10.1.1.2 24
    [SwitchB-Vlan-interface100]quit
    [SwitchB]inter vlan 200
    [SwitchB-Vlan-interface200]ip add 10.3.1.1 24
    [SwitchB-Vlan-interface200]quit
    [SwitchB]

    配置 OSPF 基本配置

    配置 Switch A。

    <SwitchA> system-view
    [SwitchA] router id 10.2.1.1
    [SwitchA] ospf
    [SwitchA-ospf-1] area 0
    [SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
    [SwitchA-ospf-1-area-0.0.0.0] quit
    [SwitchA-ospf-1] area 1
    [SwitchA-ospf-1-area-0.0.0.1] network 10.2.1.0 0.0.0.255
    [SwitchA-ospf-1-area-0.0.0.1] quit
    [SwitchA-ospf-1] quit

    配置 Switch B。

    <SwitchB> system-view
    [SwitchB] router id 10.3.1.1
    [SwitchB] ospf
    [SwitchB-ospf-1] area 0
    [SwitchB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
    [SwitchB-ospf-1-area-0.0.0.0] quit
    [SwitchB-ospf-1] area 2
    [SwitchB-ospf-1-area-0.0.0.2] network 10.3.1.0 0.0.0.255
    [SwitchB-ospf-1-area-0.0.0.2] quit
    [SwitchB-ospf-1] quit

  • 组网需求 ? ? 所有的交换机都运行 OSPF,并将整个自治系统划分为 3 个区域。 ? ?

    原文:https://blog.51cto.com/14224935/2405640

    (0)
    (0)
       
    举报
    评论 一句话评论(0
    关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
    © 2014 bubuko.com 版权所有
    打开技术之扣,分享程序人生!