您的位置:首页 > 其它

EIGRP、OSPF、IS-IS路由协议之间的重发布实例

2010-05-15 18:55 591 查看
[align=center]EIGRP[/b]、[/b]OSPF[/b]、[/b]IS-IS[/b]路由协议之间的重发布实例[/b][/b][/align]
[align=center] [/b]作者:骄[/b] [/b]子[/b][/b][/align]
[align=center] [/b][/align]
[align=center][/b][/align]

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 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路由器。
此实验有待完善,希望大家继续扩展、应用多种协议或者策略上去。本文出自 “wangyunfei9000” 博客,转载请与作者联系!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: