天天看點

RIP-OSPF-EIGRP 互相再釋出

1、拓撲

RIP-OSPF-EIGRP 互相再釋出

2、配置清單

R1#show run

Building configuration...

Current configuration : 590 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

hostname R1

interface Loopback0

 ip address 1.1.1.1 255.255.255.0

interface FastEthernet0/0

 ip address 12.12.12.1 255.255.255.0

 duplex auto

 speed auto

interface FastEthernet0/1

 no ip address

 shutdown

interface Vlan1

router rip

 version 2

 network 1.0.0.0

 network 12.0.0.0

 no auto-summary

ip classless

line con 0

line vty 0 4

 login

end

R1#

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

R2#show run

Current configuration : 755 bytes

hostname R2

 ip address 2.2.2.2 255.255.255.0

 ip address 12.12.12.2 255.255.255.0

 ip address 23.23.23.2 255.255.255.0

router ospf 10

 log-adjacency-changes

 redistribute rip subnets

 network 2.2.2.0 0.0.0.255 area 0

 network 23.23.23.0 0.0.0.255 area 0

 redistribute ospf 10 metric 8

R2#

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

R3#show run

Current configuration : 771 bytes

hostname R3

 ip address 3.3.3.3 255.255.255.0

 ip address 34.34.34.3 255.255.255.0

 ip address 23.23.23.3 255.255.255.0

router eigrp 10

 redistribute ospf 10 metric 24 24 24 24 1500

 network 3.3.3.0 0.0.0.255

 network 34.34.34.0 0.0.0.255

 auto-summary

 redistribute eigrp 10 subnets

R3#

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

R4#show run

Current configuration : 603 bytes

hostname R4

 ip address 4.4.4.4 255.255.255.0

 ip address 34.34.34.4 255.255.255.0

 network 4.4.4.0 0.0.0.255

R4#

3、實驗結果

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

     1.0.0.0/24 is subnetted, 1 subnets

C       1.1.1.0 is directly connected, Loopback0

     2.0.0.0/32 is subnetted, 1 subnets

R       2.2.2.2 [120/8] via 12.12.12.2, 00:09:39, FastEthernet0/0

     3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

R       3.0.0.0/8 [120/8] via 12.12.12.2, 00:09:39, FastEthernet0/0

R       3.3.3.0/24 [120/8] via 12.12.12.2, 00:09:39, FastEthernet0/0

R    4.0.0.0/8 [120/8] via 12.12.12.2, 00:09:39, FastEthernet0/0

     12.0.0.0/24 is subnetted, 1 subnets

C       12.12.12.0 is directly connected, FastEthernet0/0

     23.0.0.0/24 is subnetted, 1 subnets

R       23.23.23.0 [120/8] via 12.12.12.2, 00:09:39, FastEthernet0/0

     34.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

R       34.0.0.0/8 [120/8] via 12.12.12.2, 00:09:39, FastEthernet0/0

R       34.34.34.0/24 [120/8] via 12.12.12.2, 00:09:39, FastEthernet0/0

R1#

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

繼續閱讀