多点双向路由重发布策略


第二章 次优路由过滤策略设计
distribute-list的机制:
在距离矢量路由协议中(RIP、BGP)
distribute-list in database
路由信息
路由信息
database
路由信息
route
route
distribute-list out
第二章 次优路由过滤策略设计
distribute-list的机制:
ASBR2 OSPF
ip route 1.0.0.0/8 null 0
R2
R3
附:实现下面拓扑图中R1/2/3路由的互通
解决办法
1.更改拓扑结构
− 在两台ASBR之间增加一条在RIP(OSPF)进程中的心跳线
R1
1.1.1.1
RIP ASBR1 ASBR2
OSPF
R2
R3
附:实现下面拓扑图中R1/2/3路由的互通
多点双向重发布常见模型
OSPF与RIP
OSPF与OSPF OSPF与BGP
第一章 多点双向路由重发布模型介绍
多点双向重发布会产生的问题
次优路径的产生
− 将OSPF中的路由重发布进RIP
R1 O:A网段
OSPF
OSPF路由的管理距离要优于RIP
ASBR1 ASBR2
R:A网段 R:A网段 RIP
在链路状态路由协议中(OSPF)
distribute-list out
本地始发的5类LSA
LSA
database
LSA
database
LSA
distribute-list in
route
route
第二章 次优路由过滤策略设计
如何在多点双向重发布模型中应用过滤策略?
以OSPF下重发布RIP路由为例
4
第一章 多点双向路由重发布模型介绍
什么是多点双向路由重发布?
不同路由协议相互之间通过重发布相互传递各自的路由信 息,承担重发布工作的ASBR数量多于一台.
ASBR在每个路由协议内都能够收到相互间重发布通告的 路由信息
路由协议A
ASBR1
ASBR2
路由协议B
第一章 多点双向路由重发布模型介绍
OE2:A网段
OSPF 2
R2
第一章 多点双向路由重发布模型介绍
多点双向重发布会产生的问题
次优路由的产生
− OSPF将路由重发布进IBGP
R1
O:A网段
OSPF
OSPF路由的管理距离要优于IBGP
ASBR1 ASBR2
B:A网段 B:A网段 IBGP
R2 RR
第一章 多点双向路由重发布模型介绍
OE2:A网段 OSPF 2
R2
当原始的A网段路由为域内路由时,不会产生路由环路
第一章 多点双向路由重发布模型介绍
多点双向重发布会产生的问题
次优路由的产生
− 不同OSPF进程之间路由重发布
R3 OE2:A网段 R1
OSPF 1 OE2:A网段
ASBR1 ASBR2
当原始的A网段路由为外部路由时, 在特定的拓扑结构下产生路由环 路
第三章 次优路由避免策略设计
如何在多点双向重发布模型中应用过滤策略?
以OSPF下重发布RIP路由为例
R1
OSPF OE2:10.0.0.0/8OE2:10.0.0.0/8
ASBR1 ip route 10.0.0.0/8 null 0 ASBR2 ip route 10.0.0.0/8 null 0
如果不关联接口,则该distrbiute-list作 用对象是所有接口
第二章 次优路由过滤策略设计
distribute-list配置命令预览:
在路由协议进程下(BGP)
r1(config-router)#nei 1.1.1.1 distribute-list ? <1-199> IP access list number <1300-2699> IP access list number (expanded range) WORD IP Access-list name r1(config-router)#nei 1.1.1.1 distribute-list 1 ? in Filter incoming updates out Filter outgoing updates r1(config-router)#nei 1.1.1.1 distribute-list 1 in ? <cr>
课程内容
第一章 多点双向路由重发布模型介绍 第二章 次优路由过滤策略设计 第三章 次优路由避免策略设计
21
第三章 次优路由避免策略设计
避免策略
在多点双向路由重发布模型中,将高管理距离(低优先级 )的路由重发布进低管理距离(高优先级)的路由协议中 ,容易出现次优路径及路由环路等问题 避免策略思路:
多点双向重发布会产生的问题
次优路由的产生
− 将IBGP路由重发布进OSPF
R1 O:A网段
OSPF OE2:B网段
ASBR1 ASBR2
1、重发布失败 2、ASBR2去往B网段的下一跳指向了R1 3、在特定拓扑结构下产生路由环路
IBGP
R2 RR
B:B网段 R:B
课程内容
第一章 多点双向路由重发布模型介绍 第二章 次优路由过滤策略设计 第三章 次优布路由避免策略设计
R1 O:A网段
OSPF
OE2:B网段
ASBR1 ASBR2 在OSPF进程下使用distrbute-list in将B 网段过滤掉,从而B网段路由不会在 OSPF进程的接口上进行安装
RIP R2
R3
R:B网段
对于ASBR2而言,B网段路由信息是始发于RIP, 因此从其RIP进程中的接口接收到路由信息是合 理的,而从其他路由进程的接口中接收到关于B 网段路由信息是不合理的,从而导致次优路径 及路由环路等问题。
RIP R2
R3
R:10.1.0.0/24
第三章 次优路由避免策略设计
如何在多点双向重发布模型中应用过滤策略?
不同OSPF进程间路由重发布
− 不同进程中的路由都可以进行汇总
R1
OSPF 1
ASBR1
ASBR2
OSPF 2
分别在两台ASBR上面创建不同的 静态汇总路由,在相应的进程下 进行重发布静态汇总路由
3、出现路由环路
R3
R:B网段
第一章 多点双向路由重发布模型介绍
多点双向重发布会产生的问题
次优路由的产生
− 不同OSPF进程之间路由重发布
R1 O:A网段
OSPF 1 OE2:A网段
ASBR1 ASBR2
OSPF不同进程之间相同路由比较原则: 先入为主! 1、重发布失败 2、ASBR2去往B网段的下一跳指向了R1
OSPF 2
R2
附:实现下面拓扑图中R1/2/3路由的互通
采用次优路由过滤策略
1.1.1.1
R1
RIP ASBR1
在OSPF进程下, 将从RIP重发布过 来的路由过滤掉
ASBR2 OSPF
在OSPF进程下, 将从RIP重发布过 来的路由过滤掉
R2
R3
1.1.1.1这条路由不会在ASBR2位 于OSPF进程中的接口上安装
R2
R3
附:实现下面拓扑图中R1/2/3路由的互通
采用次优路由避免策略
存在的风险
1.1.1.1 R1
ASBR2与R1连接断开,ASBR2上丢失 1.1.1.1的明细路由,R3访问1.1.1.1的流 量达到ASBR2上将被丢弃,造成访问中断
RIP
ASBR1
ip route 1.0.0.0/8 null 0
解决办法
2.调整配置(限于Cisco)
− 在ASBR1上修改ASBR2通告的部分路由的管理距离,这些部分 路由指ASBR2通过RIP重发布过来的外部路由. ASBR2做同样 的操作uter-id为9.9.0.1):
ASBR2(config)#router ospf 1 <1-255> Administrative distance ospf OSPF distance ASBR2(config-router)#distance 150 ? A.B.C.D IP Source address <cr> ASBR2(config-router)#distance 150 9.9.0.1 ? A.B.C.D Wildcard bits ASBR2(config-router)#distance 150 9.9.0.1 0.0.0.0 ? <1-99> IP Standard access list number <1300-1999> IP Standard expanded access list number WORD Standard access-list name <cr> ASBR2(config-router)#distance 150 9.9.0.1 0.0.0.0 1 ASBR2(config)#access 1 per 1.1.1.1
网络规划设计高级技术专题 多点双向路由重发布策略设计
技术培训中心
修订记录
修订日期
2009-08-20
修订版本
V1.0 初稿完成。
修订描述
作者
高志岩
学习目标
掌握多点双向路由重发布中路由相关问题产生的原因
掌握解决重发布中的次优路径及路由环路等问题的方法
课程内容
第一章 多点双向路由重发布模型介绍 第二章 次优路由过滤策略设计 第三章 次优路由避免策略设计
合集下载

