Routing_Distance_Redistribution


Bu LAB'daki amacimiz Subedeki VOIP networkunun G.SHDSL devre uzerinden EIGRP ile, LAN networkunun LisedLine devre uzerinden OSPF ile birbirlerini yedekleyerek merkezle haberlesmesi.

Normal olarak bu yapida EIGRP nin Administrative Distance degeri (90), OSPF ten (110) kucuk oldugundan tum trafik EIGRP ile G.SHDSL devre uzerinden tasinmaktadir.











R2#sh ip route

O 10.1.13.0 [110/65] via 10.1.124.1, 00:51:48, FastEthernet0/0

C 10.1.23.0 is directly connected, Serial1/0

D 10.1.38.0 [90/2172416] via 10.1.23.3, 00:00:14, Serial1/0

D 10.1.37.0 [90/2172416] via 10.1.23.3, 00:00:14, Serial1/0

C 10.1.124.0 is directly connected, FastEthernet0/0


R1#sh ip route

C 10.1.13.0 is directly connected, Serial1/1

D 10.1.23.0 [90/2172416] via 10.1.124.2, 00:03:18, FastEthernet0/0

D 10.1.38.0 [90/2174976] via 10.1.124.2, 00:03:00, FastEthernet0/0

D 10.1.37.0 [90/2174976] via 10.1.124.2, 00:03:00, FastEthernet0/0

C 10.1.124.0 is directly connected, FastEthernet0/0


Ama bizim istedigimiz VOIP'in G.SHDSL ile LAN'in LisedLine ile tasinmasidir.

Tum networkler EIGRP ile R2 uzerinden merkeze tasindigina gore R2 uzerinde birseyler yapmamiz lazim. LAN networkunun LL devre uzerinden akmasi icin R2 deki EIGRP uzerinde LAN'a ait AD degerini OSPF AD degeri uzerinde cikarirsak zaten OSPF database'inde olan LAN networkunu R2'nin routing tablosuna sokabiliriz.


Once LAN networkunu bir ACL ile belirleyelim:


R2(config)#ip access-list standard LAN

R2(config-std-nacl)#permit 10.1.37.0 0.0.0.255


Simdide LAN networkunun EIGRP de distance degerini OSPF'in uzerine cikaralim:


R2(config)#router ei 1

R2(config-router)#distance 150 10.1.23.3 0.0.0.0 LAN

R2(config-router)#end

*Mar 1 01:21:17.567: %SYS-5-CONFIG_I: Configured from console by console

*Mar 1 01:21:17.647: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 10.1.23.3 (Serial1/0) is down: route configuration changed

*Mar 1 01:21:17.671: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 10.1.124.1 (FastEthernet0/0) is down: route configuration changed

R2#

*Mar 1 01:21:20.755: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 10.1.124.1 (FastEthernet0/0) is up: new adjacency

R2#

*Mar 1 01:21:59.343: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 10.1.23.3 (Serial1/0) is up: new adjacency


Routing tablosunu tekrar kontrol edelim:


R2#sh ip route

O 10.1.13.0 [110/65] via 10.1.124.1, 01:22:17, FastEthernet0/0

C 10.1.23.0 is directly connected, Serial1/0

D 10.1.38.0 [90/2172416] via 10.1.23.3, 00:01:53, Serial1/0

O 10.1.37.0 [110/66] via 10.1.124.1, 00:02:37, FastEthernet0/0

C 10.1.124.0 is directly connected, FastEthernet0/0


R1#sh ip route

C 10.1.13.0 is directly connected, Serial1/1

D 10.1.23.0 [90/2172416] via 10.1.124.2, 00:13:46, FastEthernet0/0

D 10.1.38.0 [90/2174976] via 10.1.124.2, 00:13:08, FastEthernet0/0

O 10.1.37.0 [110/65] via 10.1.13.3, 00:13:52, Serial1/1

C 10.1.124.0 is directly connected, FastEthernet0/0


Distance komutundaki 150 AD degeridir. 150 yapmamin nedeni OSPF'in AD degerinden (110) buyuk bir deger olmasidir yani 111 de olabilir.

Distance komutundaki diger bir parametre de "IP Source Address" EIGRP update'i aldigim komsumun adresidir.

Distance komutunda son olarak ta standart ACL ismini belirtiyoruz.

Son olarak R2 EIGRP tablosundaki route'larin merkezdeki OSPF'e duyrulmasi gerekir. Yedeklilik polikitamiz geregi LL devrenin kopmasi durumunda OSPF'in EIGRP route larini G.SHDSL devre uzerinden almasi gerekir.


R2(config)#router ospf 1

R2(config-router)#redistribute eigrp 1 subnets

R2(config-router)#end

R2#clear ip ospf process

Reset ALL OSPF processes? [no]: y

*Mar 1 01:43:09.251: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.124.1 on FastEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detached

*Mar 1 01:43:09.251: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.124.4 on FastEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detached

*Mar 1 01:43:09.383: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.124.1 on FastEthernet0/0 from LOADING to FULL, Loading Done

*Mar 1 01:43:09.383: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.124.4 on FastEthernet0/0 from LOADING to FULL, Loading Done


R4#sh ip route

O 10.1.13.0 [110/65] via 10.1.124.1, 00:00:21, FastEthernet0/0

O E2 10.1.23.0 [110/20] via 10.1.124.2, 00:00:21, FastEthernet0/0

O 10.1.38.0 [110/66] via 10.1.124.1, 00:00:21, FastEthernet0/0

O 10.1.37.0 [110/66] via 10.1.124.1, 00:00:21, FastEthernet0/0

C 10.1.124.0 is directly connected, FastEthernet0/0


LL devreyi kapatirsak:


R1(config)#int s1/1

R1(config-if)#shutdown

*Mar 1 01:52:53.299: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.38.3 on Serial1/1 from FULL to DOWN, Neighbor Down: Interface down or detached

R1(config-if)#

*Mar 1 01:52:55.295: %LINK-5-CHANGED: Interface Serial1/1, changed state to administratively down

*Mar 1 01:52:56.295: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to down


R4#sh ip route

O E2 10.1.23.0 [110/20] via 10.1.124.2, 00:01:20, FastEthernet0/0

O E2 10.1.38.0 [110/20] via 10.1.124.2, 00:01:20, FastEthernet0/0

O E2 10.1.37.0 [110/20] via 10.1.124.2, 00:01:20, FastEthernet0/0

C 10.1.124.0 is directly connected, FastEthernet0/0


G.SHDSL devreyi kapatalim:


R2(config)#int s1/0

R2(config-if)#shutdown

R2(config-if)#

*Mar 1 01:56:58.659: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 10.1.23.3 (Serial1/0) is down: interface down

R2(config-if)#

*Mar 1 01:57:00.523: %LINK-5-CHANGED: Interface Serial1/0, changed state to administratively down

*Mar 1 01:57:01.523: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down


R4#sh ip route

O 10.1.13.0 [110/65] via 10.1.124.1, 00:01:36, FastEthernet0/0

O 10.1.38.0 [110/66] via 10.1.124.1, 00:01:36, FastEthernet0/0

O 10.1.37.0 [110/66] via 10.1.124.1, 00:01:36, FastEthernet0/0

C 10.1.124.0 is directly connected, FastEthernet0/0