Redistribution OSPF - EIGRP

Publié le par joseph

redistribution-ospf---eigrp.jpg

cliquer sur l'image pour agrandir

conf ig :


host R5

int s0/0

descrip connection-to-R1
no shut
ip add 192.168.3.33 255.255.255.224
encap ppp
clock rate 56000
exit

int loopback 0
ip add 192.168.3.65 255.255.255.224
exit

int loopback 1
ip add 192.168.3.97 255.255.255.224
exit

int loopback 2
ip add 192.168.1.1 255.255.255.0
exit

router ospf 1
net 192.168.3.32 0.0.0.31 area 0
net 192.168.3.64 0.0.0.31 area 0
net 192.168.3.96 0.0.0.31 area 0
net 192.168.1.0 0.0.0.255 area 0

end

wr

--------------------------
host R1

int s0/0
descrip connection-to-R5
no shut
ip add 192.168.3.34 255.255.255.224
encap ppp
exit

int f0/1
descrip connection-to-R2
no shut
ip add 172.16.2.21 255.255.255.252
exit


int f1/0
descrip connection-to-R3
no shut
ip add 192.168.4.5 255.255.255.252
exit

int f0/0
descrip connection-to-R4
no shut
ip add 192.168.3.129 255.255.255.224
exit

router ospf 1

redistri eigrp 100
redistri eigrp 200 metric 100
default metric 10
net 192.168.3.32 0.0.0.31 area 0

exit

router eigrp 100

redistri ospf 1 metric 1000 100 1 255 1500
redistri eigrp 200
net 192.168.4.0
net 172.16.0.0

exit

router eigrp 200
pass f0/0
redistri ospf 1 metric 1000 100 1 255 1500
redistri eigrp 100
net 192.168.3.0

exit

end

wr
---------------------

host r2

int f0/0
descrip connection-to-R1
ip add 172.16.2.22 255.255.255.252
no shut
exit

int loop 0
ip add 172.16.1.1 255.255.255.0

exit

router eigrp 100
net 172.16.0.0

end

wr

----------------------------------


host R3

int f0/0
descrip connection-to-R1
ip add 192.168.4.6 255.255.255.252
no shut
exit

int loop 0
ip add 192.168.4.73 255.255.255.248

exit

router eigrp 100
net 192.168.4.0

end

wr

------------------------------

host R4

int f0/0
descrip connection-to-R1
ip add 192.168.3.130 255.255.255.224
no shut
exit

int loop 0
ip add 192.168.3.161 255.255.255.224
exit

int loop 1
ip add  192.168.3.193 255.255.255.224
exit

int loop 2

ip add 192.168.2.1 255.255.255.0

router eigrp 200

net 192.168.3.0
net 192.168.2.0

exit

 


-------------------------------------

verification:

R5>en
R5#sh ip route
Codes: C - connected, S - static, 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
       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

O E2 172.16.0.0/16 [110/50] via 192.168.3.34, 00:21:44, Serial0/0
O E2 192.168.4.0/24 [110/50] via 192.168.3.34, 00:21:43, Serial0/0
C    192.168.1.0/24 is directly connected, Loopback2
O E2 192.168.2.0/24 [110/100] via 192.168.3.34, 00:09:12, Serial0/0
     192.168.3.0/24 is variably subnetted, 4 subnets, 2 masks
C       192.168.3.96/27 is directly connected, Loopback1
C       192.168.3.64/27 is directly connected, Loopback0
C       192.168.3.34/32 is directly connected, Serial0/0
C       192.168.3.32/27 is directly connected, Serial0/0
R5#

R4>en
R4#sh ip route
Codes: C - connected, S - static, 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
       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

     172.16.0.0/16 is variably subnetted, 3 subnets, 3 masks
D EX    172.16.2.20/30
           [170/307200] via 192.168.3.129, 00:11:22, FastEthernet0/0
D EX    172.16.0.0/16
           [170/307200] via 192.168.3.129, 00:11:22, FastEthernet0/0
D EX    172.16.1.0/24
           [170/435200] via 192.168.3.129, 00:11:22, FastEthernet0/0
     192.168.4.0/24 is variably subnetted, 3 subnets, 3 masks
D EX    192.168.4.72/29
           [170/412160] via 192.168.3.129, 00:11:22, FastEthernet0/0
D EX    192.168.4.4/30
           [170/284160] via 192.168.3.129, 00:11:22, FastEthernet0/0
D EX    192.168.4.0/24
           [170/284160] via 192.168.3.129, 00:11:22, FastEthernet0/0
     192.168.1.0/32 is subnetted, 1 subnets