BGP和OSPF在路由重分发时的注意点

BGP和OSPF在路由重分发时的注意点

RGNOSv10.3(3)BGP和OSPF在路由重分发时的注意点2008-5-15福建星网锐捷网络有限公司版权所有侵权必究前言本文档介绍了RGNOS V10.3(3)中BGP和OSPF路由重发布时的一些实现特点。

由于这些特点区别于友商CISCO的BGP功能实现,在具体的项目实施过程中需要注意。

1.☹本文档仅限公司内部使用,严禁外传。

1.☺如果您在阅读中产生疑问,请与文档维护人联系。

目录1. 1OSPF重分发BGP路由1. 1.1注意点1. 这里Cisco验证的版本为c7200-adventerprisek9-mz.124-9.T1.bin2. 1.2应用实例1. 1.2.1网络拓扑四台设备之间建立EBGP/IBGP/EBGP连接。

C1为CISCO 3550、C2、C3是Cisco模拟器,R1是我司设备,实验设备为RG-S5750。

C1和R1建立EBGP连接,R1和C2建立IBGP连接,C2和C3建立EBGP连接。

其中C1和C3主要是发送路由,具体的操作在R1和C2。

2. 1.2.2配置文件C1 简化配置C1#sho running-configBuilding configuration...Current configuration : 2557 bytes!version 12.2no service padservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname C1!!no aaa new-modelip subnet-zeroip routing!!!!!!no file verify autospanning-tree mode pvstspanning-tree extend system-id!vlan internal allocation policy ascending!!interface Loopback0ip address 1.1.1.1 255.255.255.255!interface FastEthernet0/1no switchportip address 192.168.16.1 255.255.255.248!interface FastEthernet0/2switchport mode dynamic desirable!interface FastEthernet0/3switchport mode dynamic desirable!...!router bgp 1no synchronizationbgp log-neighbor-changesredistribute staticneighbor 192.168.16.2 remote-as 23no auto-summary!ip classlessip route 192.168.111.0 255.255.255.0 Loopback0ip route 192.168.112.0 255.255.255.0 Loopback0ip http serverip http secure-server!!!control-plane!!line con 0line vty 0 4privilege level 15password wlogin!!endC1#C2简化配置C2#sho runnBuilding configuration...Current configuration : 1450 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname C2!boot-start-markerwarm-rebootboot-end-marker!!no aaa new-model!resource policy!ip cef!!!!interface Loopback0ip address 192.168.125.1 255.255.255.0 secondary ip address 192.168.126.1 255.255.255.0 secondary ip address 2.2.2.2 255.255.255.255!interface FastEthernet0/0ip address 192.168.26.2 255.255.255.248duplex full!interface Ethernet1/0no ip addressshutdownduplex half!interface Ethernet1/1no ip addressshutdownduplex half!interface Ethernet1/2no ip addressshutdownduplex half!interface Ethernet1/3ip address 192.168.23.1 255.255.255.248duplex full!router ospf 1log-adjacency-changesnetwork 2.2.2.2 0.0.0.0 area 0network 192.168.26.0 0.0.0.7 area 0!router bgp 23no synchronizationbgp log-neighbor-changesnetwork 192.168.125.0network 192.168.126.0neighbor 6.6.6.6 remote-as 23neighbor 6.6.6.6 update-source Loopback0neighbor 6.6.6.6 next-hop-selfneighbor 192.168.23.2 remote-as 3no auto-summary!no ip http serverno ip http secure-server!!...!line con 0stopbits 1line aux 0line vty 0 4privilege level 15password wlogin!!endC2#C3简化配置C3#sho runnBuilding configuration...Current configuration : 1178 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname C3!boot-start-markerboot-end-marker!!no aaa new-model!resource policy!ip cef!!!!!!interface Loopback0ip address 3.3.3.3 255.255.255.255!interface FastEthernet0/0no ip addressshutdownduplex full!interface Ethernet1/0no ip addressshutdownduplex half!interface Ethernet1/1no ip addressshutdownduplex half!interface Ethernet1/2no ip addressshutdownduplex half!interface Ethernet1/3ip address 192.168.23.2 255.255.255.248duplex full!router bgp 3no synchronizationbgp log-neighbor-changesredistribute staticneighbor 192.168.23.1 remote-as 23no auto-summary!ip route 192.168.131.0 255.255.255.0 Loopback0ip route 192.168.132.0 255.255.255.0 Loopback0no ip http serverno ip http secure-server!!!logging alarm informational!...!line con 0stopbits 1line aux 0line vty 0 4privilege level 15password wlogin!!endC2#R1简化配置R1#show runnBuilding configuration...Current configuration : 2080 bytes!version RGNOS 10.3.00(3), Release(38105)(Fri Apr 25 15:29:44 CST 2008 -ngcf31)hostname R1co-operate enable!!!!route-map ospf_redist permit 10match route-type external!vlan 1!!!!!interface GigabitEthernet 0/1no switchportno ip proxy-arpip address 192.168.26.1 255.255.255.248!interface GigabitEthernet 0/2!...!interface GigabitEthernet 0/23!interface GigabitEthernet 0/24no switchportno ip proxy-arpip address 192.168.16.2 255.255.255.248!interface Loopback 0ip address 6.6.6.6 255.255.255.255ip address 192.168.165.1 255.255.255.0 secondaryip address 192.168.166.1 255.255.255.0 secondary!!!!!!!!router bgp 23neighbor 2.2.2.2 remote-as 23neighbor 2.2.2.2 update-source Loopback 0neighbor 192.168.16.1 remote-as 1!address-family ipv4network 192.168.165.0network 192.168.166.0neighbor 2.2.2.2 activateneighbor 2.2.2.2 next-hop-selfneighbor 192.168.16.1 activateexit-address-family!!router ospf 1router-id 6.6.6.6network 6.6.6.6 0.0.0.0 area 0network 192.168.26.0 0.0.0.7 area 0!!!ip route 192.168.161.0 255.255.255.0 Loopback 0ip route 192.168.162.0 255.255.255.0 Loopback 0!!line con 0line vty 0 10privilege level 15loginpassword w!!end3. 1.2.3检验配置效果C2使用show ip bgp可以看到125.0/126.0是源发路由,111.0/112.0/165.0/166.0是IBGP路由,131.0/132.0是EBGP路由。

