OSPF Configurations in Huawei Routers
Today I am going to talk about the basic configuration of OSPF in Huawei Routers. There is already have a article on OSPF configuration on Cisco routers
OSPF Basic configuration Step by step on Cisco RoutersApart from the above we have another articles on OSPF as shown below
OSPF Basics
OSPF Point to Multipoint Configuration- Cisco and Juniper
OSPF States
Difference between OSPF and RIP
Lets take an Topology here and below is the diagram for the configuration. We have the following topology as :
- Router A is connected between Area 1 and Area 0
- Router B is connected between Area 2 and Area 0
- Router C is a internal Area 1 Router
- Router D is a internal Area 2 Router
- Router E is a internal Area 1 Router
- Router F is a internal Area 2 Router
Fig 1.1- |
# Configure Router A
Below is the basic configuration of OSPF on Router A
[TTLBITS_A] router id 1.1.1.1
[TTLBITS_A] ospf 1
[TTLBITS_A-ospf-1] area 0
[TTLBITS_A-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.0.255
[TTLBITS_A] ospf 1
[TTLBITS_A-ospf-1] area 0
[TTLBITS_A-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.0.255
[TTLBITS_A-ospf-1-area-0.0.0.0] quit
[TTLBITS_A-ospf-1] area 1
[TTLBITS_A-ospf-1-area-0.0.0.1] network 192.168.1.0 0.0.0.255
[TTLBITS_A-ospf-1-area-0.0.0.1] network 192.168.1.0 0.0.0.255
[TTLBITS_A-ospf-1-area-0.0.0.1] quit
[TTLBITS_A-ospf-1] commit
[TTLBITS_A-ospf-1] commit
# Configure Router B
Below is the basic configuration of OSPF on Router B
[TTLBITS_B] router id 2.2.2.2
[TTLBITS_B] ospf 1
[TTLBITS_B-ospf-1] area 0
[TTLBITS_B-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.0.255
[TTLBITS_B-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.0.255
[TTLBITS_B-ospf-1-area-0.0.0.0] quit
[TTLBITS_B-ospf-1] area 2
[TTLBITS_B-ospf-1-area-0.0.0.2] network 192.168.2.0 0.0.0.255
[TTLBITS_B-ospf-1] area 2
[TTLBITS_B-ospf-1-area-0.0.0.2] network 192.168.2.0 0.0.0.255
[TTLBITS_B-ospf-1-area-0.0.0.2] quit
[TTLBITS_B-ospf-1] commit
[TTLBITS_B-ospf-1] commit
# Configure Router C
Below is the basic configuration of OSPF on Router C
[TTLBITS_C] router id 3.3.3.3
[TTLBITS_C] ospf 1
[TTLBITS_C-ospf-1] area 1
[TTLBITS_C-ospf-1-area-0.0.0.1] network 192.168.1.0 0.0.0.255
[TTLBITS_C] ospf 1
[TTLBITS_C-ospf-1] area 1
[TTLBITS_C-ospf-1-area-0.0.0.1] network 192.168.1.0 0.0.0.255
[TTLBITS_C-ospf-1-area-0.0.0.1] network 172.16.1.0 0.0.0.255
[TTLBITS_C-ospf-1-area-0.0.0.1] commit
[TTLBITS_C-ospf-1-area-0.0.0.1] quit
# Configure Router D
Below is the basic configuration of OSPF on Router D
[TTLBITS_D] router id 4.4.4.4
[TTLBITS_D] ospf 1
[TTLBITS_D-ospf-1] area 2
[TTLBITS_D-ospf-1-area-0.0.0.2] network 192.168.2.0 0.0.0.255
[TTLBITS_D] ospf 1
[TTLBITS_D-ospf-1] area 2
[TTLBITS_D-ospf-1-area-0.0.0.2] network 192.168.2.0 0.0.0.255
[TTLBITS_D-ospf-1-area-0.0.0.2] network 172.17.1.0 0.0.0.255
[TTLBITS_D-ospf-1-area-0.0.0.2] commit
[TTLBITS_D-ospf-1-area-0.0.0.2] quit
# Configure Router E
Below is the basic configuration of OSPF on Router E
[TTLBITS_E] router id 5.5.5.5
[TTLBITS_E] ospf 1
[TTLBITS_E-ospf-1] area 1
[TTLBITS_E-ospf-1-area-0.0.0.1] network 172.16.1.0 0.0.0.255
[TTLBITS_E] ospf 1
[TTLBITS_E-ospf-1] area 1
[TTLBITS_E-ospf-1-area-0.0.0.1] network 172.16.1.0 0.0.0.255
[TTLBITS_E-ospf-1-area-0.0.0.1] commit
[TTLBITS_E-ospf-1-area-0.0.0.1] quit
# Configure Router F
Below is the basic configuration of OSPF on Router F
[TTLBITS_F] router id 6.6.6.6
[TTLBITS_F] ospf 1
[TTLBITS_F-ospf-1] area 2
[TTLBITS_F-ospf-1-area-0.0.0.2] network 172.17.1.0 0.0.0.255
[TTLBITS_F] ospf 1
[TTLBITS_F-ospf-1] area 2
[TTLBITS_F-ospf-1-area-0.0.0.2] network 172.17.1.0 0.0.0.255
[TTLBITS_F-ospf-1-area-0.0.0.2] commit
[TTLBITS_F-ospf-1-area-0.0.0.2] quit