当前位置:网站首页>Dr selection of OSPF configuration for Huawei devices

Dr selection of OSPF configuration for Huawei devices

2022-07-07 00:47:00 Tony_ long7483

 Insert picture description here

  1. Configure all interfaces VLAN
    [LSW1]vlan 10
    [LSW1-GigabitEthernet0/0/1]port link-type trunk
    [LSW1-GigabitEthernet0/0/1]port trunk allow-pass vlan 10
    [LSW2]vlan batch 10
    [LSW2-GigabitEthernet0/0/1]port link-type trunk
    [LSW2-GigabitEthernet0/0/1]port trunk allow-pass vlan 10
    [LSW3]vlan 10
    [LSW3-GigabitEthernet0/0/1]port link-type trunk
    [LSW3-GigabitEthernet0/0/1]port trunk allow-pass vlan 10
    [LSW4]vlan 10
    [LSW4-GigabitEthernet0/0/1]port link-type trunk
    [LSW4-GigabitEthernet0/0/1]port trunk allow-pass vlan 10
    [LSW5]vlan 10
    [LSW5-GigabitEthernet0/0/1]port link-type trunk
    [LSW5-GigabitEthernet0/0/1]port trunk allow-pass vlan 10
    [LSW5-GigabitEthernet0/0/2]port link-type trunk
    [LSW5-GigabitEthernet0/0/2]port trunk allow-pass vlan 10
    [LSW5-GigabitEthernet0/0/3]port link-type trunk
    [LSW5-GigabitEthernet0/0/3]port trunk allow-pass vlan 10
    [LSW5-GigabitEthernet0/0/4]port link-type trunk
    [LSW5-GigabitEthernet0/0/4]port trunk allow-pass vlan 10

  2. Configure the IP Address
    [LSW1-Vlanif10]ip add 10.1.1.1 24
    [LSW2-Vlanif10]ip add 10.1.1.2 24
    [LSW3-Vlanif10]ip add 10.1.1.3 24
    [LSW4-Vlanif10]ip add 10.1.1.4 24
    [LSW1]int LoopBack 0
    [LSW1-LoopBack0]ip add 10.10.1.1 32
    [LSW2]int LoopBack 0
    [LSW2-LoopBack0]ip add 10.10.2.2 32
    [LSW3]int LoopBack 0
    [LSW3-LoopBack0]ip add 10.10.3.3 32
    [LSW4]int LoopBack 0
    [LSW4-LoopBack0]ip add 10.10.4.4 32

  3. To configure OSPF Basic function
    [LSW1]ospf 1 router-id 10.10.1.1
    [LSW1-ospf-1]area 0
    [LSW1-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
    [LSW2]ospf 1 router-id 10.10.2.2
    [LSW2-ospf-1]area 0
    [LSW2-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
    [LSW3]ospf 1 router-id 10.10.3.3
    [LSW3-ospf-1]area 0
    [LSW3-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
    [LSW4]ospf 1 router-id 10.10.4.4
    [LSW4-ospf-1]area 0
    [LSW4-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
     Insert picture description here

  4. Configure on the switch interface DR priority
    [LSW1-Vlanif10]ospf dr-priority 100 // Was elected DR
    [LSW2-Vlanif10]ospf dr-priority 0 // Can't be DR or BDR
    [LSW3-Vlanif10]ospf dr-priority 2 // Was elected BDR

  5. restart OSPF process
    reset ospf process
    reset ospf process
    reset ospf process
    reset ospf process

  6. Verify configuration
     Insert picture description here

原网站

版权声明
本文为[Tony_ long7483]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130947327844.html