多点双向重分布后次优路径的解决方法

多点双向重分布后次优路径的解决方法

多点双向重分布后次优路径的解决方法多点双向重分布后次优路径的解决方法概念预习:什么是多点双向路由重发布?不同路由协议相互之间通过重发布相互传递各自的路由信息,承担重发布工作ASBR路由器数量多于一台.ASBR在每个路由协议内都能够收到相互间重发布通告的路由信息。

一:实验拓扑:二:实验目的:双点:为了路由条目的冗余,Down掉任何一台ASBR路由器都不影响两个AS的通信;双向:不同AS的路由能够相互学习。

三:实验描述:R1,R2,R3运行OSPF,并将1.1.1.1重分布进OSPF[redistribute connected subnet] R2,R3,R4运行EIGRP,并将4.4.4.4重分布进EIGRP[redistribute connected subnet] 四:实验要求:R1能够学到EIGRP的路由,并且到4.4.4.4是负载均衡R4能够学到OSPF的路由,并且到1.1.1.1是负载均衡五:实验过程:1:基本接口的配置:R1(config)#int s0/1R1(config-if)#ip add 12.0.0.1 255.255.255.0R1(config-if)#no shR1(config-if)#int s0/2R1(config-if)#ip add 13.0.0.1 255.255.255.0R1(config-if)#no shR1(config-if)#int lo 0R1(config-if)#ip add 1.1.1.1 255.255.255.0R2(config)#int s0/1R2(config-if)#ip add 12.0.0.2 255.255.255.0R2(config-if)#no shR2(config-if)#int e1/0R2(config-if)#ip add 10.0.234.2 255.255.255.0R2(config-if)#no shR2(config-if)#int lo 0R2(config-if)#ip add 2.2.2.2 255.255.255.0R2(config-if)#^ZR3(config)#int s0/2R3(config-if)#ip add 13.0.0.3 255.255.255.0 R3(config-if)#no shR3(config-if)#int e1/0R3(config-if)#ip add 10.0.234.3 255.255.255.0 R3(config-if)#no shR3(config-if)#int lo 0R3(config-if)#ip add 3.3.3.3 255.255.255.0R4(config)#int e0/0R4(config-if)#ip add 10.0.234.4 255.255.255.0 R4(config-if)#no shR4(config-if)#int lo 0R4(config-if)#ip add 4.4.4.4 255.255.255.0R4(config-if)#no sh2:路由的配置:R1(config)#router os 1R1(config-router)#net 12.0.0.0 0.0.0.255 a 0R1(config-router)#net 13.0.0.0 0.0.0.255 a 0R1(config-router)#redistribute connected subnets R2(config)#router os 1R2(config-router)#net 12.0.0.0 0.0.0.255 a 0R2(config-router)#net 2.2.2.0 0.0.0.255 a 0R2(config-router)#exitR2(config)#router eigrp 1R2(config-router)#net 10.0.234.0 0.0.0.255R2(config-router)#no auR3(config)#router os 1R3(config-router)#net 13.0.0.0 0.0.0.255 a 0R3(config-router)#net 3.3.3.0 0.0.0.255 a 0R3(config-router)#exitR3(config)#router eigrp 1R3(config-router)#net 10.0.234.0 0.0.0.255R3(config-router)#no auR4(config)#router eigrp 1R4(config-router)#net 10.0.234.0 0.0.0.255R4(config-router)#redistribute connectedR1#sho ip route1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback02.0.0.0/32 is subnetted, 1 subnetsO 2.2.2.2 [110/65] via 12.0.0.2, 00:01:58, Serial0/13.0.0.0/32 is subnetted, 1 subnetsO 3.3.3.3 [110/65] via 13.0.0.3, 00:01:58, Serial0/212.0.0.0/24 is subnetted, 1 subnetsC 12.0.0.0 is directly connected, Serial0/113.0.0.0/24 is subnetted, 1 subnetsC 13.0.0.0 is directly connected, Serial0/2R4#sho ip route4.0.0.0/24 is subnetted, 1 subnetsC 4.4.4.0 is directly connected, Loopback010.0.0.0/24 is subnetted, 1 subnetsC 10.0.234.0 is directly connected, Ethernet0/0//发现R1和R4不能相互学习路由,下来我们在E2和R3上实现双向重分布。

