0% found this document useful (0 votes)
18 views11 pages

Day 4 - OSPF - 2

Uploaded by

zxware
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views11 pages

Day 4 - OSPF - 2

Uploaded by

zxware
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 11

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

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
-----

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

======================================
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
---------------------------

show ip ospf database router

Advertising Router: 0.0.0.1 (R1)


Links: 1.0.0.0/8 Type: Stub Cost: 1
192.1.100.0/24 Type: Transit Cost: 10

Advertising Router: 0.0.0.2 (R2)


Links: 2.0.0.0/8 Type: Stub Cost: 1
192.1.100.0/24 Type: Transit Cost: 10
192.1.101.0/24 Type: P2P Cost: 64
0.0.0.5 Neighbor 192.1.101.0/24

Advertising Router: 0.0.0.3 (R3)


Links: 3.0.0.0/8 Type: Stub Cost: 1
192.1.100.0/24 Type: Transit Cost: 10
192.1.103.0/24 Type: Transit Cost: 10

Advertising Router: 0.0.0.4 (R4)


Links: 4.0.0.0/8 Type: Stub Cost: 1
192.1.102.0/24 Type: P2P Cost: 64
0.0.0.5 Neighbor 192.1.102.0/24
192.1.103.0/24 Type: Transit Cost: 10

Advertising Router: 0.0.0.5 (R5)


Links: 5.0.0.0/8 Type: Stub Cost: 1
192.1.101.0/24 Type: P2P Cost: 64
0.0.0.2 Neighbor 192.1.101.0/24
192.1.102.0/24 Type: P2P Cost: 64
0.0.0.4 Neighbor 192.1.102.0/24

Advertising Router: 0.0.0.6 (R6)


Links: 6.0.0.0/8 Type: Stub Cost: 1
192.1.103.0/24 Type: Transit Cost: 10
192.1.67.0/24 Type: Transit Cost: 10

Advertising Router: 0.0.0.7 (R7)


Links: 192.1.67.0/24 Type: Transit Cost: 10

Advertising Router: 0.0.0.11 (R11)


Links: 11.0.0.0/8 Type: Stub Cost: 1
192.1.100.0/24 Type: Transit Cost: 10

---------------------------
LSA Type 2 - Network LSA
---------------------------

show ip ospf database network

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
--------------------

Attached Routers: 0.0.0.3, 0.0.0.4, 0.0.0.6

DR - 192.1.67.0/24
--------------------

Attached Routers: 0.0.0.6, 0.0.0.7

**************************************
Multi-Domain/Multi-Area Topology
**************************************

-------------
EIGRP - 111
-------------

----
R1
----

router eigrp 111


network 192.1.17.0
network 192.1.18.0
network 11.0.0.0

----
R7
----

router eigrp 111


network 192.1.17.0
network 107.0.0.0
network 7.0.0.0
network 77.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
----

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
----

router eigrp 222


network 192.1.69.0
network 66.0.0.0

----
R9
----
router eigrp 222
network 192.1.69.0
network 9.0.0.0
network 99.0.0.0

-------------------------------------
Redistribution - OSPF & EIGRP 111
-------------------------------------

-----
R1
-----

router eigrp 111


default-metric 10 10 10 10 10
redistribute ospf 1
!
router ospf 1
redistribute eigrp 111 metric-type 1

-----
R2
-----

router eigrp 222


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

**************************************
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
------

route-map E2O permit 10


set tag 111
!
router ospf 1
redistribute eigrp 111 route-map E2O
!
route-map O2E deny 10
match tag 99
route-map O2E permit 20
!
router eigrp 111
redistribute ospf 1 route-map O2E

------
R6
------

route-map O2E deny 10


match tag 111
route-map O2E permit 20
!
router eigrp 222
redistribute ospf 1 route-map O2E
!
route-map E2O permit 10
set tag 99
!
router ospf 1
redistribute eigrp 222 route-map E2O

**************************************
Route-Summarization
**************************************

----------------------------------
1. Create routes within EIGRP 111
----------------------------------

----
R7
----

Interface loopback 201


ip address 201.1.20.1 255.255.255.0
Interface loopback 202
ip address 201.1.21.1 255.255.255.0
Interface loopback 203
ip address 201.1.22.1 255.255.255.0
Interface loopback 204
ip address 201.1.23.1 255.255.255.0
!
router eigrp 111
network 201.1.0.0 0.0.255.255

---------------------------------------
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
**************************************

Requirement: 55.0.0.0/8 should not be propagated out of Area 20.

----
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 20 filter-list prefix PL-1 out

You might also like