EIGRP、OSPF、IS-IS路由协议之间的重发布实例
原创
©著作权归作者所有:来自51CTO博客作者wangyunfei9000的原创作品,如需转载,请与作者联系,否则将追究法律责任
EIGRP、OSPF、IS-IS路由协议之间的重发布实例
作者:骄 子
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路由器。
此实验有待完善,希望大家继续扩展、应用多种协议或者策略上去。
下一篇:综合网络配置实例系列之三
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
ospf 入门
hhh
OSPF 数据库 IP -
路由协议:RIP、OSPF、BGP、IS-IS、EIGRP
路径选择:最终,OSPF使用SPF算法在路由数据库中的信息,为每个目标网络选择最短路径。OSPF
网络协议 Powered by 金山文档 OSPF 路由协议 EIGRP -
静态、rip、eigrp与ospf路由重发布
静态、rip、eigrp与ospf路由重发布
职场 EIGRP 休闲 静态、rip、eigrp与ospf路由重