14.1路由重发布(路由引入)

14.1路由重发布(路由引入)

3.0 重发布的操作实训
动态路由协议重发布示例
重分发直连路由、静态路由和默认路由示例
• 重分发默认路由
default-information originate [ route-map route-map-name ] default-information originate [ always ] [ metric metric-value ] [ metrictype type-value ] [ route-map map-name ]
• 重分发静态路由
redistribute static [ metric metric-value ] redistribute static [ subnets ] [ metric metric-value ] [ metric-type { 1 | 2 } ] [ tag tag-value ] [ route-map map-tag ]
引入其它路由协议:RIP引入OSPF,OSPF引入RIP
重发布的默认度量值
• 路由重分发时,给重分发过来的路由默认被指定一个度量 值(metric值),也称“种子度量值”。OSPF度量值为: 代价[COST,10^8/带宽(byte)], RIP度量值为:跳数。
RIP 无穷大 必须手工指定
R1(config-router)#default-metric 1 //使用此命令来设定种子metric值
Static
Direct Direct
RTB
11.0.0.0
R R
OSPF
RTA
R
redistribute static subnets
Loopback0:2.2.2.2/32
引入静态路由包括:静态路由、默认路由

ospf和EIGRP重发布

ospf和EIGRP重发布

配置Ospf与Eigrp的路由再发布环境:三台路由器串口相连,接口配置如图要求:1.配置EIGRP和关闭自动路由汇总2.在R1上配置LOOP口的EIGRP手工路由汇总3.在R2和R3配置Ospf 接口验证4.在ASBR(R2)上做eigrp和ospf双向再发布5.在R3上将所有loopback 口再发布到ospf中,但loopback2不能被R2,R3学到,不允许使用network命令步骤一:配置三个路由器接口使其连通。

