• H3C OSPF配置3DR选择配置举例


    1.组网需求

    ·     Switch A、Switch B、Switch C、Switch D在同一网段,运行OSPF协议后Switch D为DR,Switch C为BDR;

    ·     改变交换机接口的DR优先级使Switch A成为DR,Switch C成为BDR。

       

    2.配置步骤

      1)分别在Switch A、Switch B、Switch C和Switch D上配置各接口的IP和OSPF基本功能

      2)运行OSPF后Switch D为DR,可在Switch A上通过display ospf peer verbose命令查看其邻居信息。  

    [SwitchA] display ospf peer verbose
              OSPF Process 1 with Router ID 1.1.1.1
                      Neighbors 
    
     Area 0.0.0.0 interface 192.168.1.1(Vlan-interface1)'s neighbors
     Router ID: 2.2.2.2          Address: 192.168.1.2      GR State: 
    ormal
       State: 2-Way  Mode: None  Priority: 1
       DR: 192.168.1.4  BDR: 192.168.1.3  MTU: 0

      可以看到Switch D为DR,Switch C为BDR。

      3)配置接口的DR优先级  

    [SwitchA] interface vlan-interface 1
    [SwitchA-Vlan-interface1] ospf dr-priority 100
    
    [SwitchB] interface vlan-interface 1
    [SwitchB-Vlan-interface1] ospf dr-priority 0
    
    [SwitchC] interface vlan-interface 1
    [SwitchC-Vlan-interface1] ospf dr-priority 2  
    <SwitchD> display ospf peer verbose
              OSPF Process 1 with Router ID 4.4.4.4
                      Neighbors
     Area 0.0.0.0 interface 192.168.1.4(Vlan-interface1)'s neighbors
     Router ID: 1.1.1.1      Address: 192.168.1.1      GR State: Normal
       State: Full  Mode:Nbr is  slave  Priority: 100
       DR: 192.168.1.4  BDR: 192.168.1.3  MTU: 0

      可以看到,网络中DR/BDR并没有改变。

      注:网络中DR/BDR已经存在的情况下,接口上的路由器优先级的配置并不会立即生效。

      4)同时重启Switch A、Switch B、Switch C和Switch D上的OSPF进程  

      reset ospf 1 process

      Reset OSPF process? [Y/N]:y  

    <SwitchD> display ospf peer verbose
              OSPF Process 1 with Router ID 4.4.4.4
                      Neighbors
     Area 0.0.0.0 interface 192.168.1.4(Vlan-interface1)'s neighbors
     Router ID: 1.1.1.1          Address: 192.168.1.1      GR State: ormal
       State: Full  Mode: Nbr is slave  Priority: 100
       DR: 192.168.1.1  BDR: 192.168.1.3  MTU: 0

      可以看到Switch A成为DR,Switch C为BDR。  

    ·     如果邻居的状态是Full,这说明它和邻居之间形成了邻接关系;

    ·     如果邻居的状态是2-Way,则说明它们都不是DR或BDR,两者之间不需要交换LSA。  

    ·     如果OSPF接口的状态是DROther,则说明它既不是DR,也不是BDR。

    <SwitchA> display ospf interface
              OSPF Process 1 with Router ID 1.1.1.1
                      Interfaces
     Area: 0.0.0.0
     IP Address      Type      State   Cost  Pri   DR             BDR
     192.168.1.1     Broadcast DR      1     100   192.168.1.1    192.168.1.3
    
    SwitchB> display ospf interface
              OSPF Process 1 with Router ID 2.2.2.2
                      Interfaces 
    
     Area: 0.0.0.0
     IP Address      Type      State    Cost  Pri   DR            BDR
     192.168.1.2     Broadcast DROther  1     0     192.168.1.1   192.168.1.3
    看看天上,于是我去了满是风雪的地方
  • 相关阅读:
    【前端优化之拆分CSS】前端三剑客的分分合合
    ipad&mobile通用webapp框架前哨战
    如何判断一个DOM元素正在动画,一个CSS“阻塞”JS的例子
    关于前端框架升级与全站样式替换的简单建议
    【HTML5&CSS3进阶04】CSS3动画应该如何在webapp中运用
    【HTML5&CSS3进阶03】Jser与Csser如何一起愉快的翻新老组件
    【HTML5&CSS3进阶学习02】Header的实现·CSS中的布局
    【HTML5&CSS3进阶学习01】气泡组件的实现
    【模块化编程】理解requireJS-实现一个简单的模块加载器
    【小贴士】探一探javascript中的replace
  • 原文地址:https://www.cnblogs.com/xinghen1216/p/15666184.html
Copyright © 2020-2023  润新知