Ccnp OSPF test on the fourth day (1)

Source: Internet
Author: User

OSPF comprehensive experiment (1)

This experiment mainly describes multiple methods of working on OSPF interfaces.

Lab:

The topology used is the ccnp Standard Edition ,:


Certificate -------------------------------------------------------------------------------------------------------------------------------------


1. Full-Network Access

Since frame relay is fully enabled and fully connected by default in ccnp, we recommend that you disable the reverse ARP function on the physical interface and multi-point interface to write the map, otherwise, there will be many maps that do not match the experiment diagram.

For point-to-point sub-interfaces, the reverse ARP function is not required because they only have two ends and do not consider IP addresses.

R1 (config) # int lo0
R1 (config-If) # IP add 1.1.1.1 255.255.255.0

R1 (config-If) # int S1/2
R1 (config-If) # encapsulation frame-relay
R1 (config-If) # No Shutdown

R1 (config) # int S1/2.1 multipoint
R1 (config-subif) # No frame-relay inverse-ARP
R1 (config-subif) # No ARP frame-relay
R1 (config-subif) # IP add 145.1.1.1 255.255.255.0
R1 (config-subif) # frame-relay map IP 145.1.1.4 104 Broadcast
R1 (config-subif) # frame-relay map IP 145.1.1.5 105 Broadcast

R1 (config) # int S1/2.2 point-to-point
R1 (config-subif) # IP add 16.1.1.1 255.255.255.0
R1 (config-subif) # frame-relay interface-dlci 106


R1 (config) # int S1/2.3 point-to-point
R1 (config-subif) # IP add 123.1.1.1 255.255.255.0
R1 (config-subif) # frame-relay interface-dlci 102

Certificate ----------------------------------------------------------------------------------------------------------------------------------------

R2 (config) # int lo0
R2 (config-If) # IP add 2.2.2.2 255.255.255.0
R2 (config) # int S1/2
R2 (config-If) # encapsulation frame-relay
R2 (config-If) # No frame-relay inverse-ARP
R2 (config-If) # No ARP frame-relay
R2 (config-If) # IP add 123.1.1.2 255.255.255.0
R2 (config-If) # frame-relay map IP 123.1.1.1 201 Broadcast
R2 (config-If) # frame-relay map IP 123.1.1.3 203 Broadcast
R2 (config-If) # No Shutdown

Certificate -----------------------------------------------------------------------------------------------------------------------------------------

R3 (config) # int lo0
R3 (config-If) # IP add 3.3.3.3 255.255.255.0
R3 (config) # int S1/2
R3 (config-If) # encapsulation frame-relay
R3 (config-If) # No frame-relay inverse-ARP
R3 (config-If) # No ARP frame-relay
R3 (config-If) # IP add 123.1.1.3 255.255.255.0
R3 (config-If) # frame-relay map IP 123.1.1.2 302 Broadcast

Certificate ----------------------------------------------------------------------------------------------------------------------------------------

R4 (config) # int lo0
R4 (config-If) # IP add 4.4.4.4 255.255.255.0

R4 (config) # int S1/2
R4 (config-If) # encapsulation frame-relay
R4 (config-If) # No Shutdown

R4 (config) # int S1/2.1 point-to-point
R4 (config-subif) # IP add 145.1.1.4 255.255.255.0
R4 (config-subif) # frame-relay interface-dlci 401

R4 (config) # int S1/2.2 point-to-point
R4 (config-subif) # IP add 45.1.1.4 255.255.255.0
R4 (config-subif) # frame-relay interface-dlci 405

Certificate -----------------------------------------------------------------------------------------------------------------------------------------

R5 (config) # int lo0
R5 (config-If) # IP add 5.5.5.5 255.255.255.0

R5 (config-If) # int S1/2
R5 (config-If) # encapsulation frame-relay
R5 (config-If) # No Shutdown


R5 (config) # int S1/2.1 point-to-point
R5 (config-subif) # IP add 45.1.1.5 255.255.255.0
R5 (config-subif) # frame-relay interface-dlci 504

R5 (config) # int S1/2.2 multipoint
R5 (config-subif) # No frame-relay inverse-ARP
R5 (config-subif) # No ARP frame-relay
R5 (config-subif) # IP add 145.1.1.5 255.255.255.0
R5 (config-subif) # frame-relay map IP 145.1.1.1 501 Broadcast

Certificate -------------------------------------------------------------------------------------------------------------------------------------------

R6 (config) # int lo0
R6 (config-If) # IP add 6.6.6.6 255.255.255.0

R6 (config) # int S1/2
R6 (config-If) # encapsulation frame-relay
R6 (config-If) # No frame-relay inverse-ARP
R6 (config-If) # No ARP frame-relay
R6 (config-If) # IP add 16.1.1.6 255.255.255.0
R6 (config-If) # frame-relay map IP 16.1.1.1 601 Broadcast
R6 (config-If) # No Shutdown

R6 (config) # int F0/0
R6 (config-If) # IP add 10.1.1.6 255.255.255.0
R6 (config-If) # No Shutdown

Certificate -------------------------------------------------------------------------------------------------------------------------------------------

R7 (config-If) # int lo0
R7 (config-If) # IP add 7.7.7.7 255.255.255.0

R7 (config) # int F0/0
R7 (config-If) # IP add 10.1.1.7 255.255.255.0
R7 (config-If) # No Shutdown

Certificate ----------------------------------------------------------------------------------------------------------------------------------------------