R1的配置R1(config)# interface Loopback0R1(config-if)#ip address 172.168.1.1 255.255.255.0R1(config)# interface Loopback1R1(config-if)#ip address 172.168.2.1 255.255.255.0R1(config)#interface Loopback2R1(config-if)#ip address 172.168.3.1 255.255.255.0R1(config)# interface s0R1(config-if)# ip address 10.1.1.1 255.255.255.0R1(config-if)#clock rate 64000R1(config-if)#no shutdownR2的配置R2(config)#interface s0R2(config-if)#ip address 20.1.1.1 255.255.255.0R2(config-if)#no shutdownR2(config)#interface s1R2(config-if)# ip address 10.1.1.1 255.255.255.0R2(config-if)#no shutdownR3的配置R3(config)# interface Loopback0R3(config-if)#ip address 192.168.1.1 255.255.255.0R3(config)# interface Loopback1R3(config-if)#ip address 192.168.2.1 255.255.255.0R3(config)#interface Loopback2R3(config-if)#ip address 192.168.3.1 255.255.255.0R3(config)# interface s1R3(config-if)# ip address 20.1.1.2 255.255.255.0R3(config-if)#clock rate 64000R3(config-if)#no shutdown步骤二:配置Eigrp ,OspfR1的配置R1(config)# router eigrp 100 →启用EIGRPR1(config-router)# network 10.1.1.0 0.0.0.255 →发布相应接口R1(config-router)#network 172.168.1.0 0.0.0.255R1(config-router)#network 172.168.2.0 0.0.0.255R1(config-router)#network 172.168.3.0 0.0.0.255R1(config-router)# no auto-summary →关闭自动汇总R2的配置R2(config)# router eigrp 100R2(config-router)# network 10.1.1.0 0.0.0.255R2(config-router)# no auto-summaryR2(config)# router ospf 10 →在R2上即启用EIGRP并且启用OSPFR2(config-router)# network 20.1.1.0 0.0.0.255 area 0R3的配置R3(config)# router ospf 10R3(config-router)# network 20.1.1.0 0.0.0.255 area 0步骤三:配置EIGRP手工路由汇总和Ospf接口验证R1的配置R1(config)# interface s0R1(config-if)# ip summary-address eigrp 100 172.168.0.0 255.255.252.0 →手工汇总R2的配置R2(config)# interface s0R2(config-if)# ip ospf authentication message-digest →启用接口验证R2(config-if)# ip ospf message-digest-key 1 md5 ciscoR3的配置R3(config)# interface s1R3(config-if)# ip ospf authentication message-digest →启用接口认证R3(config-if)# ip ospf message-digest-key 1 md5 cisco步骤四:在R2,R3上做路由再发布并控制loopback2不能被R1,R2学到R2的配置R2(config)# router eigrp 100R2(config-router)# redistribute ospf 10 metric 10000 100 255 1 1500→将ospf重分发进eigrp R2(config)# router ospf 10R2(config-router)# redistribute eigrp 100 subnets →将eigrp路由重分发到ospfR3的配置R3(config)# access-list 1 permit 192.168.1.0 0.0.0.255 →定义分发条件列表R3(config)# access-list 1 permit 192.168.2.0 0.0.0.255R3(config)# access-list 2 permit 192.168.3.0 0.0.0.255R3(config)# route-map o-e permit 10 →做映射列表允许相应条目R3 (config-route-map)# match ip address 1 →将列表加载R3(config)# route-map o-e deny 20 →拒绝相应条目的映射列表R3 (config-route-map)# match ip address 2 →将列表加载R3(config)# route-map o-e permit 25 →最后允许其它所有R3(config)# router ospf 10R3(config-router)# redistribute connected subnets route-map o-e步骤五:查看路由表R1#sh ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not set20.0.0.0/24 is subnetted, 1 subnetsD EX 20.1.1.0 [170/2195456] via 10.1.1.2, 00:03:50, Serial0 →外部路由条目172.168.0.0/16 is variably subnetted, 4 subnets, 2 masksD 172.168.0.0/22 is a summary, 00:03:56, Null0C 172.168.1.0/24 is directly connected, Loopback0C 172.168.2.0/24 is directly connected, Loopback1C 172.168.3.0/24 is directly connected, Loopback210.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Serial0D EX 192.168.1.0/24 [170/2195456] via 10.1.1.2, 00:01:53, Serial0D EX 192.168.2.0/24 [170/2195456] via 10.1.1.2, 00:01:53, Serial0R2#sh ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not set20.0.0.0/24 is subnetted, 1 subnetsC 20.1.1.0 is directly connected, Serial0172.168.0.0/22 is subnetted, 1 subnetsD 172.168.0.0 [90/2297856] via 10.1.1.1, 00:05:39, Serial110.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Serial1O E2 192.168.1.0/24 [110/20] via 20.1.1.2, 00:03:42, Serial0 →ospf外部路由条目类型2 O E2 192.168.2.0/24 [110/20] via 20.1.1.2, 00:03:42, Serial0R3#sh ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not set20.0.0.0/24 is subnetted, 1 subnetsC 20.1.1.0 is directly connected, Serial1172.168.0.0/22 is subnetted, 1 subnetsO E2 172.168.0.0 [110/20] via 20.1.1.1, 00:04:48, Serial110.0.0.0/24 is subnetted, 1 subnetsO E2 10.1.1.0 [110/20] via 20.1.1.1, 00:04:48, Serial1C 192.168.1.0/24 is directly connected, Loopback0C 192.168.2.0/24 is directly connected, Loopback1C 192.168.3.0/24 is directly connected, Loopback2步骤六:用ping命令测试连通性R1#ping 192.168.2.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/64 msR3#ping 172.168.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms 步骤七:查看配置R1#sh runhostname R1!interface Loopback0ip address 172.168.1.1 255.255.255.0!interface Loopback1ip address 172.168.2.1 255.255.255.0!interface Loopback2ip address 172.168.3.1 255.255.255.0!interface Serial0ip address 10.1.1.1 255.255.255.0ip summary-address eigrp 100 172.168.0.0 255.255.252.0 5 clockrate 64000!router eigrp 100network 10.1.1.0 0.0.0.255network 172.168.1.0 0.0.0.255network 172.168.2.0 0.0.0.255network 172.168.3.0 0.0.0.255no auto-summary!endR2#sh runhostname R2!interface Serial0ip address 20.1.1.1 255.255.255.0ip ospf authentication message-digestip ospf message-digest-key 1 md5 cisco!interface Serial1ip address 10.1.1.2 255.255.255.0!router eigrp 100redistribute ospf 10 metric 10000 100 255 1 1500network 10.1.1.0 0.0.0.255no auto-summary!router ospf 10redistribute eigrp 100 subnetsnetwork 20.1.1.0 0.0.0.255 area 0!endR3#sh runhostname R3!interface Loopback0ip address 192.168.1.1 255.255.255.0ip ospf network point-to-point!interface Loopback1ip address 192.168.2.1 255.255.255.0ip ospf network point-to-point!interface Loopback2ip address 192.168.3.1 255.255.255.0ip ospf network point-to-point 定义网络类型,否则为主机路由32位!interface Serial1ip address 20.1.1.2 255.255.255.0ip ospf authentication message-digestip ospf message-digest-key 1 md5 cisco clockrate 64000!router ospf 10redistribute connected subnets route-map o-e network 20.1.1.0 0.0.0.255 area 0!access-list 1 permit 192.168.1.0 0.0.0.255 access-list 1 permit 192.168.2.0 0.0.0.255 access-list 2 permit 192.168.3.0 0.0.0.255 route-map o-e permit 10match ip address 1!route-map o-e deny 20match ip address 2!route-map o-e permit 25!end。

