路由重分发

合集下载

08路由重分布

08路由重分布

注意事项( 注意事项(续)
5、因为EIGRP的度量相对复杂,所以在重分 因为EIGRP的度量相对复杂, EIGRP的度量相对复杂 布时,需要分别指定带宽、延迟、可靠性、 布时,需要分别指定带宽、延迟、可靠性、 带宽 负载以及MTU参数的值。 负载以及MTU参数的值。 以及MTU参数的值 6、EIGRP能够识别内部路由和外部路由,默 EIGRP能够识别内部路由和外部路由, 能够识别内部路由和外部路由 认情况下,内部路由的管理距离是90,外 认情况下,内部路由的管理距离是90, 90 170( 部路由的管理距离是170 部路由的管理距离是170(路由代码为 EX” ”D EX )。
3、注入默认路由
EIGRP:ip defaultEIGRP:ip default-network (D* 1.0.0.0/8) OR:redistribute static (D*EX 0.0.0.0/0) RIP:defaul defaulRIP:defaul-information originate defaultOR:ip default-network OR:redistribute static 0.0.0.0/0) (R* 0.0.0.0/0) OSPF:defaul defaulOSPF:defaul-information originate (O*E2 0.0.0.0/0)
度量
路由重分布时,必须给重分布而来的路 由指定的度量值被称为默认度量值或 由指定的度量值被称为默认度量值或种 子度量值,它是在重分布期间定义的。 子度量值,它是在重分布期间定义的。
路由协议 RIP EIGRP OSPF IS-IS BGP 默认种子度量值 无限大 无限大 BGP为1,其他为20 0 IGP的度量值
配置重分布( 配置重分布(续)

单元任务书23_STUP区域及路由重分发配置

单元任务书23_STUP区域及路由重分发配置

子任务1:配置末梢区域 需求描述:
为了减少区域内路由器的路由条目,特把右侧区域配置为末梢区 域。该Stub区域中仅仅需要域内的路由条目和一条指向区域边界路由器 的默认路由就能实现所有的选路。
现对公司网络路由器设备使用OSPF协议进行配置,并将右侧配置成 末梢区域,实现网络互通。 推荐步骤:
1、 连接网络设备,标识OSPF区域,规划IP地址 2、 R1配置接口地址,启用OSPF协议
配置RIP与OSPF路由重分发,通过路由重分发实验,实现在不同路 由协议之间发布路由的要点。 配置主要步骤: 1、在路由器上配置IP路由选择和IP地址 2、配置RIP和OSPF路由协议 3、配置重分发 4、验证测试
任务二:路由重分发配置 实验环境:
BT公司有两家分公司,分别在上海、杭州,总公司在北京。为了提 高访问的安全性和实时性,避免出现故障,BT公司决定租用数字电路, 将分公司和总公司的网络互通,如下图所示。其中R1为总公司路由器, R2、R5为上海分公司路由器,R3、R4为杭州分公司路由器。按照以下要 求配置网络中的路由器,实现全网互通,并能访问Internet。
单元任务书23_ STUP区域及路由重分发配置
任务目标:
1、会配置STUB区域
2、会把静态路由、RIP路由重发布ห้องสมุดไป่ตู้OSPF区域内
学习形式
小组协作,分别完成
英语词汇:
Stub:残端,末梢 Destination:目的 Redistribute:重新分配,重发布 Internal Router:内部路由器 ABR:Area Border Router,区域边界路由器 ASBR:Autonomous System Boundary Router,自治系统边界路由 器 LSA:Link State Advertisement,链路状态通告 Stub Area:末梢区域 Totally Stubby Area:完全末梢区域

实验08-路由重分发

实验08-路由重分发

RIP与OSPF的路由重分发实验目的:1、掌握RIP与OSPF的重发布配置。

2、理解OSPF的E1与E2类型的路由。

实验拓扑图实验步骤及要求:1、配置各台路由器的IP地址,并且使用Ping命令确认各路由器的直连口的互通性。

2、配置R1与R2的OSPF路由协议和R2与R3的RIP路由协议。

R1(config)#router ospf 1R1(config-router)#network 172.16.255.0 0.0.0.3 area 0R1(config-router)#network 172.16.1.0 0.0.0.255 area 0R1(config-router)#network 172.16.2.0 0.0.0.255 area 0R2(config)#router ospf 1R2(config-router)#network 172.16.255.0 0.0.0.3 area 0R2(config-router)#exitR2(config)#router ripR2(config-router)#network 192.168.255.0R3(config)#router ripR3(config-router)#network 192.168.255.0R3(config-router)#network 192.168.1.0R3(config-router)#network 192.168.2.03、查看R1、R2和R3的路由表R1#show ip routeCodes: C - connected, S - static, 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 2i - 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 set172.16.0.0/16 is variably subnetted, 3 subnets, 2 masksC 172.16.255.0/30 is directly connected, FastEthernet0/0C 172.16.1.0/24 is directly connected, Loopback0C 172.16.2.0/24 is directly connected, Loopback1R2#show ip routeCodes: C - connected, S - static, 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 2i - 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 set172.16.0.0/16 is variably subnetted, 3 subnets, 2 masksC 172.16.255.0/30 is directly connected, FastEthernet0/1O 172.16.1.1/32 [110/2] via 172.16.255.1, 00:03:33, FastEthernet0/1O 172.16.2.1/32 [110/2] via 172.16.255.1, 00:03:33, FastEthernet0/1从R1学习到的OSPF网络路由C 192.168.255.0/24 is directly connected, FastEthernet0/0R 192.168.1.0/24 [120/1] via 192.168.255.1, 00:00:25, FastEthernet0/0R 192.168.2.0/24 [120/1] via 192.168.255.1, 00:00:25, FastEthernet0/0从R3学习到的RIP网络路由R3#show ip routeCodes: C - connected, S - static, 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 2i - 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 setC 192.168.255.0/24 is directly connected, FastEthernet0/1C 192.168.1.0/24 is directly connected, Loopback0C 192.168.2.0/24 is directly connected, Loopback14、根据show ip route命令可以看出,只有R2路由才可以学习到整个网络的完整路由。

892试验和CASE详解(323和452版)

892试验和CASE详解(323和452版)

892试验和CASE详解(3.23和4.52版)试验一:路由重分发1:观察题所给条件,查看带宽、延迟、可信度、负载、MTU。

这些信息是需要记住的,其中4ms=400(10us)2:记住题目规定将重分发到IS-IS的路由度量值要设置成153:记住题目要求的将哪些类型的路由分发到EIGRP中(level 1)4:将EIGRP路由分发到ISIS时也是用level 15:在配置延迟的时候要注意用问号查看下究竟是什么单位10微秒就是4msX1000/10=400,如果是10 ms的单位,那么就应该是0.4才对。

我们现在来假设一个情况:带宽、延迟、可信度、负载、MTU分别为256K 4ms 255 1 1500 分发到ISIS的路由设置metric 必须设置为15,用level1 表示分发进来的路由,只分发level1 的ISIS路由到EIGRP.这样的情况下:Cordon>enCordon#show run通过show run 我们可以看出EIGRP的进程号,我们假设为12598Cordon#configuration terminalCordon(config)#router isisCordon(config-router)#redistribute eigrp 12598 level-1 metric 15Cordon(config-router)#exitCordon(config)#router eigrp 12598Cordon(config-router)#redistribute isis level-1 metric 256 400 255 1 1500Cordon(config-router)#redistribute connectedCordon(config-router)#endCordon(config)#copy runstart为了方便记忆,我们只粘贴要敲的配置configuration terminalrouter isisredistribute eigrp 12598 level-1 metric 15exitrouter eigrp 12598redistribute isis level-1 metric 256 400 255 1 1500redistribute connectedendcopy runstart试验二:OSPF的多区域配置1:我们只需要配置两台路由器,也就是第一台没有启动ospf进程的那台路由器和当中那台路由器2:要注意在这里时要注意VLSM(变长子网掩码)的,/30的掩码的话,子网的块大小为4,那么我们在宣告网络时要注意宣告的子网,不要照抄!比如192.168.17.5/30的网络应该宣告成 192.168.17.4 0.0.0.3(这里也要注意反掩码的写法)3:路由器1需要配置成、末节区域,路由器2要配置成末节区域再加上no summary4:一样,要注意保存。

路由重分发工作原理

路由重分发工作原理

路由重分发工作原理路由重分发工作原理网络协议有很多种,例如isis、rip、ospf、bgp等,在大型公司中经常会出现网络设备之间运行多种网络协议的情况,各种网络协议之间如果不进行一定的配置那么设备之间是不能进行互通信息的,在这种情况下就出现了路由重分发技术,路由重分发的作用就是为了实现多种路由协议之间的协同工作。

路由重分发的工作原理:通过在各种路由协议的配置中添加一定的配置使将路由协议广播到另外的路由协议中,让各个路由协议都能检测到运行其他的路由协议的网段,从而实现数据的传输。

路由重分发技术需要用到redistribute命令rip协议的redistribute命令redistribute protocol 【metric metric-value】【match internal | external nssa-external type】【route-map map-tag】protocol:路由重分发的源路由协议 metric metric-value:设置路由重分发的度量值(1···6),没有将使用default-metric命令设置的metric值 match internal | external nssa-external type:设置重分发路由的条件,只适合重分发的源路由协议是ospf route-map map-tag应用路由图进行重分发ospf协议的redistribute命令 redistribute protocol 【subnets】【metric metric-value】【metric-type{1 | 2}】【tag tag-value】【route-map map-tag】protocol:路由重分发的源路由协议subnets:设置是否重分发子网metric metric-value:设置路由重分发的度量值(1···16777214),没有将使用default-metric命令设置的metric值metric metric-type:设置重分发的路由度量类型,默认值为2 tag tag-value:设置重分发的路由的tag(0···2147483647)默认为0 route-map map-tag应用路由图进行重分发重分发到ospf中的时候,除了直连路由和默认路由外,其他重分发的路由的默认的度量值是20,默认度量值类型是2,且默认不重分发子网。

路由重分发的基本概念

路由重分发的基本概念

路由重分发的基本概念在计算机网络中,路由器是用于转发网络数据包的设备。

路由器根据目的地地址将数据包从一个网络接口转发到另一个网络接口,以便将数据从源主机传输到目标主机。

如果网络结构发生改变或者某个路径出现故障,路由器就需要重新分发路由信息,以便确保数据能够正确地到达目标主机。

下面是路由重分发的基本概念。

路由重分发是指将新的路由信息通知给其它路由器,以便它们能够将数据包转发到正确的目标。

当网络拓扑发生改变时,例如有一条链路故障或者新增了一条链路,路由重分发就需要被执行。

在路由重分发的过程中,路由器会发送路由更新消息给其它路由器,以便让它们更新它们的路由表。

这样,当一个数据包到达网络时,路由器就可以根据最新的路由表将其正确地转发到目标主机。

路由器可以采用不同的路由协议来执行路由重分发。

常用的路由协议包括距离向量路由协议和链路状态路由协议。

距离向量路由协议根据最短距离确定最佳路径,并向其它路由器发送这些路径的距离信息。

当一条路径不可用时,路由器会从其它可能的路径中选择一个最佳路径,然后向其它路由器发送更新消息。

链路状态路由协议则根据网络中各链路的状态动态计算出路由信息。

当网络结构发生改变时,路由器会重新计算路由信息并通知其它路由器。

在执行路由重分发之前,路由器通常会先删除旧的路由信息。

这样可以避免新的路由信息和旧的路由信息冲突,导致数据包被错误地转发。

当路由重分发完成后,路由器会重新建立路由信息表。

新的路由表将包含最新的路由信息,以便将数据包正确地转发到目标主机。

总之,路由重分发是计算机网络中维护路由信息的重要过程。

它可以确保数据包能够正确地到达目标主机,同时避免了路由信息的冲突。

在实际应用中,路由重分发的频率对网络的性能有重要影响。

如果路由重分发太频繁,会导致网络负载过大,从而降低网络的吞吐量。

因此,在设计网络拓扑时,需要仔细考虑路由重分发的频率,并采取相应的措施来保证网络的高效稳定运行。

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查看结果,可以看出实现了数据分流。

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路由。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
度量类型
redistribute 命令可以用来实现路由重分发,它既 可以重分发所有路由,又可以根据匹配的条件, 选择某些路由进行重分发,此外,该命令还支持 某些参数的设置,如设置metric。
完整的redistribute命令格式如下:
redistribute protocol [process-id] [metric ] [metric-type ] [subnets]
构建大型网络不同协议之间的连接
要解决的问题
如何在不同协议之间建立连接
如何能让不同协议相互了解对方
如何能让多个不同协议变为一个统一的整体
路由重分发的环境
在大型的企业中,可能在同一网内使用到多种路由协议, 不同种类的路由协议是不能够相互认可的,也就是说不能 够协同工作。为了实现多种路由协议的协同工作,路由器 可以使用路由重分发(route redistribution)将其学习到的 一种路由协议的路由通过另一种路由协议广播出去,这样 网络的所有部分都可以连通了。 为了实现重分发,路由器必须同时运行多种路由协议,这 样,每种路由协议才可以取路由表中的所有或部分其他协 议的路由来进行广播。
注:分配进eigrp 的metric 可固定为10000 100 255 1 1500
将eigrp、rip 、静态、直连重分配到ospf R(config)#router ospf 1 R(config-router)#redistribute eigrp 100 metric 30 metric-type 1 subnets R(config-router)#redistribute rip 100 metric 30 subnets R(config-router)# redistribute static metric 100 subnets R(config-router)# redistribute connected metric 100 subnets
度量值
redistribute 命令可以用来实现路由重分发,它既 可以重分发所有路由,又可以根据匹配的条件, 选择某些路由进行重分发,此外,该命令还支持 某些参数的设置,如设置metric。
完整的redistribute命令格式如下:
redistribute protocol [process-id] [metric ] [metric-type ] [subnets]
协 议 号
redistribute 命令可以用来实现路由重分发,它既 可以重分发所有路由,又可以根据匹配的条件, 选择某些路由进行重分发,此外,该命令还支持 某些参数的设置,如设置metric。
完整的redistribute命令格式如下:
redistribute protocol [process-id] [metric ] [metric-type ] [subnets]
重分发命令
redistribute 命令可以用来实现路由重分发,它既 可以重分发所有路由,又可以根据匹配的条件, 选择某些路由进行重分发,此外,该命令还支持 某些参数的设置,如设置metric。
完整的redistribute命令格式如下:
redistribute protocol [process-id] [metric ] [metric-type ] [subnets]
R(config-router)# redistribute static metric 1
R(config-router)# redistribute connected metric 1
注:rip 以跳数作度量,最大为15 跳
将ospf、rip、静态、直连 重分配到eigrp R(config)#router eigrp 100 R(config-router)#redistribute ospf 1 metric 10000 100 255 1 1500 R(config-router)#redistribute rip metric 10000 100 255 1 1500 R(config-router)# redistribute static metric 1000 100 255 1 1500 R(config-router)# redistribute connected metric 1000 100 255 1 1500
管理距离( distance) :当路由器从不同的路由协 议(包括静态路由)学到关于同一个网段的路由 时,使用管理距离判断使用哪一个路由。因此管 理距离实际就是路由协议的优先级。管理距离数 值越低,优先级越高。
路由选择协议 直连接口 静态接口 EIGRP 管理距离 0 1 90 路由选择协议 IGRP OSPF RIP 管理距离 100 110 120
子 网
redistribute 命令可以用来实现路由重分发,它既 可以重分发所有路由,又可以根据匹配的条件, 选择某些路由进行重分发,此外,该命令还支持 某些参数的设置,如设置metric。
完整的redistribute命令格式如下:
redistribute protocol [process-id] [metric ] [metric-type ] [subnets]
注:subnets 参数为重分配子网,不加即只重分配主类地址
路由接口的ip地址配置
命令 Router>enable Router#configure terminal Router(config)#interface Router(config-if)#ip Router(config-if)#no e0/0 192.168.1.254 255.255.255.0
Router(config-router)# redistribute static metric 1000 100 255 1 1500
OSPF 动态路由协议的配置
Router > enable Router # configure terminal Router(config)# router ospf 1 Router(config-router)# network 40.40.40.4 0.0.0.3 area 0
address shutdown
静态 路由的配置
Router>enable Router#configure terminal Router(config)#ip route 192.168.2.0 255.255.255.0 10.10.10.2
Rip 动态路由协议的配置
Router>enable Router# configure Router(config)# terminal router rip
协 议
redistribute 命令可以用来实现路由重分发,它既 可以重分发所有路由,又可以根据匹配的条件, 选择某些路由进行重分发,此外,该命令还支持 某些参数的设置,如设置metric。
完整的redistribute命令格式如下:
redistribute protocol [process-id] [metric ] [metric-type ] [subnets]
Router(config-router)# Router(config-router)#
version 2 network 30.0.0.0
Router(config-router)# redistribute ospf 1 metric 10

Eigrp 动态路由协议的配置
Router > enable Router # configure terminal Router(config)# router eigrp Router(config-router)# network 1 20.0.0.0
重分发命令 协 议 协 议 号 度量值 度量类型 子 网
将ospf、eigrp 、静态、直连重分配到rip R(config)#router rip
R(config-router)#redistribute eigrp 100 metric 1
R(config-router)#redistribute ospf 1 metric 1
Router(config-router)# redistribute connected metric 1 metric-type 1 subnets
Rip
静态
eigrp
ospf
查看路由表
命令 Router # show ip route
查看连通性
用192.168.1.1 ping 192.168.2.1
用192.168.1.1 ping 192.168.3.1
用192.168.2.1 ping 192.168.3Байду номын сангаас1
注:最大值为250,表示不可达
OSPF
EIGRP
RIP
redistribute 命令可以用来实现路由重分发,它既 可以重分发所有路由,又可以根据匹配的条件, 选择某些路由进行重分发,此外,该命令还支持 某些参数的设置,如设置metric。
完整的redistribute命令格式如下:
redistribute protocol [process-id] [metric ] [metric-type ] [subnets]
相关文档
最新文档