R8 (config) # int lo0
R8 (config-If) # IP add 8.8.8.8 255.255.255.0

R8 (config) # int F0/0
R8 (config-If) # IP add 10.1.1.8 255.255.255.0
R8 (config-If) # No Shutdown

So far, the basic underlying layer has been fully configured, and the connectivity test should be conducted. Start the OSPF protocol.
========================================================== ========================================================== ============

R1 (config) # router OSPF 1
R1 (config-router) # router-ID 1.1.1.1
R1 (config-router) # network 145.1.1.1 0.0.0.0 area 0
R1 (config-router) # network 123.1.1.1 0.0.0.0 area 0
R1 (config-router) # network 16.1.1.1 0.0.0.0 area 0
R1 (config-router) # network 1.1.1.1 0.0.0.0 area 0

R2 (config) # router OSPF 1
R2 (config-router) # router-ID 2.2.2.2
R2 (config-router) # network 123.1.1.2 0.0.0.0 area 0
R2 (config-router) # network 2.2.2.2 0.0.0.0 area 0

R3 (config) # router OSPF 1
R3 (config-router) # router-ID 3.3.3.3
R3 (config-router) # network 123.1.1.1 0.0.0.0 area 0
R3 (config-router) # network 3.3.3.3 0.0.0.0 area 0

R4 (config) # router OSPF 1
R4 (config-router) # router-ID 4.4.4
R4 (config-router) # network 145.1.1.4 0.0.0.0 area 0
R4 (config-router) # network 45.1.1.4 0.0.0.0 area 0
R4 (config-router) # network 4.4.4.4 0.0.0.0 area 0

R5 (config) # router OSPF 1
R5 (config-router) # router-ID 5.5.5
R5 (config-router) # network 45.1.1.5 0.0.0.0 area 0
R5 (config-router) # network 145.1.1.5 0.0.0.0 area 0
R5 (config-router) # network 5.5.5.5 0.0.0.0 area 0

R6 (config) # router OSPF 1
R6 (config-router) # router-ID 6.6.6.6
R6 (config-router) # network 16.1.1.6 0.0.0.0 area 0
R6 (config-router) # network 6.6.6.6 0.0.0.0 area 0
R6 (config-router) # network 10.1.1.6 0.0.0.0 area 1

R7 (config) # router OSPF 1
R7 (config-router) # router-ID 7.7.7.7
R7 (config-router) # network 7.7.7.7 0.0.0.0 area 1
R7 (config-router) # network 10.1.1.7 0.0.0.0 area 1

R8 (config) # router OSPF 1
R8 (config-router) # router-ID 8.8.8.8
R8 (config-router) # network 8.8.8.8 0.0.0.0 area 1
R8 (config-router) # network 10.1.1.8 0.0.0.0 area 1

At this time, the OSPF protocol from R1 to R8 has been enabled, but the routing table is still incomplete. This is because OSPF works differently on different interfaces, so it is impossible to establish an adjacent relationship, that is, the interface cannot be modified under an Interactive Route entry to the corresponding working mode.
Certificate --------------------------------------------------------------------------------------------------------------------------------------

Because R1 R4 R5 constitutes a MA network in the 145.1.1.0/24 network segment, the method of modifying these three interfaces is Point-to-multi-point.

R1 (config) # int S1/2.1
R1 (config-subif) # ip ospf network point-to-multipoint

R4 (config) # int S1/2.1
R4 (config-subif) # ip ospf network point-to-multipoint

R5 (config) # int S1/2.2
R5 (config-subif) # ip ospf network point-to-multipoint

 

In the 16.1.1.0/24 segment consisting of R1 R6, because the R1 interface is a point-to-point operation mode, R6 is a physical interface, and the working mode is not broadcast, the modified R6 interface is a point-to-point operation mode.

R6 (config) # int S1/2
R6 (config-If) # ip ospf network point-to-point

 

The network composed of R1 R2 R3 is similar to that of 145.1.1.0/24. Modify the three interfaces to work on the point-to-point network.

R1 (config) # int S1/2.3
R1 (config-subif) # ip ospf network point-to-multipoint

R2 (config) # int S1/2
R2 (config-If) # ip ospf network point-to-multipoint

R3 (config) # int S1/2
R3 (config-If) # ip ospf network point-to-multipoint

 

The remaining R4 R5 interfaces are point-to-point interfaces and work point-to-point interfaces, so you do not need to modify them.

 

At this point, after OSPF convergence is completed, all route entries of R1-R6 should be learned. At this time, the entire network can be reached.
:

Certificate ----------------------------------------------------------------------------------------------------------------------------------------

2. R6 between R6-R8 is Dr, no BDR

R6 is Dr, no BDR, that is, the election priority of R7 and R8 is changed to 0.

R7 (config) # int F0/0
R7 (config-If) # ip ospf priority 0

R8 (config) # int F0/0
R8 (config-If) # ip ospf priority 0

After modification:

R6

R7

R8

 

Certificate -----------------------------------------------------------------------------------------------------------------------------------------

 

Statement:

This article aims to organize and implement the knowledge learned by Yi Ba Lang.

You are welcome to reprint this document, but please make sure that this document is complete or noted. This document shall not be used for commercial purposes without the consent of big Yi Ba Lang. Finally, if you can get some help from this simple document, big Yi Ba Lang will be very happy with his own efforts. Due to the limited level of the author, if the errors in this document cause inconvenience, I am sorry in advance.

Wish you good health and smooth work.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.