重分布和策略路由

重分布和策略路由

一、实验拓扑图:AucklandSanJose3Singapore 192.168.224.1/30S1/2192.168.240.2/30S1/2 S1/0192.168.224.2/30S1/1192.168.240.1/30 Engineers Lo0 192.168.232.1/24T1 1.544Mbps19.2Kpbs RIP v2Managers Lo1 192.168.236.1/24Lo0 192.168.5.1/24二、实验目的1、在实验中应用到高级路由功能来操作路由更新,这些特性包括分发列表,默认路由,被动接口和路由重分布。

2、掌握高级路由特性来控制路由更新。

三、实验要求1、公司的SanJose3和Singapore 之间的网络使用的RIPV2动态路由协议。

2、在SanJose3上面连接了一个stub network 192.168.5.1/24,为了减少流量,过滤RIPv2更新流量在整个192.168.5.1/24网络发送。

3、在Singapore 有Engineers 和Managers 部门,Managers 网络并不想被SanJose3所学习到。

4、有一条非常慢的19.2Kpbs 的链路连接Singapore 和Auckland ,为了减少这条链路的 流量,我们要禁止动态路由更新通过这条链路5、在满足上述条件的情况下,实现全网互通。

四、实验步骤1、按照拓扑图中IP ,配置好路由器接口的 IP 地址,但是不要配置RIPv2协议,使用CDP 协议检测相邻设备的连通性。

配置如下:Router(config)#hostname SanJose3SanJose3(config)#line c 0SanJose3(config-line)#exec-timeout 0 0SanJose3(config-line)#logging synchronousSanJose3(config)#no ip domain-lookupSanJose3(config)#interface s1/2SanJose3(config-if)#ip address 192.168.224.1 255.255.255.252SanJose3(config-if)#no shutdownSanJose3(config)#interface loopback 0SanJose3(config-if)#ip address 192.168.5.1 255.255.255.0Router(config)#hostname AucklandAuckland (config)#interface s1/2Auckland (config-if)#ip address 192.168.240.2 255.255.255.252Auckland (config-if)#no shutdownAuckland (config)#interface loopback 0Auckland (config-if)#ip address 192.168.248.1 255.255.255.0Router(config)#hostname SingaporeSingapore(config)#interface loopback 0Singapore(config-if)#ip address 192.168.232.1 255.255.255.0Singapore(config-if)#description EngineersSingapore(config)#interface loopback 1Singapore(config-if)#ip address 192.168.236.1 255.255.255.0Singapore(config-if)#description ManagerSingapore(config)#interface s1/0Singapore(config-if)#ip address 192.168.224.2 255.255.255.252Singapore(config-if)#no shutdownSingapore(config)#interface s1/1Singapore(config-if)#ip address 192.168.240.1 255.255.255.252Singapore(config-if)#no shutdown配置完成后使用CDP 协议检查相邻设备的连通性,如下2、在SanJose3上,配置RIPv2协议通告物理直连的网络,配置如下:SanJose3(config)#router ripSanJose3(config-router)#version 2SanJose3(config-router)#network 192.168.224.0SanJose3(config-router)#network 192.168.5.0因为192.158.5.0是一个stub network,这个网络里没有路由器或者主机需要RIPv2协议的更新。

CCIE操纵路由选择更新笔记

CCIE操纵路由选择更新笔记

CCIE操纵路由选择更新笔记管理距离表PS. EGP管理距离140、ODR管理距离为160 重分布种子度量值表Default-metric (种子度量值)路由器重分布时,给重分布而来的路由指定的度量值。

重分布直连路由时度量值不受Default-metric影响,而静态路由会。

重分布注意事项:RIP、IGRP、EIGRP默认将种子度量值视为无穷大。

因此,将路由重分布到RIP、IGRP、EIGRP中时,必须手工指定其种子度量值,否则重分布而来的路由将不会被通告。

RIP命令: Redistribute protocol metric metric-value重分布到RIP中,除了静态路由和直连路由外(包括使用命令ip route 0.0.0.0 0.0.0.0定义的默认静态路由),其他重分布路由的默认度量值为无穷大;静态路由和直连路由的默认度量值为1。

OSPF命令:Redistribute protocol metric metric-value metric-type type-valuemetric-type:用于指定通告到OSPF路由选择域的外部路由的外部链路类型.OE: 当重分布到OSPF协议中时,默认度量值为20 (OE2) (BGP为1)Subnets: 用于指定应该同时重分布子网路由.如果没有指定Subnets关键字,则只重分布主类网络的路由.重分布到OSPF协议中时,默认度量值为20,默认OE类型为2,默认不重分布子网.OE1更新在网络中传播时度量值将递增.EIGRP(IGRP)命令:Redistribute protocol metric metric-valuemetric-value:根据重分布路由的带宽、延迟、可靠性、负载和MTU,指定重分布路由的EIGRP种子度量值。

ISIS命令:Redistribute protocol level level-value metric metric-valueLevel-value:用于指定如何重分布外部路由,它可以为L1路由(level-1)、L1/L2路由(Level-1-2)、或L2路由(Level-2),默认值为Level-2.metric-value: 用于指定重分布路由的IS-IS种子度量值.IS-IS采用0作为默认度量值.与RIP、IGRP、EIGRP协议不同的是,IS-IS并不将默认度量值0视为不可达,它将重分布这种路由.当路由再IS-IS域中传播时,其度量值将递增.IS-IS中将度量值称为成本.Match route-type将OSPF路由重分布到其他路由协议中时使用的可选参数。

