R4(config)#router ospf 1
R4(config-router)#redistribute eigrp 100 metric 100 subnets metric-type 2
R5(config)#router ospf 1
R5(config-router)#redistribute eigrp 100 subnets metric-type 2
R1#sh ip rout 6.6.6.6
Routing entry for 6.6.6.6/32
Known via "ospf 1", distance 110, metric 20, type extern 2, forward metric 2
Last update from 10.0.2.2 on FastEthernet1/0, 00:09:08 ago
Routing Descriptor Blocks:
* 10.0.2.2, from 5.5.5.5, 00:09:08 ago, via FastEthernet1/0
Route metric is 20, traffic share count is 1
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface FastEthernet0/0
R1(config-if)#ip ospf cost 100
R4(config-router)#router ospf 1
R4(config-router)#redistribute eigrp 100 metric-type 1 metric 99 subnets
R5(config)#router ospf 1
R5(config-router)#redistribute eigrp 100 metric-type 1 metric 198 subnets
R1#sh ip rout 6.6.6.6
Routing entry for 6.6.6.6/32
Known via "ospf 1", distance 110, metric 200, type extern 1
Last update from 10.0.2.2 on FastEthernet1/0, 00:02:46 ago
Routing Descriptor Blocks:
10.0.2.2, from 5.5.5.5, 00:02:46 ago, via FastEthernet1/0
Route metric is 200, traffic share count is 1
* 10.0.1.2, from 4.4.4.4, 00:02:46 ago, via FastEthernet0/0
Route metric is 200, traffic share count is 1
R4(config)#router ospf 1
R4(config-router)#redistribute eigrp 100 metric-type 2 metric 99 subnets
R5(config)#router ospf 1
R5(config-router)#redistribute eigrp 100 metric-type 2 metric 198 subnets
R1#sh ip rout 6.6.6.6
Routing entry for 6.6.6.6/32
Known via "ospf 1", distance 110, metric 99, type extern 2, forward metric 101
Last update from 10.0.1.2 on FastEthernet0/0, 00:03:01 ago
Routing Descriptor Blocks:
* 10.0.1.2, from 4.4.4.4, 00:03:01 ago, via FastEthernet0/0
Route metric is 99, traffic share count is 1
R4(config)#router ospf 1
R4(config-router)#redistribute eigrp 100 metric-type 2 metric 1 subnets
R5(config)#router ospf 1
R5(config-router)#redistribute eigrp 100 metric-type 2 metric 1 subnets
R1#sh ip route 6.6.6.6
Routing entry for 6.6.6.6/32
Known via "ospf 1", distance 110, metric 1, type extern 2, forward metric 2
Last update from 10.0.2.2 on FastEthernet1/0, 00:00:57 ago
Routing Descriptor Blocks:
* 10.0.2.2, from 5.5.5.5, 00:00:57 ago, via FastEthernet1/0
Route metric is 1, traffic share count is 1
R1#sh ip ospf database external 6.6.6.6
OSPF Router with ID (1.1.1.1) (Process ID 1)
Type-5 AS External Link States
LS age: 353
Options: (No TOS-capability, DC)
LS Type: AS External Link
Link State ID: 6.6.6.6 (External Network Number )
Advertising Router: 4.4.4.4
LS Seq Number: 8000000B
Checksum: 0x87F9
Length: 36
Network Mask: /32
Metric Type: 2 (Larger than any link state path)
TOS: 0
Metric: 1
Forward Address: 0.0.0.0
External Route Tag: 0
Routing Bit Set on this LSA
LS age: 325
Options: (No TOS-capability, DC)
LS Type: AS External Link
Link State ID: 6.6.6.6 (External Network Number )
Advertising Router: 5.5.5.5
LS Seq Number: 8000000A
Checksum: 0x6B13
Length: 36
Network Mask: /32
Metric Type: 2 (Larger than any link state path)
TOS: 0
Metric: 1
Forward Address: 0.0.0.0
External Route Tag: 0
R1#sh ip ospf database router 4.4.4.4
OSPF Router with ID (1.1.1.1) (Process ID 1)
R1#sh ip ospf database router 5.5.5.5
OSPF Router with ID (1.1.1.1) (Process ID 1)
R1#sh ip ospf database asbr-summary 5.5.5.5
OSPF Router with ID (1.1.1.1) (Process ID 1)
Summary ASB Link States (Area 0)
Routing Bit Set on this LSA
LS age: 379
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(AS Boundary Router)
Link State ID: 5.5.5.5 (AS Boundary Router address)
Advertising Router: 3.3.3.3
LS Seq Number: 80000009
Checksum: 0x34DE
Length: 28
Network Mask: /0
TOS: 0 Metric: 1
R1#sh ip ospf database asbr-summary 4.4.4.4
OSPF Router with ID (1.1.1.1) (Process ID 1)
Summary ASB Link States (Area 0)
Routing Bit Set on this LSA
LS age: 203
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(AS Boundary Router)
Link State ID: 4.4.4.4 (AS Boundary Router address)
Advertising Router: 2.2.2.2
LS Seq Number: 80000009
Checksum: 0x809A
Length: 28
Network Mask: /0
TOS: 0 Metric: 1
R1#sh ip ospf database router 1.1.1.1
OSPF Router with ID (1.1.1.1) (Process ID 1)
Router Link States (Area 0)
LS age: 1028
Options: (No TOS-capability, DC)
LS Type: Router Links
Link State ID: 1.1.1.1
Advertising Router: 1.1.1.1
LS Seq Number: 8000000E
Checksum: 0xBABB
Length: 48
Number of Links: 2
Link connected to: a Transit Network
(Link ID) Designated Router address: 10.0.2.2
(Link Data) Router Interface address: 10.0.2.1
Number of TOS metrics: 0
TOS 0 Metrics: 1
Link connected to: a Transit Network
(Link ID) Designated Router address: 10.0.1.2
(Link Data) Router Interface address: 10.0.1.1
Number of TOS metrics: 0
TOS 0 Metrics: 100
Source: https://habr.com/ru/post/117110/
All Articles