Microsoft Word - chp20路由重分布.doc

Similar documents
Microsoft Word - chp21路由优化.doc

动态路由选择协议、RIP

09.实验九:内部网关协议RIP与OSPF

实验二、路由器的基本配置

计算机网络 实验指导书 / 实验四 : 动态路由协议 实验四 : 动态路由协议 一 实验目的 1 进一步理解路由器的工作原理; 2 掌握 RIP 的基本原理和实现 ; 3 掌握 OSPF 的基本原理和实现 二 实验学时 2 学时 三 实验类型 综合性 四 实验需求 1 硬件每人配备计算机 1 台 2

通过动态路由协议实现链路备份

IP-Routing-05.pdf

Microsoft Word - chp22.doc

Microsoft Word - chp11NAT.doc

Microsoft Word - chp5EIGRP.doc

1 1 2 OSPF RIP 2

目录 简介... 3 BGP 重发布进 OSPF 环境拓扑图... 3 BGP 重发布进 OSPF 路由过滤... 4 FGT200B 关键配置... 4 接口 IP 配置... 4 Route-Map... 4 BGP 的配置... 5 FGT100E 关键配置... 5 接口 IP 及 BGP

Microsoft Word - chp3静态路由.doc

动态路由选择协议、RIP

Microsoft Word - chp6单区域OSPF.doc

Microsoft Word - chp19IS-IS.doc

了解BGP MED属性


计算机网络概论

active phisical rp address: backup phisical rp address: 截取部分 TOPO 图说明到 不通的问题 : internet internet tengige 0/0/0/0 tengige

¶C¶L§§¬_™¨ A.PDF

IS-IS路由协议中文教程v1

路由器基本配置

指定静态路由的下一跳IP地址

Microsoft Word - vlsm and ip unnumbered.doc

Packet Tracer实验集

untitled

D E 答 案 :C 3. 工 作 站 A 配 置 的 IP 地 址 为 /28. 工 作 站 B 配 置 的 IP 地 址 为 /28. 两 个 工 作 站 之 间 有 直 通 线 连 接, 两 台

Microsoft Word - chp10DHCP.doc

bbs.vlan5.com

ebook67-10

基于点到点链路的 OSPF 的初始配置

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

计算机网络 实验指导书 / 实验三 : 使用路由器组网 实验三 : 使用路由器组网 一 实验目的 1 理解路由器的基本工作原理; 2 掌握路由器的基本管理和配置方法; 3 理解路由组网的方法和静态路由的具体使用; 4 理解基于路由器的园区网的结构, 并进一步体会园区网的设计思路 二 实验学时 2 学

地址分配表设备 接口 IP 地址 子网掩码 默认网关 R1 G0/ N/A S0/0/0 (DCE) N/A R2 G0/ N/A S0/

Cisco Cisco Cisco (ROM) (FLASH) (RAM) RAM(NVRAM) Cisco

Microsoft Word - 路由信息协议RIP.doc

目录 简介... 3 通过 Local_Pref/MED 属性控制 BGP 路由走向... 4 测试拓扑... 4 业务要求... 4 详细配置过程... 5 设备基础配置... 5 IGP 的配置... 5 BGP 的配置... 7 BGP 属性调整前路由检查 针对 LP/MED 路由

路由器配置-3

12.pdf

FortiGate-v5.2-PPPOE 拨号协商时的 AC-name 和 Service-name 版本 1.0 时间 2015 年 3 月 支持的版本 FortiOS v5.2.x 作者 黄豪赫 状态 已审核 反馈

第3章

OSPF over IPSec及路由冗余

Microsoft Word - 目錄.doc

Microsoft Word - CISCOLAB04.doc

<4D F736F F F696E74202D20CDF8C2E7B9A4B3CCCAA6BFBCCAD4B0B8C0FDB5BCD1A75FB2B9B3E4B2C4C1CF30322E707074>

Internet协议分析

