OSPF双向重发布

题目:

1、RIP与OSPF两个协议间进行多点双向重发布

2、R7的环回没有宣告在OSPF协议中,而是后期重发布进入的

3、解决环路,所有路径选择最优,且存在备份
在这里插入图片描述

配IP:
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip address 12.1.1.1 24
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]ip address 13.1.1.1 24
[R1]int LoopBack 0
[R1-LoopBack0]ip address 1.1.1.1 24

[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip address 24.1.1.1 24
[R2-GigabitEthernet0/0/0]int g0/0/1
[R2-GigabitEthernet0/0/1]ip address 12.1.1.2 24
[R2]int LoopBack 0
[R2-LoopBack0]ip address 2.2.2.2 24

[R3]int g0/0/1
[R3-GigabitEthernet0/0/1]ip address 34.1.1.1 24
[R3-GigabitEthernet0/0/1]int g0/0/2
[R3-GigabitEthernet0/0/2]ip address 13.1.1.2 24
[R3]int LoopBack 0
[R3-LoopBack0]ip address 3.3.3.3 32

[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip address 45.1.1.1 24
[R4-GigabitEthernet0/0/0]int g0/0/1
[R4-GigabitEthernet0/0/1]ip address 24.1.1.2 24
[R4-GigabitEthernet0/0/1]int g0/0/2
[R4-GigabitEthernet0/0/2]ip address 34.1.1.2 24
[R4]int LoopBack 0
[R4-LoopBack0]ip address 4.4.4.4 24

[R5]int g0/0/0
[R5-GigabitEthernet0/0/0]ip address 56.1.1.1 24
[R5-GigabitEthernet0/0/0]int g0/0/1
[R5-GigabitEthernet0/0/1]ip address 45.1.1.2 24
[R5]int LoopBack 0
[R5-LoopBack0]ip address 5.5.5.5 24

[R6]int g0/0/0
[R6-GigabitEthernet0/0/0]ip address 67.1.1.1 24
[R6-GigabitEthernet0/0/0]int g0/0/1
[R6-GigabitEthernet0/0/1]ip address 56.1.1.2 24
[R6]int LoopBack 0
[R6-LoopBack0]ip address 6.6.6.6 24

[R7]int g0/0/1
[R7-GigabitEthernet0/0/1]ip address 67.1.1.2 24
[R7]int LoopBack 0
[R7-LoopBack0]ip address 7.7.7.7 24

宣告:
[R1]rip
[R1-rip-1]network 12.0.0.0
[R1-rip-1]network 1.0.0.0
[R1-rip-1]network 13.0.0.0

[R2]rip
[R2-rip-1]network 2.0.0.0
[R2-rip-1]network 12.0.0.0
[R2]ospf 1
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 24.1.1.0 0.0.0.255

[R3]rip
[R3-rip-1]network 13.0.0.0
[R3]ospf 1
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 34.1.1.0 0.0.0.255

[R4]ospf 1
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 4.4.4.0 0.0.0.255
[R4-ospf-1-area-0.0.0.0]network 24.1.1.0 0.0.0.255
[R4-ospf-1-area-0.0.0.0]network 34.1.1.0 0.0.0.255
[R4-ospf-1-area-0.0.0.0]network 45.1.1.0 0.0.0.255

[R5]ospf 1
[R5-ospf-1]area 0
[R5-ospf-1-area-0.0.0.0]network 5.5.5.0 0.0.0.255
[R5-ospf-1-area-0.0.0.0]network 45.1.1.0 0.0.0.255
[R5-ospf-1-area-0.0.0.0]network 56.1.1.0 0.0.0.255

[R6]ospf 1
[R6-ospf-1]area 0
[R6-ospf-1-area-0.0.0.0]network 6.6.6.0 0.0.0.255
[R6-ospf-1-area-0.0.0.0]network 67.1.1.0 0.0.0.255
[R6-ospf-1-area-0.0.0.0]network 56.1.1.0 0.0.0.255

[R7]ospf 1
[R7-ospf-1]area 0
[R7-ospf-1-area-0.0.0.0]network 67.1.1.0 0.0.0.255

重发布:
[R2]rip
[R2-rip-1]import-route ospf
[R2]ospf 1
[R2-ospf-1]import-route rip

[R3]rip
[R3-rip-1]import-route ospf
[R3]ospf 1
[R3-ospf-1]import-route rip

路由策略:
[R2]ip ip-prefix a permit 34.1.1.0 24
[R2]ip ip-prefix c permit 3.3.3.3 32
[R2]ip ip-prefix b permit 13.1.1.0 24
[R2]route-policy qq permit node 10
Info: New Sequence of this List.
[R2-route-policy]if-match ip-prefix a
[R2-route-policy]apply cost 3
[R2]route-policy qq permit node 20
Info: New Sequence of this List.
[R2-route-policy]if-match ip-prefix b
[R2-route-policy]apply cost 3
[R2]route-policy qq permit node 30
Info: New Sequence of this List.
[R2-route-policy]apply cost 3
[R2]route-policy qq permit node 40
Info: New Sequence of this List.
[R2-route-policy]q
[R2]ospf 1
[R2-ospf-1]import-route rip route-policy qq
[R2]rip
[R2-rip-1]import-route ospf route-policy qq

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值