OSPF Configuration
Examples
Configuring OSPF Basic
Functions
c
CAUTION: In these examples, only commands related to OSPF configuration are
described.
Network requirements
As shown in the following figure, all routers run OSPF. The AS is split into three
areas, in which, RouterA and RouterB act as ABRs.
After configuration, all routers can learn routes to every network segment in the
AS.
Network diagram
Figure 289 Network diagram for OSPF basic configuration
Router A
Eth1/1
10.2.1.1/24
Area 1
Eth1/0
10.2.1.2/24
Eth1/1
10.4.1.1/24
Router C
Configuration procedure
1 Configure IP addresses for interfaces (omitted)
2 Configure OSPF basic functions
# Configure RouterA
<RouterA> system-view
[RouterA] ospf
[RouterA-ospf-1] area 0
[RouterA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] quit
[RouterA-ospf-1] area 1
[RouterA-ospf-1-area-0.0.0.1] network 10.2.1.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.1] quit
[RouterA-ospf-1] quit
# Configure RouterB
<RouterB> system-view
[RouterB] ospf
[RouterB-ospf-1] area 0
[RouterB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] area 2
Area 0
Router B
Eth1/0
10.1.1.1 /24
Eth1/0
10 .1 .1.2/24
Area 2
Eth1/0
10 .5.1.1/24
OSPF Configuration Examples
Eth1/1
10.3.1.1 /24
Eth1/0
10.3.1.2/24
Router D
955
Need help?
Do you have a question about the MSR 50 Series and is the answer not in the manual?
Questions and answers