<?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>流沙咖啡·冷色调 &#187; BDR</title>
	<atom:link href="http://heavenfire.cn/tag/bdr/feed" rel="self" type="application/rss+xml" />
	<link>http://heavenfire.cn</link>
	<description>两点一线。</description>
	<lastBuildDate>Thu, 29 Jul 2010 06:52:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CCNA学习笔记——【3nd】OSPF的DR与BDR选举</title>
		<link>http://heavenfire.cn/200906/ccna%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e2%80%94%e2%80%94%e3%80%903nd%e3%80%91ospf%e7%9a%84dr%e4%b8%8ebdr%e9%80%89%e4%b8%be.html</link>
		<comments>http://heavenfire.cn/200906/ccna%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e2%80%94%e2%80%94%e3%80%903nd%e3%80%91ospf%e7%9a%84dr%e4%b8%8ebdr%e9%80%89%e4%b8%be.html#comments</comments>
		<pubDate>Sat, 27 Jun 2009 17:45:20 +0000</pubDate>
		<dc:creator>流沙咖啡</dc:creator>
				<category><![CDATA[思科]]></category>
		<category><![CDATA[网络时代]]></category>
		<category><![CDATA[BDR]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[DR]]></category>
		<category><![CDATA[DR选取]]></category>
		<category><![CDATA[OSPF]]></category>
		<category><![CDATA[RID]]></category>
		<category><![CDATA[Router ID]]></category>
		<category><![CDATA[优先级]]></category>
		<category><![CDATA[路由器]]></category>
		<category><![CDATA[顺序初始化]]></category>

		<guid isPermaLink="false">http://heavenfire.cn/?p=212</guid>
		<description><![CDATA[各位都知道DR和BDR的选举首先看他们的优先级，相同优先级的情况下再比较RouterID，RID较大的那个便是DR，但是有时候我们却发现DR并非RID最大的那个路由器。这是什么原因呢？
查阅资料后发现，有这么一句话，“在一个多址网络上，最先初始化启动的两台具有DR选取资格的路由器将成为DR和BDR路由器。”
这么说，可能是首先启动OSPF的路由器先把自己置为DR了，这样就并非最大RID的路由器是DR了。我们看看下面这个简单的实验。

如上拓扑配置好。R1的Loopback0口是1.1.1.1，R2的Loopback0口是2.2.2.2。
首先在R1上启用OSPF，R2上先不启用。
等待一小段时间后，再在R2上启用OSPF。
这时候查看R1的OSPF信息。
R1#show ip ospf interface
FastEthernet0/0 is up, line protocol is up
Internet Address 192.168.12.1/24, Area 0
Process ID 100, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 1.1.1.1, Interface address 192.168.12.1
Backup Designated router (ID) 2.2.2.2, Interface address 192.168.12.2
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello [...]]]></description>
			<content:encoded><![CDATA[<p>各位都知道DR和BDR的选举首先看他们的优先级，相同优先级的情况下再比较RouterID，RID较大的那个便是DR，但是有时候我们却发现DR并非RID最大的那个路由器。这是什么原因呢？</p>
<p>查阅资料后发现，有这么一句话，<strong>“在一个多址网络上，最先初始化启动的两台具有DR选取资格的路由器将成为DR和BDR路由器。”</strong></p>
<p>这么说，可能是首先启动OSPF的路由器先把自己置为DR了，这样就并非最大RID的路由器是DR了。我们看看下面这个简单的实验。</p>
<p><img class="alignnone size-full wp-image-213" title="DR" src="http://heavenfire.cn/wp-content/uploads/2009/06/DR.jpg" alt="DR" width="324" height="130" /></p>
<p>如上拓扑配置好。R1的Loopback0口是1.1.1.1，R2的Loopback0口是2.2.2.2。</p>
<p>首先在R1上启用OSPF，R2上先不启用。<br />
等待一小段时间后，再在R2上启用OSPF。</p>
<p>这时候查看R1的OSPF信息。</p>
<p style="padding-left: 30px;">R1#show ip ospf interface<br />
FastEthernet0/0 is up, line protocol is up<br />
Internet Address 192.168.12.1/24, Area 0<br />
Process ID 100, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 1<br />
Transmit Delay is 1 sec, <span style="color: #ff0000;"><strong>State DR</strong></span>, Priority 1<br />
Designated Router (ID) 1.1.1.1, Interface address 192.168.12.1<br />
Backup Designated router (ID) 2.2.2.2, Interface address 192.168.12.2<br />
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5<br />
Hello due in 00:00:05<br />
Index 2/2, flood queue length 0<br />
Next 0&#215;0(0)/0&#215;0(0)<br />
Last flood scan length is 2, maximum is 2<br />
Last flood scan time is 0 msec, maximum is 0 msec<br />
Neighbor Count is 1, Adjacent neighbor count is 1<br />
Adjacent with neighbor 2.2.2.2  (Backup Designated Router)<br />
Suppress hello for 0 neighbor(s)<br />
Loopback0 is up, line protocol is up<br />
Internet Address 1.1.1.1/24, Area 0<br />
Process ID 100, Router ID 1.1.1.1, Network Type LOOPBACK, Cost: 1<br />
Loopback interface is treated as a stub Host</p>
<p>理论上说，R1和R2的RID分别是1.1.1.1和2.2.2.2，R2的RID应该是更大的，也就是说R2应该是DR才对，但是在这个网络中，首先启用的是R1，所以R1先把自己置为DR了，新加入的路由器，不管RID多大，也最多就是个BDR。<br />
可以看一下R2上的OSPF端口信息。</p>
<p style="padding-left: 30px;">R2#sh ip ospf int<br />
FastEthernet0/0 is up, line protocol is up<br />
Internet Address 192.168.12.2/24, Area 0<br />
Process ID 100, Router ID 2.2.2.2, Network Type BROADCAST, Cost: 1<br />
Transmit Delay is 1 sec, <span style="color: #ff0000;"><strong>State BDR</strong></span>, Priority 1<br />
Designated Router (ID) 1.1.1.1, Interface address 192.168.12.1<br />
Backup Designated router (ID) 2.2.2.2, Interface address 192.168.12.2<br />
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5<br />
Hello due in 00:00:01<br />
Index 2/2, flood queue length 0<br />
Next 0&#215;0(0)/0&#215;0(0)<br />
Last flood scan length is 1, maximum is 1<br />
Last flood scan time is 0 msec, maximum is 0 msec<br />
Neighbor Count is 1, Adjacent neighbor count is 1<br />
Adjacent with neighbor 1.1.1.1  (Designated Router)<br />
Suppress hello for 0 neighbor(s)<br />
Loopback0 is up, line protocol is up<br />
Internet Address 2.2.2.2/24, Area 0<br />
Process ID 100, Router ID 2.2.2.2, Network Type LOOPBACK, Cost: 1<br />
Loopback interface is treated as a stub Host</p>
<p>可以看到，R2就是个BDR。</p>
<p>用clear ip ospf process命令清楚ospf进程，然后重新选举DR和BDR，这次就正确了。</p>
<p style="padding-left: 30px;">R1#show ip ospf interface<br />
FastEthernet0/0 is up, line protocol is up<br />
Internet Address 192.168.12.1/24, Area 0<br />
Process ID 100, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 1<br />
Transmit Delay is 1 sec, <span style="color: #ff0000;"><strong>State BDR</strong></span>, Priority 1<br />
Designated Router (ID) 2.2.2.2, Interface address 192.168.12.2<br />
Backup Designated router (ID) 1.1.1.1, Interface address 192.168.12.1<br />
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5<br />
Hello due in 00:00:08<br />
Index 2/2, flood queue length 0<br />
Next 0&#215;0(0)/0&#215;0(0)<br />
Last flood scan length is 1, maximum is 2<br />
Last flood scan time is 0 msec, maximum is 0 msec<br />
Neighbor Count is 1, Adjacent neighbor count is 1<br />
Adjacent with neighbor 2.2.2.2  (Designated Router)<br />
Suppress hello for 0 neighbor(s)</p>
<p style="padding-left: 30px;">R2#show ip ospf interface<br />
FastEthernet0/0 is up, line protocol is up<br />
Internet Address 192.168.12.2/24, Area 0<br />
Process ID 100, Router ID 2.2.2.2, Network Type BROADCAST, Cost: 1<br />
Transmit Delay is 1 sec, <strong><span style="color: #ff0000;">State DR</span></strong>, Priority 1<br />
Designated Router (ID) 2.2.2.2, Interface address 192.168.12.2<br />
Backup Designated router (ID) 1.1.1.1, Interface address 192.168.12.1<br />
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5<br />
Hello due in 00:00:09<br />
Index 2/2, flood queue length 0<br />
Next 0&#215;0(0)/0&#215;0(0)<br />
Last flood scan length is 1, maximum is 1<br />
Last flood scan time is 0 msec, maximum is 0 msec<br />
Neighbor Count is 1, Adjacent neighbor count is 1<br />
Adjacent with neighbor 1.1.1.1  (Backup Designated Router)<br />
Suppress hello for 0 neighbor(s)</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li>2009年06月22日 -- <a href="http://heavenfire.cn/200906/ccna%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e2%80%94%e2%80%94%e3%80%902nd%e3%80%91rip%e5%92%8ceigrp%e7%9a%84%e8%87%aa%e5%8a%a8%e6%b1%87%e6%80%bb%e5%92%8c%e8%b7%af%e7%94%b1%e9%80%89%e6%8b%a9%e7%9a%84.html" title="CCNA学习笔记——【2nd】RIP和EIGRP的自动汇总和路由选择的关系">CCNA学习笔记——【2nd】RIP和EIGRP的自动汇总和路由选择的关系</a> (2)</li><li>2009年06月21日 -- <a href="http://heavenfire.cn/200906/ccna%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e2%80%94%e2%80%94%e3%80%901st%e3%80%91%e7%9b%b4%e8%bf%9e%e8%b7%af%e7%94%b1%e5%ad%90%e6%8e%a5%e5%8f%a3%e9%97%ae%e9%a2%98.html" title="CCNA学习笔记——【1st】直连路由子接口问题">CCNA学习笔记——【1st】直连路由子接口问题</a> (0)</li><li>2009年06月28日 -- <a href="http://heavenfire.cn/200906/ccna%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e2%80%94%e2%80%94%e3%80%904nd%e3%80%91lastday.html" title="CCNA学习笔记——【4th】LastDay">CCNA学习笔记——【4th】LastDay</a> (0)</li></ul><br/>
<hr />
<p><small>© 流沙咖啡 for <a href="http://heavenfire.cn">流沙咖啡·冷色调</a>, 2009. |
<a href="http://heavenfire.cn/200906/ccna%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e2%80%94%e2%80%94%e3%80%903nd%e3%80%91ospf%e7%9a%84dr%e4%b8%8ebdr%e9%80%89%e4%b8%be.html">Permalink</a> |
<a href="http://heavenfire.cn/200906/ccna%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e2%80%94%e2%80%94%e3%80%903nd%e3%80%91ospf%e7%9a%84dr%e4%b8%8ebdr%e9%80%89%e4%b8%be.html#comments">没有评论</a> 
<br/>
文章标签: <a href="http://heavenfire.cn/tag/bdr" rel="tag">BDR</a>, <a href="http://heavenfire.cn/tag/cisco" rel="tag">cisco</a>, <a href="http://heavenfire.cn/tag/dr" rel="tag">DR</a>, <a href="http://heavenfire.cn/tag/dr%e9%80%89%e5%8f%96" rel="tag">DR选取</a>, <a href="http://heavenfire.cn/tag/ospf" rel="tag">OSPF</a>, <a href="http://heavenfire.cn/tag/rid" rel="tag">RID</a>, <a href="http://heavenfire.cn/tag/router-id" rel="tag">Router ID</a>, <a href="http://heavenfire.cn/tag/%e4%bc%98%e5%85%88%e7%ba%a7" rel="tag">优先级</a>, <a href="http://heavenfire.cn/tag/%e8%b7%af%e7%94%b1%e5%99%a8" rel="tag">路由器</a>, <a href="http://heavenfire.cn/tag/%e9%a1%ba%e5%ba%8f%e5%88%9d%e5%a7%8b%e5%8c%96" rel="tag">顺序初始化</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://heavenfire.cn/200906/ccna%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%e2%80%94%e2%80%94%e3%80%903nd%e3%80%91ospf%e7%9a%84dr%e4%b8%8ebdr%e9%80%89%e4%b8%be.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