OSPF多进程之间的路由重发布

OSPF多进程之间的路由重发布1、实验拓扑如下图:R1R4R3 R2Area 00spf 10Area 0Ospf 1002、实验目的:1、实现R2与R3之间互相访问时的数据分流。

R2访问R3的3.3.3.3/32时走R1,R2访问R3的30.30.30.30/32时走R4。

R3访问R2的2.2.2.2/32时走R1,R3访问R2的20.20.20.20/32时走R1。

2、实现线路的冗余备份。

当R1链路故障时数据可以走R4,当R4链路故障时数据可以走R1。

实现链路的冗余备份。

3、理解并掌握route-map在控制路由方面的应用。

3、实验配置文档R1配置:config terint f0/0ip add 10.0.0.1 255.255.255.252no shutint f1/0ip add 10.0.0.5 255.255.255.252no shutint lo 0ip add 1.1.1.1 255.255.255.255endwriteconfig terrouter ospf 10router-id 1.1.1.1network 10.0.0.0 0.0.0.3 area 0redistribute ospf 100 metric-type 1 subnets route-map ospf100_to_ospf10 distribute-list deny_ospf100 inendconfig terrouter ospf 100router-id 1.1.1.1network 10.0.0.4 0.0.0.3 area 0redistribute ospf 10 metric-type 1 subnets route-map ospf10_to_ospf100 distribute-list deny_ospf10 inendwriteip access-list standard deny_ospf10deny 2.2.2.2 0.0.0.0deny 20.20.20.20 0.0.0.0permit anyip access-list standard deny_ospf100deny 3.3.3.3 0.0.0.0deny 30.30.30.30 0.0.0.0permit anyaccess-list 10 permit 2.2.2.2 0.0.0.0access-list 11 permit 3.3.3.3 0.0.0.0access-list 20 permit 20.20.20.20 0.0.0.0access-list 21 permit 30.30.30.30 0.0.0.0route-map ospf100_to_ospf10 permit 10match ip address 11set metric 100route-map ospf100_to_ospf10 permit 20match ip address 21set metric 200route-map ospf10_to_ospf100 permit 10match ip address 10set metric 100route-map ospf10_to_ospf100 permit 20match ip address 20set metric 200R4配置:config terint f0/0ip add 172.16.0.1 255.255.255.252no shutint f1/0ip add 172.16.0.5 255.255.255.252no shutint lo 0ip add 4.4.4.4 255.255.255.255endwriteconfig terrouter ospf 10router-id 4.4.4.4network 172.16.0.4 0.0.0.3 area 0redistribute ospf 100 metric-type 1 subnets route-map ospf100_to_ospf10 distribute-list deny_ospf100 inendconfig terrouter ospf 100router-id 4.4.4.4network 172.16.0.0 0.0.0.3 area 0redistribute ospf 10 metric-type 1 subnets route-map ospf10_to_ospf100 distribute-list deny_ospf10 inendwriteip access-list standard deny_ospf10deny 2.2.2.2 0.0.0.0deny 20.20.20.20 0.0.0.0permit anyip access-list standard deny_ospf100deny 3.3.3.3 0.0.0.0deny 30.30.30.30 0.0.0.0permit anyaccess-list 10 permit 2.2.2.2 0.0.0.0access-list 11 permit 3.3.3.3 0.0.0.0access-list 20 permit 20.20.20.20 0.0.0.0access-list 21 permit 30.30.30.30 0.0.0.0route-map ospf100_to_ospf10 permit 10 match ip address 11set metric 200route-map ospf100_to_ospf10 permit 20 match ip address 21set metric 100route-map ospf10_to_ospf100 permit 10 match ip address 10set metric 200route-map ospf10_to_ospf100 permit 20 match ip address 20set metric 100R2的配置:config terint f0/0ip add 10.0.0.2 255.255.255.252no shutint f1/0ip add 172.16.0.6 255.255.255.252no shutint lo 0ip add 2.2.2.2 255.255.255.255int lo 1ip add 20.20.20.20 255.255.255.255 endwriteconfig terrouter ospf 10router-id 2.2.2.2network 172.16.0.4 0.0.0.3 area 0 network 10.0.0.0 0.0.0.3 area 0 network 2.2.2.2 0.0.0.0 area 0network 20.20.20.20 0.0.0.0 area 0endwriteR3的配置:config terint f0/0ip add 10.0.0.6 255.255.255.252no shutint f1/0ip add 172.16.0.2 255.255.255.252no shutint lo 0ip add 3.3.3.3 255.255.255.255int lo 1ip add 30.30.30.30 255.255.255.255endwriteconfig termrouter ospf 100router-id 3.3.3.3network 172.16.0.0 0.0.0.3 area 0network 10.0.0.4 0.0.0.3 area 0network 3.3.3.3 0.0.0.0 area 0network 30.30.30.30 0.0.0.0 area 0endwrite4、实验测试1、在R2上show ip route查看结果,可以看出实现了数据分流。

OSPF与RIP路由重发布

实验十五OSPF与RIP路由重发布实验题目:OSPF与RIP路由重发布实验目的:在本次实验中,你将重分布RIPv2到OSPF协议,并且在RIPv2路由器提供缺省路由。

在完成本次实验之后,你需要完成下列任务:在不同的路由协议之间重分布路由信息。

