Day 4 - OSPF - 2
Day 4 - OSPF - 2
Base Configuration
**************************************
======================================
Area 0
======================================
-----
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 loop0
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 loop0
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 loop0
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 loop0
ip ospf network point-to-point
-----
R4
-----
Router ospf 1
router-id 0.0.0.4
network 192.1.102.0 0.0.0.255 area 10
network 192.1.103.0 0.0.0.255 area 10
network 4.0.0.0 0.255.255.255 area 10
!
Interface loop0
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 loop0
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 loop0
ip ospf network point-to-point
-----
R7
-----
Router ospf 1
router-id 0.0.0.7
network 192.1.67.0 0.0.0.255 area 10
======================================
Area 0
======================================
-----
R7
-----
Router ospf 1
network 192.1.78.0 0.0.0.255 area 0
network 7.0.0.0 0.255.255.255 area 0
!
Interface loop0
ip ospf network point-to-point
-----
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 loop0
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
======================================
EIGRP 100
======================================
-----
R9
-----
-----
R10
-----
======================================
Redistribution
======================================
-----
R9
-----
router ospf 1
redistribute eigrp 100
!
router eigrp 100
redistribute ospf 1 metric 10 10 10 10 10
======================================
LSA Types
======================================
---------------------------
LSA Type 1 - Router LSA
---------------------------
---------------------------
LSA Type 2 - Network LSA
---------------------------
DR - 192.1.100.0/24
--------------------
Attached Routers: 0.0.0.1, 0.0.0.2, 0.0.0.3, 0.0.0.11
DR - 192.1.103.0/24
--------------------
DR - 192.1.67.0/24
--------------------
**************************************
Multi-Domain/Multi-Area Topology
**************************************
-------------
EIGRP - 111
-------------
----
R1
----
----
R7
----
----
R8
----
-------------
OSPF - Area 0
-------------
----
R1
----
router ospf 1
router-id 0.0.0.1
network 192.1.12.0 0.0.0.255 area 0
network 192.1.13.0 0.0.0.255 area 0
network 1.0.0.0 0.255.255.255 area 0
!
Interface Loopback0
ip ospf network point-to-point
----
R2
----
router ospf 1
router-id 0.0.0.2
network 192.1.12.0 0.0.0.255 area 0
network 2.0.0.0 0.255.255.255 area 0
!
Interface Loopback0
ip ospf network point-to-point
----
R3
----
router ospf 1
router-id 0.0.0.3
network 192.1.13.0 0.0.0.255 area 0
network 3.0.0.0 0.255.255.255 area 0
!
Interface Loopback0
ip ospf network point-to-point
--------------
OSPF - Area 10
--------------
----
R2
----
router ospf 1
network 192.1.24.0 0.0.0.255 area 10
network 22.0.0.0 0.255.255.255 area 10
!
Interface Loopback1
ip ospf network point-to-point
----
R4
----
router ospf 1
router-id 0.0.0.4
network 192.1.24.0 0.0.0.255 area 10
network 192.1.40.0 0.0.0.255 area 10
network 4.0.0.0 0.255.255.255 area 10
network 44.0.0.0 0.255.255.255 area 10
network 105.1.0.0 0.0.255.255 area 10
!
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
----
R10
----
router ospf 1
router-id 0.0.0.10
network 192.1.40.0 0.0.0.255 area 10
network 192.1.110.0 0.0.0.255 area 10
network 10.0.0.0 0.255.255.255 area 10
network 100.0.0.0 0.255.255.255 area 10
network 101.0.0.0 0.255.255.255 area 10
network 102.0.0.0 0.255.255.255 area 10
network 103.0.0.0 0.255.255.255 area 10
!
Interface Loopback0
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
----
R11
----
router ospf 1
router-id 0.0.0.11
network 192.1.110.0 0.0.0.255 area 10
network 111.0.0.0 0.255.255.255 area 10
!
Interface Loopback0
ip ospf network point-to-point
--------------
OSPF - Area 20
--------------
----
R3
----
router ospf 1
network 192.1.35.0 0.0.0.255 area 20
network 33.0.0.0 0.255.255.255 area 20
!
Interface Loopback1
ip ospf network point-to-point
----
R5
----
router ospf 1
router-id 0.0.0.5
network 192.1.35.0 0.0.0.255 area 20
network 192.1.56.0 0.0.0.255 area 20
network 5.0.0.0 0.255.255.255 area 20
network 55.0.0.0 0.255.255.255 area 20
!
Interface Loopback0
ip ospf network point-to-point
!
Interface Loopback1
ip ospf network point-to-point
----
R6
----
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
!
Interface Loopback0
ip ospf network point-to-point
-------------
EIGRP - 222
-------------
----
R6
----
----
R9
----
router eigrp 222
network 192.1.69.0
network 9.0.0.0
network 99.0.0.0
-------------------------------------
Redistribution - OSPF & EIGRP 111
-------------------------------------
-----
R1
-----
-----
R2
-----
**************************************
Redistribution with Filtering
**************************************
Requirement: EIGRP 111 should not receive EIGRP 222 routes and Vice Versa. The
solution should work even if a new route is added in either one of the EIGRP
Domains.
------
R1
------
------
R6
------
**************************************
Route-Summarization
**************************************
----------------------------------
1. Create routes within EIGRP 111
----------------------------------
----
R7
----
---------------------------------------
2. Summarize the 100.X.X.X.0/24 Routes
----------------------------------------
----
R2
----
router ospf 1
area 10 range 100.0.0.0 252.0.0.0
---------------------------------------
3. Summarize the 105.1.X.X.0/24 Routes
----------------------------------------
----
R2
----
router ospf 1
area 10 range 105.1.4.0 255.255.252.0
---------------------------------------
4. Summarize the 201.1.20.X.0/24 Routes
----------------------------------------
----
R1
----
router ospf 1
summary-address 201.1.20.0 255.255.252.0
**************************************
LSA Type 3 Filtering
**************************************
----
R3
----