Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

OSPF - 2

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 12

**************************************

Base Topology Setup - Topology # 1


**************************************

========================
EIGRP - 100
========================

-----
R9
-----

Router EIGRP 100


network 192.1.90.0
network 9.0.0.0

-----
R10
-----

Router EIGRP 100


network 192.1.90.0
network 10.0.0.0

========================
OSPF - Area 0
========================

-----
R7
-----

router ospf 1
router-id 0.0.0.7
network 192.1.78.0 0.0.0.255 area 0

-----
R8
-----

router ospf 1
router-id 0.0.0.8
network 192.1.78.0 0.0.0.255 area 0
network 192.1.89.0 0.0.0.255 area 0
network 8.0.0.0 0.255.255.255 area 0
!
Interface loopback 0
ip ospf network point-to-point

-----
R9
-----

router ospf 1
router-id 0.0.0.9
network 192.1.89.0 0.0.0.255 area 0

========================
OSPF - Area 10
========================

-----
R1
-----

router ospf 1
router-id 0.0.0.1
network 192.1.100.0 0.0.0.255 area 10
network 1.0.0.0 0.255.255.255 area 10
!
Interface Loopback 0
ip ospf network point-to-point

-----
R2
-----

router ospf 1
router-id 0.0.0.2
network 192.1.100.0 0.0.0.255 area 10
network 192.1.101.0 0.0.0.255 area 10
network 2.0.0.0 0.255.255.255 area 10
!
Interface Loopback 0
ip ospf network point-to-point

-----
R3
-----

router ospf 1
router-id 0.0.0.3
network 192.1.100.0 0.0.0.255 area 10
network 192.1.103.0 0.0.0.255 area 10
network 3.0.0.0 0.255.255.255 area 10
!
Interface Loopback 0
ip ospf network point-to-point

-----
R4
-----

router ospf 1
router-id 0.0.0.4
network 192.1.103.0 0.0.0.255 area 10
network 192.1.102.0 0.0.0.255 area 10
network 4.0.0.0 0.255.255.255 area 10
!
Interface Loopback 0
ip ospf network point-to-point

-----
R5
-----

router ospf 1
router-id 0.0.0.5
network 192.1.101.0 0.0.0.255 area 10
network 192.1.102.0 0.0.0.255 area 10
network 5.0.0.0 0.255.255.255 area 10
!
Interface Loopback 0
ip ospf network point-to-point

-----
R6
-----

router ospf 1
router-id 0.0.0.6
network 192.1.103.0 0.0.0.255 area 10
network 192.1.67.0 0.0.0.255 area 10
network 6.0.0.0 0.255.255.255 area 10
!
Interface Loopback 0
ip ospf network point-to-point

-----
R7
-----

router ospf 1
network 192.1.67.0 0.0.0.255 area 10
network 7.0.0.0 0.255.255.255 area 10
!
Interface Loopback 0
ip ospf network point-to-point

-----
R11
-----

router ospf 1
router-id 0.0.0.11
network 192.1.100.0 0.0.0.255 area 10
network 11.0.0.0 0.255.255.255 area 10
!
Interface Loopback 0
ip ospf network point-to-point

===========================
Configuring the ASBR - R9
===========================

-----
R9
-----

router eigrp 100


redistribute ospf 1 metric 10 10 10 10 10
!
router ospf 1
redistribute eigrp 100

++++++++++++++++++++++++++++++++++++++++++++++++++++
LSA Types
++++++++++++++++++++++++++++++++++++++++++++++++++++

==========================
LSA Type 1 - Router LSA
==========================

0.0.0.1 (2)
--------
1 1
100 10

0.0.0.2 (4)
--------
2 1
100 10
101 64 (P2P)
0.0.0.5 Neighbor on 101

0.0.0.3 (3)
--------
3 1
100 10
103 10

0.0.0.11 (2)
--------
11 1
100 10

0.0.0.4 (4)
--------
4 1
102 64
103 10
0.0.0.5 Neighbor on 102

