﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vi`blog · 唯音 &#187; 多点</title>
	<atom:link href="http://www.viyin.net/tag/%e5%a4%9a%e7%82%b9/feed" rel="self" type="application/rss+xml" />
	<link>http://www.viyin.net</link>
	<description>岂能尽如人意，但求无愧于心</description>
	<lastBuildDate>Mon, 14 Nov 2011 15:43:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>动态路由多点双向重分布</title>
		<link>http://www.viyin.net/2009/07/two-way-multi-point-dynamic-routing-redistribution.html</link>
		<comments>http://www.viyin.net/2009/07/two-way-multi-point-dynamic-routing-redistribution.html#comments</comments>
		<pubDate>Fri, 31 Jul 2009 11:47:26 +0000</pubDate>
		<dc:creator>vi</dc:creator>
				<category><![CDATA[√思科华为]]></category>
		<category><![CDATA[动态路由]]></category>
		<category><![CDATA[双向]]></category>
		<category><![CDATA[多点]]></category>
		<category><![CDATA[重发布]]></category>

		<guid isPermaLink="false">http://www.viyin.net/?p=337</guid>
		<description><![CDATA[实验拓扑: 实验配置 :        实验拓扑如上图, 两个路由选择域, 在R2, R3上做路由的双向重分布, 使每个区域的路由器都可以达到共识.   实验目的 :        解决在多点重分布时出现路径的不优问题.   R2配置: ! router ospf 1  router-id 2.2.2.2  log-adjacency-changes  redistribute rip metric 10000 metric-type 1 subnets  network 192.1.12.0 0.0.0.255 area 0 ! router rip  version 2  redistribute ospf 1 metric 5  network 2.0.0.0  network 192.2.24.0  no auto-summary ! ip classless no ip http [...]]]></description>
			<content:encoded><![CDATA[<h2>实验拓扑:</h2>
<h2><a href="http://www.viyin.net/wp-content/uploads/2009/07/aa.jpg"><img class="alignnone size-full wp-image-338" title="aa" src="http://www.viyin.net/wp-content/uploads/2009/07/aa.jpg" alt="aa" width="481" height="370" /></a></h2>
<p><span id="more-337"></span></p>
<h2>实验配置 :</h2>
<p>       实验拓扑如上图, 两个路由选择域, 在R2, R3上做路由的双向重分布, 使每个区域的路由器都可以达到共识.</p>
<p> </p>
<h2>实验目的 :</h2>
<p>       解决在多点重分布时出现路径的不优问题.</p>
<p> </p>
<h2>R2配置:</h2>
<p>!</p>
<p>router ospf 1</p>
<p> router-id 2.2.2.2</p>
<p> log-adjacency-changes</p>
<p> redistribute rip metric 10000 metric-type 1 subnets</p>
<p> network 192.1.12.0 0.0.0.255 area 0</p>
<p>!</p>
<p>router rip</p>
<p> version 2</p>
<p> redistribute ospf 1 metric 5</p>
<p> network 2.0.0.0</p>
<p> network 192.2.24.0</p>
<p> no auto-summary</p>
<p>!</p>
<p>ip classless</p>
<p>no ip http server</p>
<p>!</p>
<p>!</p>
<p> </p>
<h2>R3配置:</h2>
<p>!</p>
<p>router ospf 1</p>
<p> router-id 3.3.3.3</p>
<p> log-adjacency-changes</p>
<p> redistribute rip metric 10000 metric-type 1 subnets</p>
<p> network 192.1.13.0 0.0.0.255 area 0</p>
<p>!</p>
<p>router rip</p>
<p> version 2</p>
<p> redistribute ospf 1 metric 5</p>
<p> network 3.0.0.0</p>
<p> network 192.2.35.0</p>
<p> no auto-summary</p>
<p>!</p>
<p>ip classless</p>
<p>no ip http server</p>
<p>!</p>
<p>!</p>
<h2>R2 先双向重分布, 然后R3再双向重分布.</h2>
<h3>R3路由表:</h3>
<p>O    192.1.12.0/24 [110/128] via 192.1.13.1, 00:03:19, Serial1</p>
<p>     1.0.0.0/24 is subnetted, 1 subnets</p>
<p>O       1.1.1.0 [110/65] via 192.1.13.1, 00:03:19, Serial1</p>
<p>C    192.1.13.0/24 is directly connected, Serial1</p>
<p>     2.0.0.0/24 is subnetted, 1 subnets</p>
<p>O E1    2.2.2.0 [110/10128] via 192.1.13.1, 00:03:19, Serial1</p>
<p>     3.0.0.0/24 is subnetted, 1 subnets</p>
<p>C       3.3.3.0 is directly connected, Loopback0</p>
<p>O E1 192.2.45.0/24 [110/10128] via 192.1.13.1, 00:03:19, Serial1</p>
<p>          4.0.0.0/24 is subnetted, 1 subnets</p>
<p>O E1    4.4.4.0 [110/10128] via 192.1.13.1, 00:03:20, Serial1</p>
<p>     5.0.0.0/24 is subnetted, 1 subnets</p>
<p>O E1    5.5.5.0 [110/10128] via 192.1.13.1, 00:03:20, Serial1</p>
<p>O E1 192.2.24.0/24 [110/10128] via 192.1.13.1, 00:03:22, Serial1</p>
<p>C    192.2.35.0/24 is directly connected, Serial0</p>
<p> </p>
<p>*红色路由不优, 红色条目为以下RIPv2的路由, 直接通过RIP就可以到达, 现在反而通过OSPF学到从RIP重分布进来的这些条目.</p>
<p> </p>
<h3>R2路由表:</h3>
<p>C    192.1.12.0/24 is directly connected, Serial0</p>
<p>     1.0.0.0/24 is subnetted, 1 subnets</p>
<p>O       1.1.1.0 [110/65] via 192.1.12.1, 00:00:04, Serial0</p>
<p>O    192.1.13.0/24 [110/128] via 192.1.12.1, 00:00:04, Serial0</p>
<p>     2.0.0.0/24 is subnetted, 1 subnets</p>
<p>C       2.2.2.0 is directly connected, Loopback0</p>
<p>     3.0.0.0/24 is subnetted, 1 subnets</p>
<p>O E1    3.3.3.0 [110/10128] via 192.1.12.1, 00:00:04, Serial0</p>
<p>R    192.2.45.0/24 [120/1] via 192.2.24.4, 00:00:04, Serial1</p>
<p>     4.0.0.0/24 is subnetted, 1 subnets</p>
<p>R       4.4.4.0 [120/1] via 192.2.24.4, 00:00:05, Serial1</p>
<p>     5.0.0.0/24 is subnetted, 1 subnets</p>
<p>R       5.5.5.0 [120/2] via 192.2.24.4, 00:00:05, Serial1</p>
<p>C    192.2.24.0/24 is directly connected, Serial1</p>
<p>O E1 192.2.35.0/24 [110/10128] via 192.1.12.1, 00:00:06, Serial0</p>
<p> </p>
<p>*不优条目</p>
<p> </p>
<h3>R1路由表:</h3>
<p>C    192.1.12.0/24 is directly connected, Serial0</p>
<p>     1.0.0.0/24 is subnetted, 1 subnets</p>
<p>C       1.1.1.0 is directly connected, Loopback0</p>
<p>C    192.1.13.0/24 is directly connected, Serial1</p>
<p>     2.0.0.0/24 is subnetted, 1 subnets</p>
<p>O E1    2.2.2.0 [110/10064] via 192.1.12.2, 00:00:03, Serial0</p>
<p>     3.0.0.0/24 is subnetted, 1 subnets</p>
<p>O E1    3.3.3.0 [110/10064] via 192.1.13.3, 00:00:03, Serial1</p>
<p>O E1 192.2.45.0/24 [110/10064] via 192.1.12.2, 00:00:03, Serial0</p>
<p>     4.0.0.0/24 is subnetted, 1 subnets</p>
<p>O E1    4.4.4.0 [110/10064] via 192.1.12.2, 00:00:03, Serial0</p>
<p>     5.0.0.0/24 is subnetted, 1 subnets</p>
<p>O E1    5.5.5.0 [110/10064] via 192.1.12.2, 00:00:04, Serial0</p>
<p>O E1 192.2.24.0/24 [110/10064] via 192.1.12.2, 00:00:04, Serial0</p>
<p>O E1 192.2.35.0/24 [110/10064] via 192.1.13.3, 00:00:14, Serial1</p>
<p> </p>
<p>*R1对于下边RIPv2的路由路径没有达到负载均衡的效果</p>
<h2>实验结论:</h2>
<p>       R2先双向重分布, 把R2通过RIP学到的路由信息带进OSPF域中, R1学到R2重分布进来的RIP路由信息(OE1), 当R1把OE1路由传给R3时, 此时R3本身也已有该些路由条目(R3通过RIP学到的路由信息), R3从R1收到(OE1)与自身(RIP)相同路由条目的更新信息时, 因为通过OSPF学到的路由管理距离比RIP低, 故采用OE1路由, 所以导致RIPv2网段的路由绕OSPF走, 出现路径不优的结果.</p>
<h2>解决办法:</h2>
<h2>R2配置:</h2>
<p>!</p>
<p>router ospf 1</p>
<p> router-id 2.2.2.2</p>
<p> log-adjacency-changes</p>
<p> redistribute rip metric 10000 metric-type 1 subnets</p>
<p> network 192.1.12.0 0.0.0.255 area 0</p>
<p> distance <span style="text-decoration: underline;">125</span> <span style="text-decoration: underline;">0.0.0.0</span> <span style="text-decoration: underline;">255.255.255.255</span> <span style="text-decoration: underline;">1</span>     (1是调用下边的访问控制列表1)</p>
<p>!</p>
<p>router rip</p>
<p> version 2</p>
<p> redistribute ospf 1 metric 5</p>
<p> network 2.0.0.0</p>
<p> network 192.2.24.0</p>
<p> no auto-summary</p>
<p>!</p>
<p>ip classless</p>
<p>no ip http server</p>
<p>!</p>
<p>access-list 1 permit 192.2.0.0 0.0.255.255</p>
<p>access-list 1 permit 2.2.2.0 0.0.0.255</p>
<p>access-list 1 permit 3.3.3.0 0.0.0.255</p>
<p>access-list 1 permit 4.4.4.0 0.0.0.255</p>
<p>access-list 1 permit 5.5.5.0 0.0.0.255</p>
<p>!</p>
<p> </p>
<h2>R3配置:</h2>
<p>!</p>
<p>router ospf 1</p>
<p> router-id 3.3.3.3</p>
<p> log-adjacency-changes</p>
<p> redistribute rip metric 10000 metric-type 1 subnets</p>
<p> network 192.1.13.0 0.0.0.255 area 0</p>
<p> distance 130 0.0.0.0 255.255.255.255 1</p>
<p>!</p>
<p>router rip</p>
<p> version 2</p>
<p> redistribute ospf 1 metric 5</p>
<p> network 3.0.0.0</p>
<p> network 192.2.35.0</p>
<p> no auto-summary</p>
<p>!</p>
<p>ip classless</p>
<p>no ip http server</p>
<p>!</p>
<p>access-list 1 permit 192.2.0.0 0.0.255.255</p>
<p>access-list 1 permit 2.2.2.0 0.0.0.255</p>
<p>access-list 1 permit 3.3.3.0 0.0.0.255</p>
<p>access-list 1 permit 4.4.4.0 0.0.0.255</p>
<p>access-list 1 permit 5.5.5.0 0.0.0.255</p>
<p>!</p>
<h2>对重分布进OSPF的路由条目更改其管理距离</h2>
<h3>调整后的R3路由表:</h3>
<p>O    192.1.12.0/24 [110/128] via 192.1.13.1, 00:05:05, Serial1</p>
<p>     1.0.0.0/24 is subnetted, 1 subnets</p>
<p>O       1.1.1.0 [110/65] via 192.1.13.1, 00:05:05, Serial1</p>
<p>C    192.1.13.0/24 is directly connected, Serial1</p>
<p>     2.0.0.0/24 is subnetted, 1 subnets</p>
<p>R       2.2.2.0 [120/3] via 192.2.35.5, 00:00:11, Serial0</p>
<p>     3.0.0.0/24 is subnetted, 1 subnets</p>
<p>C       3.3.3.0 is directly connected, Loopback0</p>
<p>R    192.2.45.0/24 [120/1] via 192.2.35.5, 00:00:11, Serial0</p>
<p>     4.0.0.0/24 is subnetted, 1 subnets</p>
<p>R       4.4.4.0 [120/2] via 192.2.35.5, 00:00:12, Serial0</p>
<p>     5.0.0.0/24 is subnetted, 1 subnets</p>
<p>R       5.5.5.0 [120/1] via 192.2.35.5, 00:00:12, Serial0</p>
<p>R    192.2.24.0/24 [120/2] via 192.2.35.5, 00:00:13, Serial0</p>
<p>C    192.2.35.0/24 is directly connected, Serial0</p>
<p> </p>
<h3>调整后的R2路由表:</h3>
<p>C    192.1.12.0/24 is directly connected, Serial0</p>
<p>     1.0.0.0/24 is subnetted, 1 subnets</p>
<p>O       1.1.1.0 [110/65] via 192.1.12.1, 00:08:07, Serial0</p>
<p>O    192.1.13.0/24 [110/128] via 192.1.12.1, 00:08:07, Serial0</p>
<p>     2.0.0.0/24 is subnetted, 1 subnets</p>
<p>C       2.2.2.0 is directly connected, Loopback0</p>
<p>     3.0.0.0/24 is subnetted, 1 subnets</p>
<p>R       3.3.3.0 [120/3] via 192.2.24.4, 00:00:11, Serial1</p>
<p>R    192.2.45.0/24 [120/1] via 192.2.24.4, 00:00:11, Serial1</p>
<p>     4.0.0.0/24 is subnetted, 1 subnets</p>
<p>R       4.4.4.0 [120/1] via 192.2.24.4, 00:00:12, Serial1</p>
<p>     5.0.0.0/24 is subnetted, 1 subnets</p>
<p>R       5.5.5.0 [120/2] via 192.2.24.4, 00:00:12, Serial1</p>
<p>C    192.2.24.0/24 is directly connected, Serial1</p>
<p>R    192.2.35.0/24 [120/2] via 192.2.24.4, 00:00:13, Serial1</p>
<p> </p>
<p>*R2. R3的路由条目都正常了, 各自使用本路由选择区域的IGP路由进行通讯</p>
<h3>调整后的R1路由表:</h3>
<p>C    192.1.12.0/24 is directly connected, Serial0</p>
<p>     1.0.0.0/24 is subnetted, 1 subnets</p>
<p>C       1.1.1.0 is directly connected, Loopback0</p>
<p>C    192.1.13.0/24 is directly connected, Serial1</p>
<p>     2.0.0.0/24 is subnetted, 1 subnets</p>
<p>O E1    2.2.2.0 [110/10064] via 192.1.12.2, 00:00:00, Serial0</p>
<p>                [110/10064] via 192.1.13.3, 00:00:00, Serial1</p>
<p>     3.0.0.0/24 is subnetted, 1 subnets</p>
<p>O E1    3.3.3.0 [110/10064] via 192.1.12.2, 00:00:00, Serial0</p>
<p>                [110/10064] via 192.1.13.3, 00:00:02, Serial1</p>
<p>O E1 192.2.45.0/24 [110/10064] via 192.1.12.2, 00:00:02, Serial0</p>
<p>                   [110/10064] via 192.1.13.3, 00:00:02, Serial1</p>
<p>     4.0.0.0/24 is subnetted, 1 subnets</p>
<p>O E1    4.4.4.0 [110/10064] via 192.1.12.2, 00:00:03, Serial0</p>
<p>                [110/10064] via 192.1.13.3, 00:00:03, Serial1</p>
<p>     5.0.0.0/24 is subnetted, 1 subnets</p>
<p>O E1    5.5.5.0 [110/10064] via 192.1.12.2, 00:00:03, Serial0</p>
<p>                [110/10064] via 192.1.13.3, 00:00:03, Serial1</p>
<p>O E1 192.2.24.0/24 [110/10064] via 192.1.12.2, 00:00:03, Serial0</p>
<p>                   [110/10064] via 192.1.13.3, 00:00:03, Serial1</p>
<p>O E1 192.2.35.0/24 [110/10064] via 192.1.12.2, 00:00:03, Serial0</p>
<p>                   [110/10064] via 192.1.13.3, 00:00:03, Serial1</p>
<p> </p>
<p>*R1对于RIPv2路由区域的路由也都达到负载均衡的结果</p>
<h2>实验结论:</h2>
<p>       可以修改重分布进OSPF的RIPv2路由的管理距离, 以确保边界路由器选择RIPv2路由.</p>
<p>因为从RIPv2重分布进OSPF的路由管理距离修改为 (125,130), 虽然在边界路由器上有相同的RIPv2路由条目, 但RIPv2的管理距离比较小, 故仍采用RIPv2的路由条目.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viyin.net/2009/07/two-way-multi-point-dynamic-routing-redistribution.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