D EX    192.168.1.1 [170/2611200] via 192.168.3.129, 00:11:24, FastEthernet0/0
C    192.168.2.0/24 is directly connected, Loopback2
     192.168.3.0/24 is variably subnetted, 7 subnets, 2 masks
D EX    192.168.3.97/32
           [170/2611200] via 192.168.3.129, 00:11:24, FastEthernet0/0
D EX    192.168.3.65/32
           [170/2611200] via 192.168.3.129, 00:11:24, FastEthernet0/0
D       192.168.3.33/32
           [90/2195456] via 192.168.3.129, 00:11:24, FastEthernet0/0
D       192.168.3.32/27
           [90/2195456] via 192.168.3.129, 00:11:24, FastEthernet0/0
C       192.168.3.192/27 is directly connected, Loopback1
C       192.168.3.160/27 is directly connected, Loopback0
C       192.168.3.128/27 is directly connected, FastEthernet0/0
R4#

r3#sh ip route
Codes: C - connected, S - static, 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
       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

D    172.16.0.0/16 [90/307200] via 192.168.4.5, 00:24:18, FastEthernet0/0
     192.168.4.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.4.72/29 is directly connected, Loopback0
C       192.168.4.4/30 is directly connected, FastEthernet0/0
     192.168.1.0/32 is subnetted, 1 subnets
D EX    192.168.1.1 [170/2611200] via 192.168.4.5, 00:24:18, FastEthernet0/0
D EX 192.168.2.0/24 [170/435200] via 192.168.4.5, 00:11:49, FastEthernet0/0
     192.168.3.0/24 is variably subnetted, 7 subnets, 2 masks
D EX    192.168.3.97/32
           [170/2611200] via 192.168.4.5, 00:24:18, FastEthernet0/0
D EX    192.168.3.65/32
           [170/2611200] via 192.168.4.5, 00:24:18, FastEthernet0/0
D EX    192.168.3.33/32
           [170/2195456] via 192.168.4.5, 00:24:18, FastEthernet0/0
D EX    192.168.3.32/27
           [170/2195456] via 192.168.4.5, 00:24:19, FastEthernet0/0
D EX    192.168.3.192/27
           [170/435200] via 192.168.4.5, 00:11:50, FastEthernet0/0
D EX    192.168.3.160/27
           [170/435200] via 192.168.4.5, 00:11:50, FastEthernet0/0
D EX    192.168.3.128/27
           [170/307200] via 192.168.4.5, 00:24:19, FastEthernet0/0
r3#

r2#sh ip route
Codes: C - connected, S - static, 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
       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

     172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C       172.16.2.20/30 is directly connected, FastEthernet0/0
C       172.16.1.0/24 is directly connected, Loopback0
D    192.168.4.0/24 [90/284160] via 172.16.2.21, 00:24:50, FastEthernet0/0
     192.168.1.0/32 is subnetted, 1 subnets
D EX    192.168.1.1 [170/2611200] via 172.16.2.21, 00:32:22, FastEthernet0/0
D EX 192.168.2.0/24 [170/435200] via 172.16.2.21, 00:12:18, FastEthernet0/0
     192.168.3.0/24 is variably subnetted, 7 subnets, 2 masks
D EX    192.168.3.97/32
           [170/2611200] via 172.16.2.21, 00:32:22, FastEthernet0/0
D EX    192.168.3.65/32
           [170/2611200] via 172.16.2.21, 00:32:22, FastEthernet0/0
D EX    192.168.3.33/32
           [170/2195456] via 172.16.2.21, 00:32:22, FastEthernet0/0
D EX    192.168.3.32/27
           [170/2195456] via 172.16.2.21, 00:32:23, FastEthernet0/0
D EX    192.168.3.192/27
           [170/435200] via 172.16.2.21, 00:12:19, FastEthernet0/0
D EX    192.168.3.160/27
           [170/435200] via 172.16.2.21, 00:12:19, FastEthernet0/0
D EX    192.168.3.128/27
           [170/307200] via 172.16.2.21, 00:32:23, FastEthernet0/0
r2#



           [170/307200] via 172.16.2.21, 00:32:23, FastEthernet0/0
r2#ping 192.168.3.65

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.65, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/48/128 ms
r2#ping 192.168.3.97

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.97, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/37/104 ms
r2#ping 192.168.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/40/104 ms
r2#ping 192.168.3.161

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.161, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/44/124 ms
r2#ping 192.168.3.193

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.193, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/51/68 ms
r2#ping 192.168.2.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/47/100 ms
r2#



Pour être informé des derniers articles, inscrivez vous :
Commenter cet article