Microsoft PowerPoint CN 19

Simulator By SunLingxi 2003

RIPv2 认证示例配置

IP505SM_manual_cn.doc

eigrp

TCP/IP TCP/IP OSI IP TCP IP IP TCP/IP TCP/IP

<4D F736F F D CAB5D1E9CDD8C6CBA1A2D6D5B6CBB7FECEF1C6F7C5E4D6C32E646F63>

ebook140-8

目录 目录... I BOSON NETSIM 入门进阶 实战 BOSON NETSIM 基本实验 路由器基本实验 - 静态路由 缺省路由配置 交换机基本实验 -VLAN VTP TRUNK 远程访问基本实验 -PPP CHAP...11

Computer Networks and Internets

10配置维护路由协议.doc

生成word文档

財金資訊-80期.indd

考试要点 以下是实施 Cisco IP 路由 (ROUTE ) 考试的主要内容和考点 然而, 在考试的特定版本中也可能 出现其他相关的考点 为了更好地反映考试内容并明确考试目的, 下面的考试大纲可能在不发出通知的情 况下随时调整 考试说明 : 实施 Cisco IP 路由 (ROUTE

<4D F736F F D20D4F6C7BFD0CDC4DAB2BFCDF8B9D8C2B7D3C9D0ADD2E E646F63>

实验四 跨交换机VLAN配置

Exam1

bbs.vlan5.com

Single Area OSPF

ch08.PDF

Segment Routing MPLS数据平面 中文版

epub

中国计算机软件专业技术资格和水平考试

地址分配表 设备 接口 IP 地址 子网掩码 默认网关 WEST G0/ N/A S0/0/0 (DCE) N/A Tunnel N/A I

Microsoft Word - 05.doc

Cisco 路由器的路由选择

Huawei Technologies Co

AL-M200 Series

FortiGate OSPF设置

管理CISCO IOS

ARP ICMP

PowerPoint 演示文稿

ebook71-13

Microsoft Word - chp8帧中继.doc

epub 61-2

《网络应用技术与实践》/ 实验06:使用GNS3构建企业

iBgpMultipathMplsLoadbalancing.pdf

MASQUERADE # iptables -t nat -A POSTROUTING -s / o eth0 -j # sysctl net.ipv4.ip_forward=1 # iptables -P FORWARD DROP #

局域网技术课程设计报告.doc

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

CCIE学习笔记——BGP

SL2511 SR Plus 操作手冊_單面.doc

Page 2

<4D F736F F D20AC4FBDBDA4FBB67DA96CAABA2DA743A67EAFC5AAA95FA7B9BD5A5F2E646F63>

ex

PowerPoint 簡報

穨CAS1042中文手冊.doc

在 Cisco 路由器上配置 IP 的 IS-IS

一、选择题

(UTM???U_935_938_955_958_959 V )

团 学 要 闻 我 校 召 开 共 青 团 五 届 九 次 全 委 ( 扩 大 ) 会 议 3 月 17 日, 我 校 共 青 团 五 届 九 次 全 委 ( 扩 大 ) 会 议 在 行 政 办 公 楼 五 楼 会 议 室 举 行, 校 团 委 委 员 各 院 ( 系 ) 团 委 书 记 校 学 生

<4D F736F F D FD6B0D2B5BCBCC4DCB4F3C8FCB8B4CFB0D7CAC1CF5FB9E3D3F2CDF8B2BFB7D65F5FD5D4B6ABEABF2E646F63>

《网络应用技术》/ 实验04:静态路由实验

Transcription:

第 20 章路由重分布 当许多运行多路由的网络要集成到一起时, 必须在这些不同的路由选择协议之间共享路由信息 在路由选择协议之间交换路由信息的过程被称为路由重分布 (Route Redistribution) 20.1 路由重分布概述 路由重分布为在同一个互联网络中高效地支持多种路由协议提供了可能, 执行路由重分布的路由器被称为边界路由器, 因为它们位于两个或多个自治系统的边界上 路由重分布时计量单位和管理距离是必须要考虑的 每一种路由协议都有自己度量标准, 所以在进行重分布时必须转换度量标准, 使得它们兼容 种子度量值 (seed metric) 是定义在路由重分布里的, 它是一条从外部重分布进来的路由的初始度量值 路由协议默认的种子度量值如表 20-1 所示 表 20-1 路由协议默认的种子度量值 路由协议 默认种子度量值 RIP 无限大 EIGRP 无限大 OSPF BGP 为 1, 其它为 20 IS-IS 0 BGP IGP 的度量值 路由重分布应该考虑到如下的一些问题 : 1. 路由环路路由器有可能从一个自治系统学到的路由信息发送回该自治系统, 特别是在做双向重分布的时候, 一定要注意 ; 2. 路由信息的兼容问题每一种路由协议的度量标准不同, 所以路由器通过重分布所选择的路径可能并非最佳路径 ; 3. 不一致的收敛时间因为不同的路由协议收敛的时间不同 20.2 实验 1:RIP EIGRP 和 OSPF 重分布 1. 实验目的通过本实验可以掌握 (1) 种子度量值的配置 (2) 路由重分布参数的配置 (3) 静态路由重分布 (4)RIP 和 EIGRP 的重分布 (5)EIGRP 和 OSPF 的重分布 (6) 重分布路由的查看和调试 2. 拓扑结构实验拓扑如图 20-1 所示

图 20-1 RIP EIGRP 和 OSPF 重分布 3. 实验步骤 (1) 步骤 1: 配置路由器 R1 R1(config)#router rip R1(config-router)#version 2 R1(config-router)#no auto-summary R1(config-router)#network 192.168.12.0 R1(config-router)#redistribute static metric 3 // 重分布静态路由 R1(config)#ip route 0.0.0.0 0.0.0.0 Serial0/0/1 注意 在向 RIP 区域重分布路由的时候, 必须指定度量值, 或者通过 default-metric 命令设置缺省种子度量值, 因为 RIP 默认种子度量值为无限大, 但是只有重分布静态特殊, 可以不指定种子度量值 (2) 步骤 2: 配置路由器 R2 R2(config)#router eigrp 1 R2(config-router)#no auto-summary R2(config-router)#network 192.168.23.0 R2(config-router)#redistribute rip metric 1000 100 255 1 1500 // 将 RIP 重分布到 EIGRP 中 提示 因为 EIGRP 的度量相对复杂, 所以重分布时需要分别指定带宽 延迟 可靠性 负载以及 MTU 参数的值 R2(config)#router rip R2(config-router)#version 2 R2(config-router)#no auto-summary R2(config-router)#network 192.168.12.0 R2(config-router)#redistribute eigrp 1 // 将 EIGRP 重分布到 RIP 中 R2(config-router)#default-metric 4 // 配置默认种子度量值 注意

在 redistribute 命令中用参数 metric 指定的种子度量值优先于路由模式下使用 default-metric 命令设定的缺省的种子度量值 (3) 步骤 3: 配置路由器 R3 R3(config)#router eigrp 1 R3(config-router)#no auto-summary R3(config-router)#network 3.3.3.0 0.0.0.255 R3(config-router)#network 192.168.23.0 R3(config-router)#redistribute ospf 1 metric 1000 100 255 1 1500 // 将 OSPF 重分布到 EIGRP 中 R3(config-router)#distance eigrp 90 150 // 配置 EIGRP 默认管理距离 R3(config)#router ospf 1 R3(config-router)#router-id 3.3.3.3 R3(config-router)#network 192.168.34.0 0.0.0.255 area 0 R3(config-router)#redistribute eigrp 1 metric 30 metric-type 1 subnets // 将 EIGRP 重分布到 OSPF 中 R3(config-router)#default-information originate always (4) 步骤 4: 配置路由器 R4 R4(config)#router ospf 1 R4(config-router)#router-id 4.4.4.4 R4(config-router)#network 4.4.4.0 0.0.0.255 area 0 R4(config-router)#network 192.168.34.0 0.0.0.255 area 0 4. 实验调试 (1) 在 R1 上查看路由表 : R1#show ip route Gateway of last resort is 0.0.0.0 to network 0.0.0.0 C 192.168.12.0/24 is directly connected, Serial0/0/0 3.0.0.0/24 is subnetted, 1 subnets R 3.3.3.0 [120/4] via 192.168.12.2, 00:00:08, Serial0/0/0 4.0.0.0/32 is subnetted, 1 subnets R 4.4.4.4 [120/4] via 192.168.12.2, 00:00:08, Serial0/0/0 C 202.96.134.0/24 is directly connected, Serial0/0/1 R 192.168.23.0/24 [120/4] via 192.168.12.2, 00:00:08, Serial0/0/0 R 192.168.34.0/24 [120/4] via 192.168.12.2, 00:00:08, Serial0/0/0 S* 0.0.0.0/0 is directly connected, Serial0/0/1

以上输出表明路由器 R1 通过 RIPv2 学到从路由器 R2 重分布进 RIP 的路由 (2) 在 R2 上查看路由表 : R2#show ip route Gateway of last resort is 192.168.12.1 to network 0.0.0.0 C 192.168.12.0/24 is directly connected, Serial0/0/0 3.0.0.0/24 is subnetted, 1 subnets D 3.3.3.0 [90/2297856] via 192.168.23.3, 00:00:21, Serial0/0/1 4.0.0.0/32 is subnetted, 1 subnets D EX 4.4.4.4 [170/3097600] via 192.168.23.3, 00:00:21, Serial0/0/1 C 192.168.23.0/24 is directly connected, Serial0/0/1 D EX 192.168.34.0/24 [170/3097600] via 192.168.23.3, 00:00:21, Serial0/0/1 R* 0.0.0.0/0 [120/3] via 192.168.12.1, 00:00:05, Serial0/0/0 以上输出表明从路由器 R1 上重分布进 RIP 的默认路由被路由器 R2 学习到, 路由代码为 R* ; 在路由器 R3 上重分布进来的 OSPF 路由也被路由器 R2 学习到, 路由代码为 D EX, 这也说明 EIGRP 能够识别内部路由和外部路由, 默认的时候, 内部路由的管理距离是 90, 外部路由的管理距离是 170 (3) 在 R3 上查看路由表 : R3#show ip route Gateway of last resort is 192.168.23.2 to network 0.0.0.0 D EX 192.168.12.0/24 [150/3097600] via 192.168.23.2, 00:13:43, Serial0/0/1 3.0.0.0/24 is subnetted, 1 subnets C O C 3.3.3.0 is directly connected, Loopback0 4.0.0.0/32 is subnetted, 1 subnets 4.4.4.4 [110/65] via 192.168.34.4, 00:13:43, Serial0/0/0 192.168.23.0/24 is directly connected, Serial0/0/1

C 192.168.34.0/24 is directly connected, Serial0/0/0 D*EX 0.0.0.0/0 [150/3097600] via 192.168.23.2, 00:06:08, Serial0/0/1 以上输出表明, 从路由器 R2 上重分布进 EIGRP 的路由被路由器 R3 学习到, 路由代码为 D*EX, 同时 EIGRP 外部路由的管理距离被修改成 150 (4) 在 R4 上查看路由表 : R4#show ip route Gateway of last resort is 192.168.34.3 to network 0.0.0.0 O E1 192.168.12.0/24 [110/94] via 192.168.34.3, 00:25:26, Serial0/0/0 3.0.0.0/24 is subnetted, 1 subnets O E1 3.3.3.0 [110/94] via 192.168.34.3, 00:25:26, Serial0/0/0 4.0.0.0/24 is subnetted, 1 subnets C 4.4.4.0 is directly connected, Loopback0 O E1 192.168.23.0/24 [110/94] via 192.168.34.3, 00:25:26, Serial0/0/0 C 192.168.34.0/24 is directly connected, Serial0/0/0 O*E2 0.0.0.0/0 [110/1] via 192.168.34.3, 00:25:26, Serial0/0/0 以上输出表明, 从路由器 R3 上重分布进 OSPF 的路由被路由器 R4 学习到, 路由代码为 O E1 ; 同时学到由 R3 注入的路由代码为 O E2 的默认路由 (5)show ip protocols R3#show ip protocols Routing Protocol is "eigrp 1" // 运行 AS 为 1 的 EIGRP 进程 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Default networks flagged in outgoing updates Default networks accepted from incoming updates EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 EIGRP maximum hopcount 100 EIGRP maximum metric variance 1 Redistributing: eigrp 1, ospf 1 (internal, external 1 & 2, nssa-external 1 & 2) // 将 OSPF 进程 1 重分布 EIGRP 中 EIGRP NSF-aware route hold timer is 240s Automatic network summarization is not in effect Maximum path: 4 Routing for Networks: 3.3.3.0/24 192.168.23.0

Routing Information Sources: Gateway Distance Last Update 192.168.23.2 90 00:51:05 Distance: internal 90 external 150 Routing Protocol is "ospf 1" // 运行 OSPF 进程, 进程号为 1 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Router ID 3.3.3.3 It is an autonomous system boundary router // 自治系统边界路由器 (ASBR) Redistributing External Routes from, eigrp 1 with metric mapped to 30, includes subnets in redistribution // 将 EIGRP1 重分布 OSPF 中 Number of areas in this router is 1. 1 normal 0 stub 0 nssa Maximum path: 4 Routing for Networks: 192.168.34.0 0.0.0.255 area 0 Routing Information Sources: Gateway Distance Last Update 4.4.4.4 110 00:58:42 3.3.3.3 110 00:58:42 Distance: (default is 110) 以上输出表明路由器 R3 运行 EIGRP 和 OSPF 两种路由协议, 而且实现了双向重分布 20.3 实验 2:ISIS 和 OSPF 重分布 1. 实验目的通过本实验可以掌握 (1) 直连路由的重分布 (2)IS-IS 和 OSPF 的重分布 (3) 重分布路由的查看和调试 2. 拓扑结构实验拓扑如图 20-2 所示 图 20-2 ISIS 和 OSPF 重分布 3. 实验步骤

(1) 步骤 1: 配置路由器 R1 R1(config)#router isis R1(config-router)#net 49.0001.1111.1111.1111.00 R1(config-router)#is-type level-2-only R1(config)#interface Loopback0 R1(config-if)#ip address 1.1.1.1 255.255.255.0 R1(config-if)#ip router isis R1(config)#interface Serial0/0/0 R1(config-if)#ip address 192.168.12.1 255.255.255.0 R1(config-if)#ip router isis R1(config-if)#no shutdown (2) 步骤 2: 配置路由器 R2 R2(config)#router isis R2(config-router)#net 49.0002.2222.2222.2222.00 R2(config-router)#is-type level-2-only R2(config-router)#redistribute ospf 1 metric 20 // 将 OSPF 重分布到 IS-IS 中 R2(config)#interface Loopback0 R2(config-if)#ip address 2.2.2.2 255.255.255.0 R2(config-if)#ip router isis R2(config)#interface Serial0/0/0 R2(config-if)#ip address 192.168.12.2 255.255.255.0 R2(config-if)#clockrate 128000 R2(config-if)#ip router isis R2(config-if)#no shutdown R2(config)#router ospf 1 R2(config-router)#router-id 2.2.2.2 R2(config-router)#network 192.168.23.0 0.0.0.255 area 1 R2(config-router)#redistribute isis level-2 metric 50 subnets // 将 IS-IS 重分布到 OSPF 中 R2(config-router)#redistribute connected subnets // 将直连重分布到 OSPF 中 技术要点 在重分布 IS-IS 路由协议的时候, 只能将 L1 和 L2 的路由重分布进来, 而运行 IS-IS 路由协议的本地接口是不能被重分布进来的, 要通过重分布直连才可以 本实验中, 如果不重分布直连, 那么 R3 和 R4 的路由表中将没有 192.168.12.0 的路由条目, 造成局部网络不可达 (3) 步骤 3: 配置路由器 R3 R3(config)#router ospf 1 R3(config-router)#router-id 3.3.3.3 R3(config-router)#network 3.3.3.0 0.0.0.255 area 0 R3(config-router)#network 192.168.23.0 0.0.0.255 area 1 R3(config-router)#network 192.168.34.0 0.0.0.255 area 0

(4) 步骤 4: 配置路由器 R4 R4(config)#ip prefix-list 1 seq 5 permit 4.4.0.0/24 // 定义前缀列表 R4(config)#ip prefix-list 2 seq 5 permit 4.4.1.0/24 R4(config)#route-map conn permit 10 // 定义策略,21 章详细介绍 R4(config-route-map)#match ip address prefix-list 1 // 匹配条件 R4(config-route-map)#set metric 50 // 执行行为 R4(config-route-map)#set metric-type type-1 R4(config)#route-map conn permit 20 R4(config-route-map)#match ip address prefix-list 2 R4(config-route-map)#set metric 100 R4(config)#router ospf 1 R4(config-router)#router-id 4.4.4.4 R4(config-router)#network 192.168.34.0 0.0.0.255 area 0 R4(config-router)#redistribute connected subnets route-map conn // 将直连重分布到 OSPF 中 说明 (1) 路由器 R4 重分布直连的环回接口时, 对 4.4.0.0 做的控制是种子度量值设为 50, 度量值的类型为 1, 而对 4.4.1.0 做的控制是种子度量值设为 100, 度量值的类型采用默认, 即类型 2; (2) 由于要重分布直连接口, 所以一定不能在 OSPF 的路由进程中通告 4.4.0.0 和 4.4.1.0 ; (3) 前缀列表 (prefix-list) 在路由过滤和路由控制中使用非常的广泛, 它比访问控制列表具有更大的灵活性 匹配更加精确 4. 实验调试 (1) 在 R1 上查看路由表 : R1#show ip route Gateway of last resort is not set C 192.168.12.0/24 is directly connected, Serial0/0/0 1.0.0.0/24 is subnetted, 1 subnets C 1.1.1.0 is directly connected, Loopback0 2.0.0.0/24 is subnetted, 1 subnets i L2 2.2.2.0 [115/20] via 192.168.12.2, Serial0/0/0 3.0.0.0/32 is subnetted, 1 subnets

i L2 3.3.3.3 [115/30] via 192.168.12.2, Serial0/0/0 4.0.0.0/24 is subnetted, 2 subnets i L2 4.4.0.0 [115/30] via 192.168.12.2, Serial0/0/0 i L2 4.4.1.0 [115/30] via 192.168.12.2, Serial0/0/0 i L2 192.168.23.0/24 [115/30] via 192.168.12.2, Serial0/0/0 i L2 192.168.34.0/24 [115/30] via 192.168.12.2, Serial0/0/0 以上输出表明路由器 R1 学到整个网络的路由信息, 其中路由条目 2.2.2.0 是 IS-IS 内部路由, 而其它的 i L2 路由条目全部是通过路由器 R2 重分布进来的 (2) 在 R2 上查看路由表 : R2#show ip route Gateway of last resort is not set C 192.168.12.0/24 is directly connected, Serial0/0/0 1.0.0.0/24 is subnetted, 1 subnets i L2 1.1.1.0 [115/20] via 192.168.12.1, Serial0/0/0 2.0.0.0/24 is subnetted, 1 subnets C 2.2.2.0 is directly connected, Loopback0 3.0.0.0/32 is subnetted, 1 subnets O IA 3.3.3.3 [110/65] via 192.168.23.3, 00:00:27, Serial0/0/1 4.0.0.0/24 is subnetted, 2 subnets O E1 4.4.0.0 [110/178] via 192.168.23.3, 00:00:27, Serial0/0/1 O E2 4.4.1.0 [110/100] via 192.168.23.3, 00:00:27, Serial0/0/1 C 192.168.23.0/24 is directly connected, Serial0/0/1 O IA 192.168.34.0/24 [110/128] via 192.168.23.3, 00:00:27, Serial0/0/1 以上输出表明路由器 R2 既学到了 i L2 的路由, 又学到 OSPF 的 O IA 的路由, 也学到从 R4 重分布进来的 O E1 和 O E2 路由 特别是对于 R4 两个环回接口的路由条目, 确实达到了预期的控制要求 (3) 在 R3 上查看路由表 : R3#show ip route

Gateway of last resort is not set O E2 192.168.12.0/24 [110/20] via 192.168.23.2, 00:01:27, Serial0/0/1 1.0.0.0/24 is subnetted, 1 subnets O E2 1.1.1.0 [110/50] via 192.168.23.2, 00:01:23, Serial0/0/1 2.0.0.0/24 is subnetted, 1 subnets O E2 2.2.2.0 [110/20] via 192.168.23.2, 00:01:27, Serial0/0/1 3.0.0.0/24 is subnetted, 1 subnets C 3.3.3.0 is directly connected, Loopback0 4.0.0.0/24 is subnetted, 2 subnets O E1 4.4.0.0 [110/114] via 192.168.34.4, 00:01:28, Serial0/0/0 O E2 4.4.1.0 [110/100] via 192.168.34.4, 00:01:28, Serial0/0/0 C 192.168.23.0/24 is directly connected, Serial0/0/1 C 192.168.34.0/24 is directly connected, Serial0/0/0 以上输出值得注意的是路由条目 192.168.12.0 和 2.2.2.0, 如果在路由器 R2 上 OSPF 重分布的时候, 没有将直连接口重分布进来, 那么路由器 R3 是不能收到这些路由条目的 (4) 在 R4 上查看路由表 : R4#show ip route Gateway of last resort is not set O E2 192.168.12.0/24 [110/20] via 192.168.34.3, 00:01:42, Serial0/0/0 1.0.0.0/24 is subnetted, 1 subnets O E2 1.1.1.0 [110/50] via 192.168.34.3, 00:01:41, Serial0/0/0 2.0.0.0/24 is subnetted, 1 subnets O E2 2.2.2.0 [110/20] via 192.168.34.3, 00:01:42, Serial0/0/0 3.0.0.0/32 is subnetted, 1 subnets O 3.3.3.3 [110/65] via 192.168.34.3, 00:01:42, Serial0/0/0 4.0.0.0/24 is subnetted, 2 subnets C 4.4.0.0 is directly connected, Loopback0 C 4.4.1.0 is directly connected, Loopback1 O IA 192.168.23.0/24 [110/128] via 192.168.34.3, 00:01:42, Serial0/0/0 C 192.168.34.0/24 is directly connected, Serial0/0/0 以上输出表明路由器 R4 既学到了 OSPF 的 O 和 O IA 的路由, 也学到从 R2 重分布进来的 O E2 路由

20.4 路由重分布命令汇总 表 20-2 列出了本章涉及到的主要的命令 命令 show ip route show ip protocols redistribute default-metric ip prefix-list distance eigrp 表 20-2 本章命令汇总作用查看路由表查看和路由协议相关的信息配置路由协议重分布配置默认种子度量值定义前缀列表配置 EIGRP 默认管理距离