实验学时: 2实验设备及环境:路由器RSR10、路由器以太网接口、 PC机实验基本配置:1.RIP 协议⑴全局设置指定使用RIP协议 router rip(2)路由设置指定与该路由器相连的网络 network network2.OSPF 协议⑴全局设置指定使用OSPF协议 router ospf process-id (2)路由设置指定与该路由器相连的网络 network address wildcard-mask area area-id 指定与该路由器相邻的节点地址 neighbor ip-address启用路由重发布命令 default-information originate 指定与该路由器相邻的节点地址 neighbor ip-address实验拓扑图图19 OSPF与RIP路由重发布实验拓扑图实验步骤1.在路由器上配置IP路由选择和IP地址。

RA#config tRA(config)# interface FastEthernet 0/0 //进入以太网接口RA(config-if)#ip address 172.16.1.5 255.255.255.252 //配置ip地址RA(config)# interface Loopback 0 //进入回环接口RA(config-if)#ip address 192.168.1.1 255.255.255.252 //配置ip地址RA(config)#interface Loopback 1 //进入回环接口RA(config-if)#ip address 192.168.2.1 255.255.255.0 //配置ip地址RB(config)#interface FastEthernet 0/0 //进入以太网接口RB(config-if)#ip address 172.16.1.6 255.255.255.252 //配置ip地址RB(config)#interface FastEthernet 0/1 //进入以太网接口RB(config-if)#ip address 172.16.1.1 255.255.255.252 //配置ip地址RC(config)# interface FastEthernet 0/0 //进入以太网接口RC(config-if)# ip address 172.16.1.2 255.255.255.252 //配置ip地址RC(config)# interface FastEthernet 0/1 //进入以太网接口RC(config-if)#ip address 172.16.1.9 255.255.255.252 //配置ip地址RC(config)#interface Loopback 0 //进入回环接口RC(config-if)#ip address 172.16.3.1 255.255.255.0 //配置ip地址RD(config)#interface FastEthernet 0/0 //进入以太网接口RD(config-if)#ip address 172.16.1.10 255.255.255.252 //配置ip地址RD(config)#interface Loopback 0 //进入回环接口RD(config-if)#i p address 10.1.1.1 255.255.255.0 //配置ip地址RD(config)#interface Loopback 1 //进入回环接口RD(config-if)#ip address 10.1.2.1 255.255.255.0 //配置ip地址RD(config)#interface Loopback 2 //进入回环接口RD(config-if)#ip address 200.1.1.1 255.255.255.0 //配置ip地址2.配置RIP和OSPF。

路由重分布


方法一的缺陷
使用解决方法一的问题是:消除了多个重新分配点内在的冗余性。 当与重分布点相连的链路失效后,则不能到达与失效链路相同域的网 络。 本例中将R3的以太口down掉,则R3的路由表如下:
R3#show ip route Gateway of last resort is not set O O C 192.168.4.0/24 [110/74] via 192.168.3.1, 00:13:51, Serial0/0 192.168.5.0/24 [110/138] via 192.168.3.1, 00:13:51, Serial0/0 192.168.3.0/24 is directly connected, Serial0/0
router rip version 2 no auto-summary network 192.168.6.0 redistribute ospf 1 metric 2 distribute-list 2 in
access-list 1 permit 192.168.3.0 0.0.0.255 access-list 1 permit 192.168.4.0 0.0.0.255 access-list 2 permit 192.168.1.0 0.0.0.255 access-list 2 permit 192.168.2.0 0.0.0.255
解决方法一
R3#show ip route Gateway of last resort is not set O O R R C C 192.168.4.0/24 [110/74] via 192.168.3.1, 00:06:44, Serial0/0 192.168.5.0/24 [110/138] via 192.168.3.1, 00:06:44, Serial0/0 192.168.6.0/24 [120/1] via 192.168.2.5, 00:00:26, FastEthernet0/0 192.168.1.0/24 [120/1] via 192.168.2.5, 00:00:26, FastEthernet0/0 192.168.2.0/24 is directly connected, FastEthernet0/0 192.168.3.0/24 is directly connected, Serial0/0

基于路由重分发技术及其虚拟网络实验研究

C HE NG Ni n g
( H u b e i L i 曲t I n d u s t r y T e c h n o l o g yI n s t i t u t e , W u h a n4 3 0 0 7  ̄ C h ma )
[ A b s t r a c t ]T h e p a p e r i n t r o d u c e s t h e p r i n c i p l e s a n d t e c h n i c a l k e y p o i n t s o f t h e r o u t i n g r e d i s t r i b u t i o n t e c h n o l o g y , o f w h i c h t h e
表 1 路 由协议默认的种子度量值
滑连接 ,在很多情 况下 , 多个 网络厂商设备 的网络环境 ,多个公 司的合并必须使 用多个路 由协议 。而在普通 配置 下,不同路 由 协议是 无法互相学 习路 由信息 的,只有利用路 由重分 发技 术才 能 使多种路 由协议之 间互通成为可能 ,从而使得 网络 能够正常 运行 Ⅲ。本文提 出一个基于 G N S 3 模拟器的路由重分发的应用案
s i mu l a t e d e x p e r i me n t s a r e d e s i g n e d b y u s i n g GN S 3 s i mu l a t o r . Mo r e o v e r ,s o me r e l a t i v e p r o b l e ms a n d s o l u t i o n s c a u s e d b y r o u t i n g r e d i s t i r b u t i o n a r e d i s c u s s e d i n t h i s p a p e r . P r a c t i c e s s h o w ha t t GNS 3 s i mu l to a r c a n h e l p s t u d e n t s t o d e v e l o p t h e i r c r e a t i v i t y , i mp r o v e he t
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档