0.0.0.5 (5)
--------
5 1
101 64
102 64
0.0.0.2 Neighbor on 101
0.0.0.4 Neighbor on 102

0.0.0.6 (3)
--------
6 1
103 10
67 10

0.0.0.7 (2)
--------
7 1
67 10

==========================
LSA Type 2 - Network LSA
==========================
-> Advertised by the DR for a Multi-Access Network.
-> It is used to validated the membership of Routers to a network

100
---------------
0.0.0.1
0.0.0.2
0.0.0.3
0.0.0.11

103
---------------
0.0.0.3
0.0.0.4
0.0.0.6

67
---------------
0.0.0.6
0.0.0.7

==========================
LSA Type 3 - Summary LSA
==========================

-> Advertised by the ABR for a Network. It sends the routes as if it owns them.
-> The other area will use the ABR to get to these routes.

==========================
LSA Type 5 - External LSA
==========================

-> Advertised by the ASBR.


-> It advertise the redistribute routes with an Advertising Router ID as itself.

================================
LSA Type 4 - ASBR-Summary LSA
================================

-> Advertised by the ABR when it injects redistributes routes into another Area.
-> It allows routers in one area to reach an ASBR in another area.

**************************************
Base Topology Setup - Topology # 2
**************************************

========================
EIGRP - 111
========================

-----
R7
-----

Interface Loopback201
ip address 110.1.4.1 255.255.255.0
Interface Loopback202
ip address 110.1.5.1 255.255.255.0
Interface Loopback203
ip address 110.1.6.1 255.255.255.0
Interface Loopback204
ip address 110.1.7.1 255.255.255.0
!
Router EIGRP 111
network 192.1.17.0
network 7.0.0.0
network 77.0.0.0
network 107.0.0.0
network 110.0.0.0

-----
R1
-----

Router EIGRP 111


network 192.1.17.0
network 192.1.18.0
network 11.0.0.0

-----
R8
-----

Router EIGRP 111


network 192.1.18.0
network 8.0.0.0
network 88.0.0.0

========================
OSPF - Area 0
========================

-----
R1
-----

Interface Loopback0
ip ospf network point-to-point
!
Router ospf 1
router-id 0.0.0.1
network 1.0.0.0 0.255.255.255 area 0
network 192.1.12.0 0.0.0.255 area 0
network 192.1.13.0 0.0.0.255 area 0

-----
R2
-----

Interface Loopback0
ip ospf network point-to-point
!
Router ospf 1
router-id 0.0.0.2
network 2.0.0.0 0.255.255.255 area 0
network 192.1.12.0 0.0.0.255 area 0

-----
R3
-----

Interface Loopback0
ip ospf network point-to-point
!
Router ospf 1
router-id 0.0.0.3
network 3.0.0.0 0.255.255.255 area 0
network 192.1.13.0 0.0.0.255 area 0

========================
OSPF - Area 10
========================

-----
R2
-----

Interface Loopback1
ip ospf network point-to-point
!
Router ospf 1
network 22.0.0.0 0.255.255.255 area 10
network 192.1.24.0 0.0.0.255 area 10

-----
R4
-----

Interface Loopback0
ip ospf network point-to-point
!
Interface Loopback1
ip ospf network point-to-point
!
Interface Loopback11
ip ospf network point-to-point
!
Interface Loopback12
ip ospf network point-to-point
!
Interface Loopback13
ip ospf network point-to-point
!
Interface Loopback14
ip ospf network point-to-point
!
Router ospf 1
router-id 0.0.0.4
network 0.0.0.0 255.255.255.255 area 10

-----
R10
-----

Interface Loopback0
ip ospf network point-to-point
!
Interface Loopback1
ip ospf network point-to-point
!
Interface Loopback11
ip ospf network point-to-point
!
Interface Loopback12
ip ospf network point-to-point
!
Interface Loopback13
ip ospf network point-to-point
!
Interface Loopback14
ip ospf network point-to-point
!
Interface E 0/1
ip address 192.1.110.11 255.255.255.0
no shut
!
Router ospf 1
router-id 0.0.0.10
network 0.0.0.0 255.255.255.255 area 10

