Note:
Default metric
RIP : Hop count
EIGRP: kFormula ( Bandwitch Delay MTU
OSPF: 100/bandwidth
BGP:
Default redistributed metric
Rip = infinite
EIGRP = Infinite
OSPF=20
BGP=same as before
config t
interface Serial1/0
ip address 10.1.12.1 255.255.255.0
no shut
exit
exit
wr
Configuring loop back interfaces
config t
interface Loopback0
ip address 10.1.0.1 255.255.255.0
!
interface Loopback1
ip address 10.1.1.1 255.255.255.0
!
interface Loopback2
ip address 10.1.2.1 255.255.255.0
!
interface Loopback3
ip address 10.1.3.1 255.255.255.0
!
interface Loopback4
ip address 10.1.4.1 255.255.255.0
!
interface Loopback5
ip address 10.1.5.1 255.255.255.0
!
interface Loopback6
ip address 10.1.6.1 255.255.255.0
exit
exit
wr
Advertising network
config t
router eigrp 100
network 10.0.0.0
no auto-summary
exit
exti
wr
interface configuration
config t
interface Serial1/0
ip address 10.1.12.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 10.1.23.2 255.255.255.0
serial restart-delay 0
exit
exit
wr
Advertising network
config t
router eigrp 100
redistribute ospf 1
network 10.1.12.0 0.0.0.255
auto-summary
!
router ospf 1
log-adjacency-changes
network 10.1.23.0 0.0.0.255 area 0
exit
exit
wr
interface configuration
config t
interface Loopback7
ip address 10.1.7.1 255.255.255.0
interface Loopback8
ip address 10.1.8.1 255.255.255.0
interface Loopback9
ip address 10.1.9.1 255.255.255.0
interface Loopback10
ip address 10.1.10.1 255.255.255.0
interface Loopback11
ip address 10.1.11.1 255.255.255.252
interface Loopback12
ip address 10.1.11.5 255.255.255.252
interface Loopback13
ip address 10.1.11.9 255.255.255.252
interface Serial1/1
ip address 10.1.23.3 255.255.255.0
exit
exit
wr
Advertising network
congfig t
router ospf 1
log-adjacency-changes
network 10.0.0.0 0.255.255.255 area 0
exit
exit
wr
Note: As of now the OSPF network are adverted as host ip address with 32 bit mask.
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 16 subnets, 2 masks
O 10.1.10.1/32 [110/65] via 10.1.23.3, 00:00:47, Serial1/1
O 10.1.11.1/32 [110/65] via 10.1.23.3, 00:00:47, Serial1/1
O 10.1.8.1/32 [110/65] via 10.1.23.3, 00:00:47, Serial1/1
O 10.1.9.1/32 [110/65] via 10.1.23.3, 00:00:47, Serial1/1
O 10.1.11.5/32 [110/65] via 10.1.23.3, 00:00:47, Serial1/1
C 10.1.12.0/24 is directly connected, Serial1/0
D 10.1.3.0/24 [90/2297856] via 10.1.12.1, 01:17:33, Serial1/0
O 10.1.11.9/32 [110/65] via 10.1.23.3, 00:00:48, Serial1/1
D 10.1.2.0/24 [90/2297856] via 10.1.12.1, 01:17:34, Serial1/0
D 10.1.1.0/24 [90/2297856] via 10.1.12.1, 01:17:34, Serial1/0
D 10.1.0.0/24 [90/2297856] via 10.1.12.1, 01:17:35, Serial1/0
O 10.1.7.1/32 [110/65] via 10.1.23.3, 00:00:48, Serial1/1
D 10.1.6.0/24 [90/2297856] via 10.1.12.1, 01:19:30, Serial1/0
D 10.1.5.0/24 [90/2297856] via 10.1.12.1, 01:19:30, Serial1/0
D 10.1.4.0/24 [90/2297856] via 10.1.12.1, 01:19:30, Serial1/0
C 10.1.23.0/24 is directly connected, Serial1/1
Fix
To fix this issue enter " ip ospf network point-to-point" command on each loopback interface.
config t
interface Loopback7
ip ospf network point-to-point
interface Loopback8
ip ospf network point-to-point
interface Loopback9
ip ospf network point-to-point
interface Loopback10
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
exit
exit
wr
Redistributin EIGRP into OSPF
router ospf 1
redistribute eigrp 100 subnets
To insert EIGRP route in OSPF domain we need to go to OSPF process ID and type "redistribute" followed by EIGRP AS
R2(config)#router ospf 1
R2(config-router)#redistribute eigrp 100 ?
metric Metric for redistributed routes
metric-type OSPF/IS-IS exterior metric type for redistributed routes
route-map Route map reference
subnets Consider subnets for redistribution into OSPF
tag Set tag for routes redistributed into OSPF
<cr>
metric : by default its 20
Metric- type : E1 or E2, By default its E2 which will not increment the metric
Routemap : check the route map section
Subnets : to include subnets
tag : add tag to avoid loops
Router 3
Show route to see EIGRP routes in OSPF domain
R3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 16 subnets, 2 masks
C 10.1.11.0/30 is directly connected, Loopback11
C 10.1.10.0/24 is directly connected, Loopback10
C 10.1.9.0/24 is directly connected, Loopback9
C 10.1.8.0/24 is directly connected, Loopback8
C 10.1.11.4/30 is directly connected, Loopback12
O E2 10.1.12.0/24 [110/20] via 10.1.23.2, 00:00:13, Serial1/1
O E2 10.1.3.0/24 [110/20] via 10.1.23.2, 00:00:13, Serial1/1
C 10.1.11.8/30 is directly connected, Loopback13
O E2 10.1.2.0/24 [110/20] via 10.1.23.2, 00:00:14, Serial1/1
O E2 10.1.1.0/24 [110/20] via 10.1.23.2, 00:00:14, Serial1/1
O E2 10.1.0.0/24 [110/20] via 10.1.23.2, 00:00:14, Serial1/1
C 10.1.7.0/24 is directly connected, Loopback7
O E2 10.1.6.0/24 [110/20] via 10.1.23.2, 00:00:16, Serial1/1
O E2 10.1.5.0/24 [110/20] via 10.1.23.2, 00:00:16, Serial1/1
O E2 10.1.4.0/24 [110/20] via 10.1.23.2, 00:00:16, Serial1/1
C 10.1.23.0/24 is directly connected, Serial1/1
Redistributing OSPF into EIGRP
router eigrp 100
redistribute ospf 1 metric 100 100 100 100 100
same as above to redistribute OSPF into EIGRP domain we need to go to EIGRP AS and type "redistribute" followed by OSPF process ID
R2(config)#router eigrp 100
R2(config-router)#redi
R2(config-router)#redistribute ospf 1 ?
match Redistribution of OSPF routes
metric Metric for redistributed routes
route-map Route map reference
vrf VPN Routing/Forwarding Instance
<cr>
Match : to match internal, External or not so stubby (NSS) routes
Metric : by default its infinite
R2(config-router)#redistribute ospf 1 me
R2(config-router)#redistribute ospf 1 metric ?
<1-4294967295> Bandwidth metric in Kbits per second
R2(config-router)#redistribute ospf 1 metric 100 ?
<0-4294967295> IGRP delay metric, in 10 microsecond units
R2(config-router)#redistribute ospf 1 metric 100 100 ?
<0-255> IGRP reliability metric where 255 is 100% reliable
R2(config-router)#redistribute ospf 1 metric 100 100 100 ?
<1-255> IGRP Effective bandwidth metric (Loading) where 255 is 100% loaded
R2(config-router)#redistribute ospf 1 metric 100 100 100 100 ?
<1-4294967295> IGRP MTU of the path
R2(config-router)#redistribute ospf 1 metric 100 100 100 100 100 ?
match Redistribution of OSPF routes
route-map Route map reference
<cr>
Route-map : check the route map section
vrf : not covered in this tutorial
Router 1
Show IP Route on router 1 to see external routes from OSPF domain.
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 16 subnets, 2 masks
D EX 10.1.11.0/30 [170/26137600] via 10.1.12.2, 00:00:10, Serial1/0
D EX 10.1.10.0/24 [170/26137600] via 10.1.12.2, 00:00:10, Serial1/0
D EX 10.1.9.0/24 [170/26137600] via 10.1.12.2, 00:00:10, Serial1/0
D EX 10.1.8.0/24 [170/26137600] via 10.1.12.2, 00:00:10, Serial1/0
D EX 10.1.11.4/30 [170/26137600] via 10.1.12.2, 00:00:10, Serial1/0
C 10.1.12.0/24 is directly connected, Serial1/0
D EX 10.1.11.8/30 [170/26137600] via 10.1.12.2, 00:00:11, Serial1/0
C 10.1.3.0/24 is directly connected, Loopback3
C 10.1.2.0/24 is directly connected, Loopback2
C 10.1.1.0/24 is directly connected, Loopback1
C 10.1.0.0/24 is directly connected, Loopback0
D EX 10.1.7.0/24 [170/26137600] via 10.1.12.2, 00:00:11, Serial1/0
C 10.1.6.0/24 is directly connected, Loopback6
C 10.1.5.0/24 is directly connected, Loopback5
C 10.1.4.0/24 is directly connected, Loopback4
D EX 10.1.23.0/24 [170/26137600] via 10.1.12.2, 00:00:13, Serial1/0
R1#
Options for avoiding redistribution issues and filtering
1) Passive interface
2) Administrative
3) Distribute list/Prefix list
4) Routemap / tag
Router 2
access-list 1 permit 10.1.1.0 0.0.0255
access-list 1 permit 10.1.3.0 0.0.0.255
access-list 1 permit 10.1.5.0 0.0.0.255
router ospf 1
distribute-list 1 out
go to router 3 and do show ip route
R3#show ip route
10.0.0.0/8 is variably subnetted, 11 subnets, 2 masks
C 10.1.11.0/30 is directly connected, Loopback11
C 10.1.10.0/24 is directly connected, Loopback10
C 10.1.9.0/24 is directly connected, Loopback9
C 10.1.8.0/24 is directly connected, Loopback8
C 10.1.11.4/30 is directly connected, Loopback12
O E2 10.1.3.0/24 [110/20] via 10.1.23.2, 01:54:10, Serial1/1
C 10.1.11.8/30 is directly connected, Loopback13
O E2 10.1.1.0/24 [110/20] via 10.1.23.2, 01:54:11, Serial1/1
C 10.1.7.0/24 is directly connected, Loopback7
O E2 10.1.5.0/24 [110/20] via 10.1.23.2, 01:54:11, Serial1/1
C 10.1.23.0/24 is directly connected, Serial1/1
Router 2
ip prifix list XYZ permit 10.0.0.0/8 le 24
route-map FILTER_OSPF_TO_EIGRP
match ip address prefix list XYZ
R2#show ip prefix-list
ip prefix-list ARUN: 1 entries
seq 5 permit 10.0.0.0/8 le 24
R2#show route-map
route-map FILTER_OSPF_TO_EIGRP, permit, sequence 10
Match clauses:
ip address prefix-lists: ARUN
Set clauses:
Policy routing matches: 0 packets, 0 bytes
Inserting routemap filter into redistribution
router Eigrp 100
redistribute OSPF 1 metric 100 100 100 100 100 route-map FILTER_OSPF_TO_EIGRP
R1#show ip route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 13 subnets
D EX 10.1.10.0 [170/26137600] via 10.1.12.2, 01:54:10, Serial1/0
D EX 10.1.9.0 [170/26137600] via 10.1.12.2, 01:54:10, Serial1/0
D EX 10.1.8.0 [170/26137600] via 10.1.12.2, 01:54:10, Serial1/0
C 10.1.12.0 is directly connected, Serial1/0
C 10.1.3.0 is directly connected, Loopback3
C 10.1.2.0 is directly connected, Loopback2
C 10.1.1.0 is directly connected, Loopback1
C 10.1.0.0 is directly connected, Loopback0
D EX 10.1.7.0 [170/26137600] via 10.1.12.2, 01:54:11, Serial1/0
C 10.1.6.0 is directly connected, Loopback6
C 10.1.5.0 is directly connected, Loopback5
C 10.1.4.0 is directly connected, Loopback4
D EX 10.1.23.0 [170/26137600] via 10.1.12.2, 01:54:13, Serial1/0
no /30 network are redistributed from OSPF domain into EIGRP