Multiple OSPF areas configured gymnastics

OSPF theory

OSPF (Open Shortest Path First Open Shortest Path First) is an interior gateway protocol (Interior Gateway Protocol, referred IGP), for a single autonomous system (autonomous system, AS) the routing decision. Is a link state routing protocol implemented under the Interior Gateway Protocol (the IGP), so that the operation of the internal autonomous systems. Dick Alaska known algorithm (the Dijkstra) is used to calculate the shortest path tree. OSPF and OSPFv2 OSPFv3 into two versions, which use the IPv4 network OSPFv2, OSPFv3 used in the IPv6 network. OSPFv2 is defined by RFC 2328, OSPFv3 is defined by RFC 5340. Compared with RIP, OSPF is a link state protocol, the RIP is a distance vector protocol.

Multi-area OSPF configuration before the start, we first go GNS3 dragged two PC operating area, four routers experiment topology planning.

R1
f1/0:192.168.10.1/24
f0/0:192.168.20.1/24
f0/1:192.168.50.2/24
R2
f0/0:192.168.20.0/24
f0/1:192.168.30.1/24
R3
f1/0:192.168.60.1/24
f0/0:192.168.30.2/24
f0/1:192.168.40.1/24
R4
f0/0:192.168.40.2/24
f0/1:192.168.50.1/24
PC1:192.168.10.2/24
PC2:192.168.60.2/24
Multiple OSPF areas configured gymnastics

Practical operation of the router interface

R1 interface configuration
conf t // enters the global mode
int f0 / 0 // enter f0 / 0 interfaces
ip add 192.168.20.1 255.255.255.0 // Configure interface f0 / 0IP address
no shut // launch configuration
ex // exit
int f0 / 1 // enter f0 / 1 interface to
ip add 192.168.50.2 255.255.255.0 // configure the interface f0 / 0IP address
no shut // startup configuration
ex // exit
int f1 / 0 // enter f0 / 0 interface to
ip add 192.168.10.1 255.255.255.0 // configure the interface f0 / 0IP address
no switchport // enable three functions
no shut // startup configuration
ex // quit
Verify the configuration interfaces Show ip int b // do
Multiple OSPF areas configured gymnastics
Multiple OSPF areas configured gymnastics
R2 interface configuration
conf t // enter the global mode
int f0 / 0 // enter f0 / 0 interfaces
ip add 192.168.20.2 255.255.255.0 // configure interface f0 / 0IP address
no shut // launch configuration
ex // exit
int f0 / 1 // enter f0 / 1 Interface
ip add 192.168.30.1 255.255.255.0 // configure the interface f0 / 0IP address
no shut // boot configuration
ex // Exit
do show ip int b // Check interface configuration
Multiple OSPF areas configured gymnastics
R3 interface configuration
conf t // enters the global mode
int f0 / 0 // enter f0 / 0 interfaces
ip add 192.168.30.2 255.255.255.0 // Configure interface f0 / 0IP address
no shut // startup configuration
ex // exit
int f0 / 1 // enter f0 / 1 interface to
ip add 192.168.40.1 255.255.255.0 // configure the interface f0 / 0IP address
no shut // startup configuration
ex // exit
int f1 / 0 // enter f0 / 0 interface to
ip add 192.168.60.1 255.255.255.0 // configure the interface f0 / 0IP address
no switchport // enable three functions
no shut // startup configuration
ex // exit
do show ip int b / / View interface configuration
Multiple OSPF areas configured gymnastics
Multiple OSPF areas configured gymnastics
R4 interface configuration
conf t // enters the global mode
int f0 / 0 // enter f0 / 0 interfaces
ip add 192.168.40.2 255.255.255.0 // configure interface f0 / 0IP address
no shut // launch configuration
ex / / exit
int f0 / 1 // enter f0 / 1 Interface
ip add 192.168.50.1 255.255.255.0 // configure the interface f0 / 0IP address
no shut // startup configuration
ex // exit
do show ip int b // Check interface configuration
Multiple OSPF areas configured gymnastics
R1 own IP address configuration
int loopback 0 // enter the loopback interface
ip add 1.1.1.1 255.255.255.255 // IP address of the router itself
no shut // startup configuration
ex // exit
do show ip int b // View configuration
Multiple OSPF areas configured gymnastics
R2 own IP address configuration
int loopback 0 // enter loopback interface
ip add 2.2.2.2 255.255.255.255 // IP address of the router itself
no shut // startup configuration
ex // exit
do show ip int b // View configuration
Multiple OSPF areas configured gymnastics
R3 own IP address configuration
int loopback 0 // enter loopback interface
ip add 3.3. 3.3 255.255.255.255 // IP address of the router itself
no shut // startup configuration
ex // exit
do show ip int b // View configuration
Multiple OSPF areas configured gymnastics
R4 own IP address configuration
int loopback 0 // enter the loopback interface
ip add 4.4.4.4 255.255.255.255 // IP address of the router itself
no shut // startup configuration
ex // exit
do show ip int b // View configuration
Multiple OSPF areas configured gymnastics
R1
Router ospf 1 // Select a process ID
router-id 1.1. 1.1 // IP address of the router itself declares
network 192.168.20.0 0.0.0.255 area 0 // add into 20 segments area0 area
network 192.168.50.0 0.0.0.255 area 0 // 50 segment will add area0 area
network 192.168.10.0 0.0.0.255 area 0 // 10 segments will add area0 area
ex // exit
Multiple OSPF areas configured gymnastics
Multiple OSPF areas configured gymnastics
R2
router ospf 1 // select a process ID
router-id 2.2.2.2 // IP address of the router itself declares
network 192.168.20.0 0.0.0.255 area 0 // add the segment 20 area0 area
network 192.168.30.0 0.0.0.255 area 1 // add the segment area1 region 30
EX // exit
Multiple OSPF areas configured gymnastics
R3
Router OSPF. 1 // process a selected number of
router-id 3.3.3.3 // IP address of the router itself declared
network 192.168.40.0 0.0.0.255 area 1 // add the segment 40 area1 area
network 192.168.30.0 0.0.0.255 area 1 // add the segment 30 area1 area
network 192.168.60.0 0.0.0.255 area 1 // will 60 segment added to the area1 area
ex // exit
Multiple OSPF areas configured gymnastics
Multiple OSPF areas configured gymnastics
R4
router ospf 1 // select a process ID
router-id 4.4.4.4 // IP address of the router itself declares
network // add 40 network 192.168.40.0 0.0.0.255 area 1 into area1 area
network 192.168.50.0 0.0.0.255 area 0 // 50 segment will add area0 area
ex // quit
Multiple OSPF areas configured gymnastics
using the command: do show ip router routing table learning four routers, and other routers to learn whether the route table of contents.
Multiple OSPF areas configured gymnastics
Multiple OSPF areas configured gymnastics
Multiple OSPF areas configured gymnastics
Multiple OSPF areas configured gymnastics

PC1: ip 192.168.10.2 192.168.10.1 // configure the IP address of PC1
PC1: ip 192.168.60.2 192.168.60.1 // configure the IP address of PC2
ping 192.168.60.2 // use PC1 PC2 stitching
result of course is sure to spell pass because all the OSPF protocol router signal transmission have been learned through other router's routing table.
Multiple OSPF areas configured gymnasticsMultiple OSPF areas configured gymnastics

Guess you like

Origin blog.51cto.com/14449528/2439824