EIGRP OSPF IS-IS 路由协议之间的重发布实例 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

                                       作者:骄

 

<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />

 

R1#sh run

Building configuration...

 

Current configuration : 1835 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname R1

!

multilink bundle-name authenticated

!

interface Loopback0

 ip address <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />1.1.1.1 255.255.255.0

!        

!

interface Serial1/0

 ip address 11.1.1.1 255.255.255.0

 serial restart-delay 0

 clock rate 64000

!

interface Serial1/1

 ip address 12.1.1.1 255.255.255.0

 serial restart-delay 0

 clock rate 64000

!

interface Serial1/2

 ip address 13.1.1.1 255.255.255.0

 ip router isis

 serial restart-delay 0

 clock rate 64000

!

router eigrp 100

 redistribute connected

 redistribute ospf 100 metric 1000 10 255 1 1500

 redistribute isis level-1-2 metric 3000 10 255 1 1500

 network 11.1.1.0 0.0.0.255

 no auto-summary

!

router ospf 100

 log-adjacency-changes

 redistribute connected subnets

 redistribute eigrp 100 metric 2000 subnets

 redistribute isis level-1-2 metric 5000 subnets

 network 12.1.1.0 0.0.0.255 area 0

!

router isis

 net 64.0012.0000.0000.0001.00

 redistribute connected level-1

 redistribute eigrp 100 metric 20 level-1-2

 redistribute ospf 100 metric 20 level-1-2

!

End

R2#sh run

Building configuration...

 

Current configuration : 1374 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

service password-encryption

!

hostname R2

!

multilink bundle-name authenticated

!

interface Loopback0

 ip address 2.2.2.2 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 Serial1/1

 ip address 11.1.1.2 255.255.255.0

 serial restart-delay 0

!

router eigrp 100

 network 10.1.1.0 0.0.0.255

 network 10.1.2.0 0.0.0.255

 network 10.1.3.0 0.0.0.255

 network 11.1.1.0 0.0.0.255

 no auto-summary

!

End

 

 

R3#sh run

Building configuration...

 

Current configuration : 1402 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

service password-encryption

!

hostname R3

multilink bundle-name authenticated

!

!

interface Loopback0

 ip address 172.16.1.1 255.255.255.0

!

interface Loopback1

 ip address 172.16.2.1 255.255.255.0

!

interface Loopback2

 ip address 172.16.3.1 255.255.255.0

!

interface Serial1/1

 ip address 12.1.1.2 255.255.255.0

 ip ospf priority 0

!

router ospf 100

 router-id 3.3.3.3

 log-adjacency-changes

 network 12.1.1.0 0.0.0.255 area 0

 network 172.16.1.0 0.0.0.255 area 0

 network 172.16.2.0 0.0.0.255 area 0

 network 172.16.3.0 0.0.0.255 area 0

!

no ip http server

no ip http secure-server

End

 

 

 

R3#sh run

Building configuration...

 

Current configuration : 1402 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname R3

!

interface Loopback0

 ip address 172.16.1.1 255.255.255.0

!

interface Loopback1

 ip address 172.16.2.1 255.255.255.0

!

interface Loopback2

 ip address 172.16.3.1 255.255.255.0

!

interface Serial1/1

 ip address 12.1.1.2 255.255.255.0

 ip ospf priority 0

 serial restart-delay 0

!

router ospf 100

 router-id 3.3.3.3

 log-adjacency-changes

 network 12.1.1.0 0.0.0.255 area 0

 network 172.16.1.0 0.0.0.255 area 0

 network 172.16.2.0 0.0.0.255 area 0

 network 172.16.3.0 0.0.0.255 area 0

!

no ip http server

no ip http secure-server

!

End

 

 

R4#sh run

Building configuration...

 

Current configuration : 1285 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname R4

!

interface Loopback0

 ip address 192.168.1.1 255.255.255.0

!

interface Loopback1

 ip address 192.168.2.1 255.255.255.0

!

interface Loopback2

 ip address 192.168.3.1 255.255.255.0

!

interface Serial1/1

 ip address 13.1.1.2 255.255.255.0

 ip router isis

 serial restart-delay 0

!

router isis

 net 64.0012.0000.0000.0002.00

 redistribute connected

!        

no ip http server

no ip http secure-server

end

实验总结:

EIGRP OSPF IS-IS 路由协议之间的重发布,对于 EIGRP OSPF IS-IS 重发布时默认不会通过直连子网,所以我们需要加上 redistribute connected 的命令。其他协议重分发进 EIGRP 时,需要添加上度量值(包括:带宽、延迟、可靠性、负载和 MTU )。而对于集成 IS-IS 我们需要 redistribute isis level-1-2 ,不可单独为 L1 (为内部路由器)或者 L2 IS-IS 间主干路由器),在不同协议之间重分发,因此因此我们需要指定为 L-1-2 路由器。

此实验有待完善,希望大家继续扩展、应用多种协议或者策略上去。