-----
R11
-----

Interface Loopback0
ip ospf network point-to-point
!
Router ospf 1
router-id 0.0.0.11
network 0.0.0.0 255.255.255.255 area 10

========================
OSPF - Area 20
========================

-----
R3
-----

Interface Loopback1
ip ospf network point-to-point
!
Router ospf 1
network 33.0.0.0 0.255.255.255 area 20
network 192.1.35.0 0.0.0.255 area 20

-----
R5
-----

Interface Loopback0
ip ospf network point-to-point
!
Interface Loopback1
ip ospf network point-to-point
!
Router ospf 1
router-id 0.0.0.5
network 0.0.0.0 255.255.255.255 area 20

-----
R6
-----

Interface Loopback0
ip ospf network point-to-point
!
Router ospf 1
router-id 0.0.0.6
network 192.1.56.0 0.0.0.255 area 20
network 6.0.0.0 0.255.255.255 area 20

========================
EIGRP - 111
========================

-----
R6
-----

Router EIGRP 222


network 192.1.69.0
network 66.0.0.0

-----
R9
-----

Router EIGRP 222


network 192.1.69.0
network 99.0.0.0
network 9.0.0.0

=================================
EIGRP - OSPF Redistribution - R1
=================================

----
R1
----

router eigrp 111


redistribute ospf 1 metric 10 10 10 10 10
!
router ospf 1
redistribute eigrp 111

=================================
EIGRP - OSPF Redistribution - R6
=================================

----
R6
----
router eigrp 222
redistribute ospf 1 metric 10 10 10 10 10
!
router ospf 1
redistribute eigrp 222

==============================================================
Inter-Area Route Summarization - The Directly Connected ABR
==============================================================

----
R2
----

router ospf 1
area 10 range 105.1.4.0 255.255.252.0
area 10 range 100.0.0.0 252.0.0.0

========================================================
External Route Summarization - The Redistributing ASBR
========================================================

----
R1
----

router ospf 1
summary-address 110.1.4.0 255.255.252.0

========================================================
LSA Type 3 Filtering
========================================================

Requirement # 1: Block network 44.0.0.0/8 from leaving area 10.

----
R2
----

ip prefix-list PL-1 deny 44.0.0.0/8


ip prefix-list PL-1 permit 0.0.0.0/0 le 32
!
router ospf 1
area 10 filter-list prefix PL-1 out

Requirement # 2: Block network 55.0.0.0/8 from entering area 0.

----
R3
----

ip prefix-list PL-1 deny 55.0.0.0/8


ip prefix-list PL-1 permit 0.0.0.0/0 le 32
!
router ospf 1
area 0 filter-list prefix PL-1 in

========================================================
Authentication - Text
========================================================

Requirement: Authenticate R10 & R11 using Text Authentication

----
R11
----

router ospf 1
area 10 authentication
!
Interface E 0/0
ip ospf authentication-key Cisco123

or

Interface E 0/0
ip ospf authentication-key Cisco123
ip ospf authentication

----
R10
----

Interface E 0/1
ip ospf authentication-key Cisco123
ip ospf authentication

Requirement: Authenticate R1 & R2 using MD5 Authentication

----
R2
----

router ospf 1
area 0 authentication message-digest
!
Interface E 0/0
ip ospf message-digest-key 1 md5 Cisco123

or

Interface E 0/0
ip ospf message-digest-key 1 md5 Cisco123
ip ospf authentication message-digest

----
R1
----

Interface E 0/0
ip ospf message-digest-key 1 md5 Cisco123
ip ospf authentication message-digest

Requirement: Authenticate R1 & R3 using SHA1 Authentication

----
R1
----
key chain ABC
key 1
key-string Cisco123
cryptographic-algorithm hmac-sha-1
!
Interface E 0/1
ip ospf authentication key-chain ABC

----
R3
----

key chain ABC


key 1
key-string Cisco123
cryptographic-algorithm hmac-sha-1
!
Interface E 0/0
ip ospf authentication key-chain ABC

You might also like