Get the App
SLTechnology News&Howtos  ›  Servers  › 

Construction of OSPF Multi-area configuration in the Network of small and medium-sized Enterprises

Shulou Source: shulou.com Published: 2022-06-02 17:52:06 09月30日 Update

1, experiment name: OSPF multi-area configuration 2, experiment purpose: OSPF multi-area configuration to achieve network interworking 3, experiment topology:

4. Experiment step: R1:

System-view / / enter the system view

[Huawei] sysname R1 / / change device name

[R1] interface gi 0Compact 0 / / entry port

[R1-GigabitEthernet0/0/0] ip address 192.168.12.1 255.255.255.0ax / set IP address

[R1-GigabitEthernet0/0/0] undo shutdown / / Activation

[R1] interface LoopBack 0 / / enter the loop link

[R1-LoopBack0] ip add 10.10.1.1 255.255.255.0 / / set the loopback IP address

[R1-LoopBack0] Q / / exit

[R1] ospf / / defaults to 1 when entering ospf

[R1-ospf-1] area 0 / / create ospf backbone area 0

[R1-ospf-1-area-0.0.0.0] network 192.168.12.1 0.0.0.0 / / declare a precise ospf address

[R1-ospf-1-area-0.0.0.0] network 10.10.1.1 0.0.0.0 / / announce the precise ospf address

R2:

System-view

[Huawei] sysname R2

[R2] interface gi 0/0/1 [R2-GigabitEthernet0/0/1] ip add 192.168.12.2 255.255.255.0

[R2-GigabitEthernet0/0/1] undo shutdown

[R2-GigabitEthernet0/0/1] interface gi 0/0/0

[R2-GigabitEthernet0/0/0] ip add 192.168.23.1 255.255.255.0

[R2-GigabitEthernet0/0/0] undo shutdown

[R2] interface LoopBack 0

[R2-LoopBack0] ip add 10.10.2.2 255.255.255.0

[R2-LoopBack0] q

[R2] ospf

[R2-ospf-1] area 0

[R2-ospf-1-area-0.0.0.0] network 192.168.12.2 0.0.0.0

[R2-ospf-1-area-0.0.0.0] network 10.10.2.2 0.0.0.0

[R2-ospf-1] area 1 / / create non-backbone area 1

[R2-ospf-1-area-0.0.0.1] network 192.168.23.1 0.0.0.0 / / announces the IP address of the border loop link

R3:

System-view

[Huawei] sysname R3

[R3] interface gi0/0/1

[R3-GigabitEthernet0/0/1] ip add 192.168.23.2 255.255.255.0

[R3-GigabitEthernet0/0/1] undo shutdown

[R3-GigabitEthernet0/0/1] interface gi0/0/0

[R3-GigabitEthernet0/0/0] ip add 192.168.34.1 255.255.255.0

[R3-GigabitEthernet0/0/0] undo shutdown

[R3] interface LoopBack 0

[R3-LoopBack0] ip add 10.10.3.3 255.255.255.0

[R3-LoopBack0] q

[R3] ospf

[R3-ospf-1] area 1 / / create non-backbone area 1

[R3-ospf-1-area-0.0.0.1] network 192.168.23.2 0.0.0.0

[R3-ospf-1-area-0.0.0.1] network 192.168.34.1 0.0.0.0

[R3-ospf-1-area-0.0.0.1] network 10.10.3.3 0.0.0.0

R4:

System-view

[Huawei] sysname R4

[R4] interface gi0/0/1

[R4-GigabitEthernet0/0/1] ip add 192.168.34.2 255.255.255.0

[R4-GigabitEthernet0/0/1] undo shutdown

[R4] interface LoopBack 0

[R4-LoopBack0] ip add 10.10.4.4 255.255.255.0

[R4-LoopBack0] q

[R4] ospf

[R4-ospf-1] area 1 / / create non-backbone area 1

[R4-ospf-1-area-0.0.0.1] network 192.168.34.2 0.0.0.0

[R4-ospf-1-area-0.0.0.1] network 10.10.4.4 0.0.0.0

[R4-ospf-1-area-0.0.0.1]

5. Verification and testing: (1) View the information of adjacency and routing table

(2) Test:

6. Summary: configuration ideas:

(1) configure the physical interface IP addresses of four routers

(2) configure the loopback IP address interface loopback 0 of each router

(3) R2 creates ospf backbone area area 0, R3 R4 creates non-backbone area area 1, and declares precise ospf links (physical IP and loopback IP addresses)

(4) R2 creates backbone area 0 and non-backbone area 1 and accurately declares the address

(5) the ping command verifies whether the network is interconnected.

Tags: Area address backbone configuration Loopback Precision Lab Route Link whole Network name Physics Router Test Verification Information Command idea Topology Interface Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Linux Microsoft MySQL Redmi