<?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>STP &#8211; エンジニアGO</title>
	<atom:link href="https://if-network.com/category/network-study/stp/feed/" rel="self" type="application/rss+xml" />
	<link>https://if-network.com</link>
	<description></description>
	<lastBuildDate>Sat, 11 Apr 2026 09:24:51 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<atom:link rel='hub' href='https://if-network.com/?pushpress=hub'/>
	<item>
		<title>(Cisco)L2の正常性確認&#038;トラブル時に役立つshowコマンド(STP, LACPなど)</title>
		<link>https://if-network.com/cisco-stp-l2-show/</link>
		
		<dc:creator><![CDATA[CHa]]></dc:creator>
		<pubDate>Sun, 30 Jul 2023 05:41:17 +0000</pubDate>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[PR]]></category>
		<category><![CDATA[STP]]></category>
		<category><![CDATA[技術勉強]]></category>
		<category><![CDATA[業務 役立ち情報]]></category>
		<category><![CDATA[業務効率化]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[RSTP]]></category>
		<guid isPermaLink="false">https://if-network.com/?p=4965</guid>

					<description><![CDATA[本記事ではL2ネットワーク(STP, Link Aggregation)の正常性確認やトラブルシューティング時に役立つshowコマンドやdebugコマンドを紹介いたします。 [br num=&#8221;1&#8243; [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><span class="line-lime">本記事では<span class="black b">L2ネットワーク(STP, Link Aggregation)の正常性確認やトラブルシューティング時に役立つshowコマンドやdebugコマンド</span>を紹介いたします。</span><br />
[br num=&#8221;1&#8243;]<br />
Cisco社の各試験を勉強されている方もご参考に下さい！</p>
<div class="box_style box_style_blue">
<div class="box_inner">
<div class="box_style_title"><span class="box_style_title_inner">▼ あなたにオススメな記事 ▼</span></div>
<p><span class="blue b">>>参考記事： </span>「<a href="https://if-network.com/network-engineer-book/">CCIEが語る!ネットワークエンジニアにオススメな本・参考書!</a>」
</div>
</div>
<h2 id="syn-toc1">Cisco STP, RSTPのshowコマンド</h2>
<p><img fetchpriority="high" decoding="async" src="https://if-network.com/wp-content/uploads/2022/01/pc-027-min.jpg" alt="" width="640" height="426" class="aligncenter size-full wp-image-4357" srcset="https://if-network.com/wp-content/uploads/2022/01/pc-027-min.jpg 640w, https://if-network.com/wp-content/uploads/2022/01/pc-027-min-300x200.jpg 300w, https://if-network.com/wp-content/uploads/2022/01/pc-027-min-600x400.jpg 600w" sizes="(max-width: 640px) 100vw, 640px" /><br />
<span class="line-lime">まず、<span class="black b">STP, RSTP関連のshowコマンド</span>を紹介いたします。</span></p>
<h3 id="syn-toc2">Cisco Showコマンド　(STP) リスト</h3>
<div class="table-scroll">
<table style="width: 800px;" align="center">
<thead>
<tr>
<th>コマンド</th>
<th>コマンド出力</th>
<th>確認出来る内容</th>
</tr>
</thead>
<tbody>
<tr>
<th>show running-config | inc spanning-tree</th>
<td>出力結果<br />
<a href="https://if-network.com/stp-lab-rstp/#keni-toc3">こちら</a>！</td>
<td>spanning-treeに関する設定情報の確認が可能</td>
</tr>
<tr>
<th>show vlan brief </th>
<td>出力結果<br />
<a href="https://if-network.com/stp-lab-rstp/#keni-toc3">こちら</a>！</td>
<td>VLANの一覧、VLANがどのインターフェイスにアサインされているか確認が可能<br />
※ Trunkポートの情報は見えない</td>
</tr>
<tr>
<th>show spanning-tree vlan [VLAN番号]</th>
<td>出力結果<br />
<a href="https://if-network.com/stp-lab-rootbridge/#keni-toc3">こちら</a>！</td>
<td>特定VLANにおけるspanning-treeステータスの確認が可能<br />
※ ルートブリッジの情報、STPインターフェイスの情報(Role、priorityなど), 各種Timer値を把握</td>
</tr>
<tr>
<th>show interfaces status err-disabled</th>
<td>出力結果<br />
<a href="https://if-network.com/stp-lab-bpduguard/#keni-toc6">こちら</a>！</td>
<td>err-disabledの原因確認が可能</td>
</tr>
<tr>
<th>show spanning-tree interface [インターフェイス番号] detail | include BPDU</th>
<td>出力結果<br />
<a href="https://if-network.com/stp-lab-portfast/#keni-toc3">こちら</a>！</td>
<td>BPDU送受信数の確認が可能</td>
</tr>
<tr>
<th>show spanning-tree int [インターフェイス番号] detail | inc Loop</th>
<td>出力結果<br />
<a href="https://if-network.com/stp-lab-loopguard/#keni-toc8">こちら</a>！</td>
<td>Loopガードの有効化確認、loop-inconsistent状態の確認が可能</td>
</tr>
<tr>
<th>show spanning-tree int [ポート番号] detail | inc Root</th>
<td>出力結果<br />
<a href="https://if-network.com/stp-lab-rootguard/#keni-toc8">こちら</a>！</td>
<td>Rootガードの有効化確認、root-inconsistent状態の確認が可能</td>
</tr>
</tbody>
</table>
</div>
<p>[br num=&#8221;1&#8243;]<br />
STP, RSTPに関して学習されたい方は、以下のまとめ記事をご確認ください！</p>
<div class="box_style box_style_blue">
<div class="box_inner">
<div class="box_style_title"><span class="box_style_title_inner">▼ あなたにオススメな記事 ▼</span></div>
<p><span class="blue b">>>参考記事： </span>「<a href="https://if-network.com/stp-summary/">Spanning tree 基本から検証結果の記事をまとめました！</a>」
</div>
</div>
<h2 id="syn-toc3">Cisco STP, RSTPのdebugコマンド</h2>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2020/10/pc-003-min.jpg" alt="" width="640" height="426" class="aligncenter size-full wp-image-2904" srcset="https://if-network.com/wp-content/uploads/2020/10/pc-003-min.jpg 640w, https://if-network.com/wp-content/uploads/2020/10/pc-003-min-300x200.jpg 300w, https://if-network.com/wp-content/uploads/2020/10/pc-003-min-600x400.jpg 600w" sizes="(max-width: 640px) 100vw, 640px" /><br />
<span class="line-lime">次に<span class="black b">STP, RSTP関連のdebugコマンド</span>を紹介いたします。</span><br />
※実環境での利用は十分に気をつけて下さいね。</p>
<h3 id="syn-toc4">Cisco Debugコマンド　(STP) リスト</h3>
<div class="table-scroll">
<table style="width: 800px;" align="center">
<thead>
<tr>
<th>コマンド</th>
<th>コマンド出力</th>
<th>確認出来る内容</th>
</tr>
</thead>
<tbody>
<tr>
<th>debug spanning-tree events</th>
<td>出力結果<br />
<a href="https://if-network.com/stp-lab-rstp/#keni-toc12">こちら</a>！</td>
<td>Spanning-treeに関するイベントの確認が可能</td>
</tr>
</tbody>
</table>
</div>
<p>[br num=&#8221;1&#8243;]</p>
<h2 id="syn-toc5">Cisco LACP, PAgPのshowコマンド</h2>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2020/11/pc-008-min.jpg" alt="" width="640" height="425" class="aligncenter size-full wp-image-2996" srcset="https://if-network.com/wp-content/uploads/2020/11/pc-008-min.jpg 640w, https://if-network.com/wp-content/uploads/2020/11/pc-008-min-300x199.jpg 300w" sizes="(max-width: 640px) 100vw, 640px" /><br />
<span class="line-lime">続いて、<span class="black b">LACP, PAgP関連のshowコマンド</span>を紹介いたします。</span></p>
<h3 id="syn-toc6">Cisco Showコマンド　(LACP, PAgP) リスト</h3>
<div class="table-scroll">
<table style="width: 800px;" align="center">
<thead>
<tr>
<th>コマンド</th>
<th>確認出来る内容</th>
</tr>
</thead>
<tbody>
<tr>
<th>show running-config interface [インターフェイス番号]</th>
<td>インターフェイスに関する設定情報の確認が可能</td>
</tr>
<tr>
<th>show interface port-channel [ポートチャネル番号]</th>
<td>特定ポートチャネルの状態確認が可能</td>
</tr>
<tr>
<th>show etherchannel summary</th>
<td>LACP, PAgPを組んでいるインターフェイスの状態確認が可能</td>
</tr>
<tr>
<th>show etherchannel load-balance</th>
<td>LACP, PAgPのロードバランス設定の確認が可能</td>
</tr>
</tbody>
</table>
</div>
<h2 id="syn-toc7">Cisco LACP, PAgPのdebugコマンド</h2>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2020/10/pc-004-min.jpg" alt="" width="640" height="371" class="aligncenter size-full wp-image-2905" srcset="https://if-network.com/wp-content/uploads/2020/10/pc-004-min.jpg 640w, https://if-network.com/wp-content/uploads/2020/10/pc-004-min-300x174.jpg 300w" sizes="(max-width: 640px) 100vw, 640px" /><br />
<span class="line-lime">次に<span class="black b">LACP, PAgP関連のdebugコマンド</span>を紹介いたします。</span><br />
※実環境での利用は十分に気をつけて下さいね。</p>
<h3 id="syn-toc8">Cisco Debugコマンド　(STP) リスト</h3>
<div class="table-scroll">
<table style="width: 800px;" align="center">
<thead>
<tr>
<th>コマンド</th>
<th>確認出来る内容</th>
</tr>
</thead>
<tbody>
<tr>
<th>debug etherchannel detail</th>
<td>ポートチャネルに関するログ(詳細)の確認が可能</td>
</tr>
<tr>
<th>debug etherchannel error</th>
<td>ポートチャネルに関するエラーログの確認が可能</td>
</tr>
<tr>
<th>debug etherchannel event</th>
<td>ポートチャネルに関するイベントログの確認が可能</td>
</tr>
</tbody>
</table>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>[まとめ] Spanning tree 基本から検証結果の記事をまとめました！</title>
		<link>https://if-network.com/stp-summary/</link>
		
		<dc:creator><![CDATA[CHa]]></dc:creator>
		<pubDate>Sun, 01 Nov 2020 07:22:05 +0000</pubDate>
				<category><![CDATA[CCNA]]></category>
		<category><![CDATA[CCNP]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[PR]]></category>
		<category><![CDATA[STP]]></category>
		<category><![CDATA[技術勉強]]></category>
		<category><![CDATA[資格勉強]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[RSTP]]></category>
		<guid isPermaLink="false">https://if-network.com/?p=2995</guid>

					<description><![CDATA[本記事ではSTP関連の記事を纏めております！ 「STPの技術仕様に関する記事」と「STPの検証記事」に分けて紹介していますので、ご覧下さい。 ▼ あなたにオススメな記事 ▼ >>参考記事： 「CCIEが語る!ネットワーク [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>本記事では<span class="black b">STP関連の記事</span>を纏めております！<br />
<br />
<span class="synx-marker is-green ">「STPの技術仕様に関する記事」と「STPの検証記事」に分けて紹介していますので、ご覧下さい。</span></p>
<div class="box_style box_style_blue">
<div class="box_inner">
<div class="box_style_title"><span class="box_style_title_inner">▼ あなたにオススメな記事 ▼</span></div>
<p><span class="blue b">>>参考記事： </span>「<a href="https://if-network.com/network-engineer-book/">CCIEが語る!ネットワークエンジニアにオススメな本・参考書!</a>」
</div>
</div>
<h2 id="syn-toc1">【CCNA】STP 技術仕様に関する記事</h2>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2020/01/business-35-min-1.jpg" alt="" width="640" height="427" class="aligncenter size-full wp-image-2201" srcset="https://if-network.com/wp-content/uploads/2020/01/business-35-min-1.jpg 640w, https://if-network.com/wp-content/uploads/2020/01/business-35-min-1-300x200.jpg 300w, https://if-network.com/wp-content/uploads/2020/01/business-35-min-1-600x400.jpg 600w" sizes="(max-width: 640px) 100vw, 640px" /><br />
現在の企業ネットワークではSTP(spanning tree protocol),RSTPが使用されております。<br />
<br />
企業内のL2ネットワークを支えている技術なので、<br />
<span class="black b">誤った設計や設定をすると大規模なネットワークトラブルに繋がります。</span><br />
<br />
その為、<span class="synx-marker is-green ">STPに関する正しい知識を身につける事はネットワークエンジニアとして非常に重要</span>です。<br />
以下にSTPに関連する記事を纏めておりますので、ご確認下さい！<br />
</p>
<h3 id="syn-toc2">STP(Spanning Tree Protocol)の基礎について</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">STPの必要性やSTPの動作概要</span>について纏めております！</span><br />
STPの基礎知識/設定方法やルートブリッジの選定基準を身に付けたい方はご覧下さい。<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/stp-basis/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/11/business-16-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">スパニングツリー(Spanning tree)の基本・設定方法を解説【CCNA】</p>
													<p class="blogcard__txt">STPの基本からルートブリッジの選定・ルートポートの選定・指定ポートまで解説しております。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc3">拡張システムIDについて</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">STPの拡張システムID</span>について纏めております！</span><br />
STPの理解を深める上でもぜひご覧下さい！<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/spanning-tree-extend-system-id/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2020/01/business-43-min-1.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">spanning-tree extend system-id(拡張システムID)とは？図解解説します！</p>
													<p class="blogcard__txt">本記事ではSTPの拡張システムID(spanning-tree extend system-id)について解説いたします。▼ オススメの記事 ▼ 	参考記事： ･･･</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc4">STPの状態遷移や各種タイマーについて</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">STPの状態遷移(ブロッキング、リスニング、ランニング、フォワーディング)やSTPタイマー(Hello、最大エッジ、転送遅延タイマー)の仕様や設定方法</span>について纏めております！</span><br />
こちらもSTPの基礎知識を身に付けたい方向けの記事です。<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/stp-status-timer/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/11/business-16-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">Spanning treeの状態遷移とタイマーを解説【CCNA】</p>
													<p class="blogcard__txt">STPのポート遷移(ブロッキング→リスニング→ランニング→フォワーディング)と各Timerについて解説します。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc5">RSTP(Rapid Spanning Tree Protocol)の状態遷移や各種タイマーについて</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">STPとRSTPの動作の違いや設定方法</span>について纏めております！</span><br />
<br />
RSTP独特の<span class="black b">プロポーザルBPDU・アグリーメントBPDUや間接障害時の高速切り替え</span>に関しても纏めております。<br />
業務でRSTPを使用されている方やネットワーク系の資格試験にチャレンジしている方向けの記事です。<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/rstp-basis/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2020/11/pc-009.png" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">RSTP(Rapid Spanning Tree)の収束(再計算)や切り替わり時間、設定まで解説【CCNA】</p>
													<p class="blogcard__txt">RSTPのSTPとの具体的な違い・設定コマンドを解説しております。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc6">Portfast・BPDUガード・BPDUフィルターについて</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">Portfast・BPDUガード・BPDUフィルターの機能仕様や設定方法</span>について纏めております！</span><br />
業務でも多く使用されている技術ですので、ぜひご覧下さい！<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/portfast-bpduguard-filter/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/11/business-16-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">Portfast・BPDUガード・BPDUフィルターの仕様・設定方法を解説【CCNA】</p>
													<p class="blogcard__txt">STPのPortfast・BPDUガード・BPDUフィルターの動作・設定方法について解説します。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc7">ルートガード・ループガードについて</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">ルートガード・ループガードの機能仕様や設定方法</span>について纏めております！</span><br />
安定したSTPネットワークを提供する上でも重要な機能の1つですので、ぜひご覧下さい！<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/rootguard-loopguard/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/11/business-16-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">ルートガード・ループガードの仕様・設定方法を解説【CCNA】</p>
													<p class="blogcard__txt">STPのルートガード・ループガードの動作・設定方法について解説します。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h2 id="syn-toc8">【CCNA】STP 検証に関する記事</h2>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2020/11/pc-008-min.jpg" alt="" width="640" height="425" class="aligncenter size-full wp-image-2996" srcset="https://if-network.com/wp-content/uploads/2020/11/pc-008-min.jpg 640w, https://if-network.com/wp-content/uploads/2020/11/pc-008-min-300x199.jpg 300w" sizes="(max-width: 640px) 100vw, 640px" /><br />
以下にてSTPの検証に関する記事を纏めております。<br />
<span class="black b">実機での設定方法や確認方法について確認されたい方</span>はご覧下さい。</p>
<h3 id="syn-toc9">STP, RSTPでShow, Debugコマンド一覧</h3>
<p><span class="synx-marker is-green ">STP, RSTPの正常性確認時によく使う、<span class="black b">Show, Debugコマンドの一覧</span>を纏めております！</span><br />
気になる方はご覧下さい！<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/cisco-stp-l2-show/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2023/07/company-002-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">(Cisco)L2の正常性確認&#038;トラブル時に役立つshowコマンド(STP, LACPなど)</p>
													<p class="blogcard__txt">本記事ではL2ネットワーク(STP, Link Aggregation)の正常性確認やトラブルシューティング時に役立つshowコマンドやdebugコマンドを紹介･･･</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc10">ルートブリッジに関する検証結果について</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">ルートブリッジの設定変更・正常性確認方法</span>について纏めております！</span><br />
気になる方はご覧下さい！<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/stp-lab-rootbridge/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/10/job-14-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">ルートブリッジの設定方法/設定例(spanning-tree priority)【検証】</p>
													<p class="blogcard__txt">STPのルートブリッジの設定方法・正常性確認方法を纏めております。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc11">指定ポートに関する検証結果について</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">指定ポートの設定変更・正常性確認の方法</span>について纏めております！</span><br />
気になる方はご覧下さい！<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/stp-lab-designated-port/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/10/job-14-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">指定ポートの設定方法/設定例(spanning-tree cost)【検証】</p>
													<p class="blogcard__txt">STPの指定ポートの設定方法(costコマンド)・正常性確認方法を纏めております。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc12">STPの各種タイマーに関する検証結果ついて</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">STPのタイマーの設定変更・正常性確認方法</span>について纏めております！</span><br />
気になる方はご覧下さい！<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/stp-lab-timer/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/10/job-14-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">STPのタイマーの設定方法/設定例(spanning tree timer)【検証】</p>
													<p class="blogcard__txt">STPのタイマーの設定方法・正常性確認方法を纏めております。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc13">RSTPに関する検証結果ついて</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">RSTPの設定変更・正常性確認方法</span>について纏めております！<br />
気になる方はご覧下さい！</span><br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/stp-lab-rstp/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/10/job-14-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">RSTPの設定方法/設定例(spanning-tree mode rapid-pvst)【検証】</p>
													<p class="blogcard__txt">RSTPの設定方法・正常性確認方法を纏めております。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc14">Portfastに関する検証結果ついて</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">Portfastの設定変更・正常性確認方法</span>について纏めております！<br />
気になる方はご覧下さい！</span><br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/stp-lab-timer/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/10/job-14-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">STPのタイマーの設定方法/設定例(spanning tree timer)【検証】</p>
													<p class="blogcard__txt">STPのタイマーの設定方法・正常性確認方法を纏めております。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc15">BPDUガードに関する検証結果ついて</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">BPDUガードの設定変更・正常性確認方法</span>について纏めております！<br />
気になる方はご覧下さい！</span><br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/stp-lab-bpduguard/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/10/job-14-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">BPDUガードの設定方法/設定例(spanning-tree bpduguard)【検証】</p>
													<p class="blogcard__txt">BPDUガードの設定方法・正常性確認方法を纏めております。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc16">BPDUフィルターに関する検証結果について</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">BPDUフィルターの設定変更・正常性確認方法</span>について纏めております！</span><br />
気になる方はご覧下さい！<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/stp-lab-bpdufilter/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/10/job-14-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">BPDUフィルターの設定方法/設定例(spanning-tree bpdufilter)【検証】</p>
													<p class="blogcard__txt">BPDUフィルターの設定方法・正常性確認方法を纏めております。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc17">ルートガードに関する検証結果について</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">ルートガードの設定変更・正常性確認の方法</span>について纏めております！</span><br />
気になる方はご覧下さい！<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/stp-lab-rootguard/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/10/job-14-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">ルートガードの設定方法/設定例(spanning-tree guard root)【検証】</p>
													<p class="blogcard__txt">ルートガードの設定方法・正常性確認方法を纏めております。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc18">ループガードに関する検証結果について</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">ループガードの設定変更・正常性確認の方法</span>について纏めております！</span><br />
気になる方はご覧下さい！<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/stp-lab-loopguard/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/10/job-14-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">ループガードの設定方法/設定例(spanning-tree guard loop)【検証】</p>
													<p class="blogcard__txt">ループガードの設定方法・正常性確認方法を纏めております。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h2 id="syn-toc19">【その他】ネットワークエンジニアに役立つ記事(showコマンド一覧など)</h2>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2021/01/job-52-min.jpg" alt="" width="640" height="427" class="aligncenter size-full wp-image-3648" srcset="https://if-network.com/wp-content/uploads/2021/01/job-52-min.jpg 640w, https://if-network.com/wp-content/uploads/2021/01/job-52-min-300x200.jpg 300w, https://if-network.com/wp-content/uploads/2021/01/job-52-min-600x400.jpg 600w" sizes="(max-width: 640px) 100vw, 640px" /><br />
最後に<span class="black b">ネットワークエンジニアに役立つ記事一覧</span>をまとめております。<br />
気になる記事があれば、ぜひご覧下さい！！</p>
<h3 id="syn-toc20">Cisco show, debugコマンド一覧</h3>
<p><span class="synx-marker is-green ">正常性確認時によく使う、<span class="black b">Show, Debugコマンドの一覧</span>をまとめております！</span><br />
気になる方はご覧下さい！</p>
<h4 id="syn-toc21">OSPF show, debugコマンド一覧</h4>
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/cisco-ospf-show/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2020/10/pc-007-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">(Cisco)OSPFの正常性確認&#038;トラブル時に役立つshowコマンド</p>
													<p class="blogcard__txt">本記事ではOSPFネットワークの正常性確認やトラブルシューティング時に役立つshowコマンドやdebugコマンドを紹介いたします。Cisco社の各試験を勉強され･･･</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	
<h4 id="syn-toc22">BGP show, debugコマンド一覧</h4>
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/cisco-bgp-show/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2020/05/job-26-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">(Cisco)BGPの正常性確認&#038;トラブル時に役立つshowコマンド</p>
													<p class="blogcard__txt">本記事ではBGPネットワークの正常性確認やトラブルシューティング時に役立つshowコマンドを紹介いたします。Cisco社の各試験を勉強されている方もご参考に下さ･･･</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	
<h3 id="syn-toc23">Cisco 公式の便利サイト・ツールの紹介</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">ネットワークエンジニアがよく利用するCisco社のサイト</span>についてまとめております！</span><br />
気になる方はご覧下さい！<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/cisco-tool-list/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/10/job-12-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">【まとめ】ネットワークエンジニアがよく利用するCiscoサイト(ツール)一覧</p>
													<p class="blogcard__txt">ネットワークエンジニアがよく利用するサイト一覧を纏めております。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc24">Cisco ソフトウェアの選定方法</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">Cisco ソフトウェアの選定方法</span>についてまとめております！</span><br />
気になる方はご覧下さい！<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/cisco-ios-selection/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2021/01/job-53-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">Cisco ソフトウェア(IOS)の選定方法(推奨バージョン・脆弱性・Bug)を紹介</p>
													<p class="blogcard__txt">ネットワークエンジニアの方はと、悩まれている方も多いのではないでしょうか？ネットワークの構築・運用時において、最適なソフトウェアを選定することは、非常に重要です･･･</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/cisco-software-suggest/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2022/01/pc-028-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">【図解】Cisco ソフトウェア(IOS) の推奨バージョンを確認する手順を紹介</p>
													<p class="blogcard__txt">本記事では「ソフトウェア(IOS)の推奨バージョンの調べ方」について、ご紹介します。ネットワークの構築・運用時において、最適なソフトウェアを選定することは、非常･･･</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc25">ネットワーク 提案・要件定義時の検討項目</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">ネットワーク 提案・要件定義時の検討項目</span>についてまとめております！</span><br />
気になる方はご覧下さい！<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/proposal-check-point/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/11/business-01-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">ネットワークの提案と要件定義時における重要な検討項目 9選！</p>
													<p class="blogcard__txt">ITインフラの提案を成功させる9つの重要なポイントを紹介します！</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc26">ネットワーク 基本設計書の目次</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">ネットワーク 基本設計書の目次</span>についてまとめております！</span><br />
気になる方はご覧下さい！<br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/nw-basic-design/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2019/10/business-11-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">基本設計書(ネットワーク)の目次・記載項目・ポイント！</p>
													<p class="blogcard__txt">ネットワーク案件用の基本設計書の項目を整理しております。</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h3 id="syn-toc27">無線LAN 設計時の考慮事項</h3>
<p><span class="synx-marker is-green ">以下の記事では<span class="black b">無線LAN 設計時の考慮事項</span>についてまとめております！<br />
気になる方はご覧下さい！</span><br />
	<article class="blogcard ">
		<a class="blogcard__link" href="https://if-network.com/not-wireless-trouble-design/" target="_blank" rel="noopener noreferrer">
							<div class="blogcard__img">
					<img src="https://if-network.com/wp-content/uploads/2022/01/pc-027-min.jpg" alt="" loading="lazy" decoding="async" />
				</div>
						<div class="blogcard__txtarea">
									<p class="blogcard__ttl">無線LANネットワークのトラブルを少なく！提案・基本設計時に考慮すべきこと！</p>
													<p class="blogcard__txt">本記事では私の実体験に基づき、法人向けアクセスポイントにおける無線設計に関する注意点をご紹介させて頂きます。[char no=&quot;3&quot; char=&quot;解決者&quot;]この･･･</p>
													<span class="blogcard__sitename">エンジニアGO</span>
							</div>
		</a>
	</article>
	</p>
<h2 id="syn-toc28">まとめ</h2>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2020/01/business-30-min.jpg" alt="" width="640" height="427" class="aligncenter size-full wp-image-2160" srcset="https://if-network.com/wp-content/uploads/2020/01/business-30-min.jpg 640w, https://if-network.com/wp-content/uploads/2020/01/business-30-min-300x200.jpg 300w, https://if-network.com/wp-content/uploads/2020/01/business-30-min-600x400.jpg 600w" sizes="(max-width: 640px) 100vw, 640px" /><br />
<span class="synx-marker is-green ">STPは企業内ネットワークを安定運用していく上で<span class="black b">重要な技術要素の1つ</span>です。</span><br />
ネットワークエンジニアとしてしっかり勉強しておきましょう！</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>spanning-tree extend system-id(拡張システムID)とは？図解解説します！</title>
		<link>https://if-network.com/spanning-tree-extend-system-id/</link>
		
		<dc:creator><![CDATA[CHa]]></dc:creator>
		<pubDate>Fri, 21 Feb 2020 17:24:21 +0000</pubDate>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[PR]]></category>
		<category><![CDATA[STP]]></category>
		<category><![CDATA[技術勉強]]></category>
		<category><![CDATA[RSTP]]></category>
		<category><![CDATA[ネットワーク]]></category>
		<guid isPermaLink="false">https://if-network.com/?p=2411</guid>

					<description><![CDATA[本記事ではSTPの拡張システムID(spanning-tree extend system-id)について解説いたします。 ▼ オススメの記事 ▼ 参考記事： 「STPの基本〜応用まで！STPの仕様と検証結果の記事をまと [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>本記事ではSTPの拡張システムID(spanning-tree extend system-id)について解説いたします。<br />
</p>
<dl class="synx-block-dl is-style-outline">
<dt class="synx-block-dl__dt">▼ オススメの記事 ▼</dt>
<dd class="synx-block-dl__dd">
<ul class="synx-list-dot">
<li>参考記事： 「<a href="https://if-network.com/stp-summary/">STPの基本〜応用まで！STPの仕様と検証結果の記事をまとめました！</a>」</li>
</ul>
</dd>
</dl>
<p></p>
<h2 id="syn-toc1">拡張システムID(spanning-tree extend system-id)とは</h2>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2020/01/business-44-min-1.jpg" alt="" width="640" height="426" class="aligncenter size-full wp-image-2210" srcset="https://if-network.com/wp-content/uploads/2020/01/business-44-min-1.jpg 640w, https://if-network.com/wp-content/uploads/2020/01/business-44-min-1-300x200.jpg 300w, https://if-network.com/wp-content/uploads/2020/01/business-44-min-1-600x400.jpg 600w" sizes="(max-width: 640px) 100vw, 640px" /><br />
まずは「<span class="blue b">拡張システムID(spanning-tree extend system-id)</span>」について解説いたします。<br />
<br />
まず以下の図にて「通常時のブリッジID構成」と「拡張システムID 有効時のブリッジID 構成」を確認してみましょう。<br />
<img decoding="async" src="https://if-network.com/wp-content/uploads/2020/02/extend_system-id-01.jpg" alt="STP 拡張システムID①" width="753" height="428" class="aligncenter size-full wp-image-2412" srcset="https://if-network.com/wp-content/uploads/2020/02/extend_system-id-01.jpg 753w, https://if-network.com/wp-content/uploads/2020/02/extend_system-id-01-300x171.jpg 300w" sizes="(max-width: 753px) 100vw, 753px" /></p>
<p>上記の通り<span class="synx-marker is-green ">拡張システムID(spanning-tree extend system-id)を有効化すると、元々ブリッジプライオリティとして利用されていたフィールド(16bit)が4bitに縮小し、代わりに「拡張システムID(12bit)」が加わっている事が確認出来ると思います。</span><br />
<span class="blue b">※拡張システムID(12bit)はVLAN IDの値が挿入されます。</span></p>
<h3 id="syn-toc2">【補足】 拡張システムID有効時のブリッジプライオリティ値の制約</h3>
<p>では、拡張システムID有効時の「ブリッジプライオリティ値の制約」について、解説いたします。<br />
<br />
拡張システムIDを有効化するとブリッジプライオリティは先頭2bitでしか表現出来なくなりますので、<span class="blue b">ブリッジプライオリティは4096の倍数でしか設定する事ができなくなります。</span><br />
</p>
<p class="is-style-triangle is-color04">
SW1(config)#do show running-config | inc spanning-tree extend<br />
spanning-tree extend system-id  // ← 拡張システムIDが有効化になっている事を意味します。
</p>
<p>
<span class="synx-marker is-green "><span class="black b">▼ 例：拡張システムIDの有効化時に登録可能なブリッジプライオリティ値▼</span></span></p>
<p class="is-style-triangle is-color04">
SW1(config)#spanning-tree vlan 5 priority 1<br />
 // ↓↓↓↓ 以下の通り4096の倍数した設定できないという警告メッセージが出力<br />
% Bridge Priority must be in increments of 4096.<br />
% Allowed values are:<br />
0 4096 8192 12288 16384 20480 24576 28672<br />
32768 36864 40960 45056 49152 53248 57344 61440
</p>
<p>
では、次章にて拡張システムID値の確認方法について解説いたします。</p>
<h2 id="syn-toc3">拡張システムID(spanning-tree extend system-id)の確認コマンド</h2>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2020/01/business-40-min.jpg" alt="" width="640" height="427" class="aligncenter size-full wp-image-2191" srcset="https://if-network.com/wp-content/uploads/2020/01/business-40-min.jpg 640w, https://if-network.com/wp-content/uploads/2020/01/business-40-min-300x200.jpg 300w, https://if-network.com/wp-content/uploads/2020/01/business-40-min-600x400.jpg 600w" sizes="(max-width: 640px) 100vw, 640px" /><br />
拡張システムIDの値は「<span class="blue b">show spanning-tree コマンドのBridge ID Priority(sys-id-ext)で確認する事が可能</span>」です。<br />
<br />
では、以下のサンプルを用いて詳細を解説いたします。<br />
<br />
<span class="synx-marker is-green "><span class="black b">▼ 例： SW1のshow spanning-tree コマンドの結果 (VLAN5)▼</span></span></p>
<p class="is-style-triangle is-color04">
SW1#show spanning-tree vlan 5<br />
VLAN0005<br />
  Spanning tree enabled protocol ieee<br />
  Root ID    Priority    8197<br />
             Address     xxxx.xxxx.3333<br />
             Cost        100<br />
             Port        1 (Ethernet0/0)<br />
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec<br />
<br />
　Bridge ID  Priority    32773  (priority 32768 sys-id-ext 5)   // ← ブリッジプライオリティ(32768) + 拡張システムID(5)[VLAN番号]を意味します。<br />
             Address     xxxx.xxxx.1111<br />
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec<br />
             Aging Time  15sec<br />
Interface           Role Sts Cost      Prio.Nbr Type<br />
——————- —- — ——— ——– ——————————–<br />
Et0/0               Root FWD 100       128.1    Shr<br />
Et0/1               Desg FWD 100       128.2    Shr<br />
Et0/2               Desg FWD 100       128.3    Shr<br />
Et0/3               Desg FWD 100       128.4    Shr
</p>
<p>
では、上記サンプルにて「拡張システムIDの値」を確認していきましょう！<br />
まずは「<span class="black b">Bridge ID Priority 32773 (priority 32768 sys-id-ext 5)</span>」を注目してみて下さい。<br />
<br />
本サンプルのスイッチではブリッジプライオリティが32768、VLAN IDは5で設定しております。<br />
従いまして、拡張システムIDの値は5(VLAN IDと同値)になります。</p>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2020/02/extend_system-id-02.jpg" alt="STP 拡張システムID②" width="752" height="246" class="aligncenter size-full wp-image-2413" srcset="https://if-network.com/wp-content/uploads/2020/02/extend_system-id-02.jpg 752w, https://if-network.com/wp-content/uploads/2020/02/extend_system-id-02-300x98.jpg 300w" sizes="(max-width: 752px) 100vw, 752px" /></p>
<h2 id="syn-toc4">拡張システムID(spanning-tree extend system-id)の設定方法</h2>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2020/01/business-43-min.jpg" alt="" width="640" height="427" class="aligncenter size-full wp-image-2194" srcset="https://if-network.com/wp-content/uploads/2020/01/business-43-min.jpg 640w, https://if-network.com/wp-content/uploads/2020/01/business-43-min-300x200.jpg 300w, https://if-network.com/wp-content/uploads/2020/01/business-43-min-600x400.jpg 600w" sizes="(max-width: 640px) 100vw, 640px" /><br />
では、最後に拡張システムIDの設定方法は以下の通りです。</p>
<h3 id="syn-toc5">拡張システムIDの有効化設定</h3>
<p>拡張システムIDを有効化する場合は「<span class="blue b">spanning-tree extend system-idコマンド</span>」で設定する事が可能です。</p>
<p class="is-style-triangle is-color04">
【設定コマンド】<br />
　SW(config)# spanning-tree extend system-id<br />
※Cisco機器ではデフォルトで有効化されております。
</p>
<h3 id="syn-toc6">拡張システムIDの無効化設定</h3>
<p>拡張システムIDを無効化する場合は「<span class="blue b">no spanning-tree extend system-idコマンド</span>」で設定する事が可能です。</p>
<p class="is-style-triangle is-color04">
【設定コマンド】<br />
　SW(config)# no spanning-tree extend system-id<br />
※機種により無効化できない場合がございます。無効化する際は事前に検証して頂く事をオススメします。
</p>
<h2 id="syn-toc7">まとめ</h2>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2020/01/business-30-min.jpg" alt="" width="640" height="427" class="aligncenter size-full wp-image-2160" srcset="https://if-network.com/wp-content/uploads/2020/01/business-30-min.jpg 640w, https://if-network.com/wp-content/uploads/2020/01/business-30-min-300x200.jpg 300w, https://if-network.com/wp-content/uploads/2020/01/business-30-min-600x400.jpg 600w" sizes="(max-width: 640px) 100vw, 640px" /><br />
最後までお読み頂きましてありがとうございます。<br />
<br />
その他STPに関する記事も以下に纏めておりますので、ご興味のある方はぜひご覧下さい。</p>
<dl class="synx-block-dl is-style-outline">
<dt class="synx-block-dl__dt">▼ オススメの記事 ▼</dt>
<dd class="synx-block-dl__dd">
<ul class="synx-list-dot">
<li>参考記事：「<a href="https://if-network.com/network-engineer-book/">CCIEが語る!ネットワークエンジニアにオススメな本・参考書!</a>」 </li>
<li>参考記事：「<a href="https://if-network.com/stp-summary/">STPの基本〜応用まで！STPの仕様と検証結果の記事をまとめました！</a>」</li>
</ul>
</dd>
</dl>
<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ループガードの設定方法/設定例(spanning-tree guard loop)【検証】</title>
		<link>https://if-network.com/stp-lab-loopguard/</link>
		
		<dc:creator><![CDATA[CHa]]></dc:creator>
		<pubDate>Mon, 11 Nov 2019 04:49:36 +0000</pubDate>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[PR]]></category>
		<category><![CDATA[STP]]></category>
		<category><![CDATA[技術勉強]]></category>
		<category><![CDATA[ccna]]></category>
		<category><![CDATA[ccnp]]></category>
		<category><![CDATA[cisco]]></category>
		<guid isPermaLink="false">https://if-network.com/?p=1038</guid>

					<description><![CDATA[ループガードの設定方法・正常性確認方法を纏めております。]]></description>
										<content:encoded><![CDATA[<p>本記事ではSTPのループガードの設定変更についてご紹介させて頂きます。[br num=&#8221;1&#8243;]</p>
<div class="box_style box_style_blue">
<div class="box_inner">
<div class="box_style_title"><span class="box_style_title_inner">▼ あなたにオススメな記事 ▼</span></div>
<p><span class="blue b">>>参考記事： </span>「<a href="https://if-network.com/stp-summary/">STPの基本〜応用まで！STPの仕様と検証結果の記事をまとめました！</a>」
</div>
</div>
<h2 id="syn-toc1">【ループガード 設定方法/設定例】検証前提</h2>
<p>設定要件及び検証ネットワークは以下の通りです。</p>
<h3 id="syn-toc2">設定要件</h3>
<p>以下の要件に基づきSTPの設定を実装する。</p>
<ul>
<li>IEEE802.1Dで標準化されている機能を利用する事。(STPを利用する)</li>
<li>SW3にてループガードを有効化する事。</li>
</ul>
<h3 id="syn-toc3">ネットワーク図</h3>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2019/11/stp-lab-loopguard.jpg" alt="ループガードの検証" width="802" height="294" class="aligncenter size-full wp-image-1043" srcset="https://if-network.com/wp-content/uploads/2019/11/stp-lab-loopguard.jpg 802w, https://if-network.com/wp-content/uploads/2019/11/stp-lab-loopguard-300x110.jpg 300w, https://if-network.com/wp-content/uploads/2019/11/stp-lab-loopguard-768x282.jpg 768w" sizes="(max-width: 802px) 100vw, 802px" /></p>
<h2 id="syn-toc4">【ループガード 設定方法/設定例】事前確認</h2>
<p>検証前の各機器の設定内容及び各種ログは以下の通りです。</p>
<h3 id="syn-toc5">SW1設定確認</h3>
<div class="box_style box_style05">SW1#show running-config | inc spanning-tree<br />
spanning-tree mode pvst<br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 4096</div>
<div class="box_style box_style05"><span>SW1#show spanning-tree vlan 5 <span class="Apple-converted-space">             </span></span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol ieee</span><br />
<span><span class="Apple-converted-space">  </span>Root ID<span class="Apple-converted-space">    </span>Priority<span class="Apple-converted-space">    4101</span><span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ルートブリッジのプライオリティ(4096 + 5[VLAN番号])</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx</span>.xxxx.1111<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;SW1がルートブリッジ</span></span></span><br />
<span><span class="Apple-converted-space">             </span>This bridge is the root<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;SW1がルートブリッジ</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    4101</span><span class="Apple-converted-space">      </span>(priority 0 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;指定ポート</span></span></span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;指定ポート</span></span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr </span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr </span></div>
<div class="box_style box_style05"><span>SW1#show vlan brief<span class="Apple-converted-space"> </span></span><br />
<span>VLAN Name <span class="Apple-converted-space">                            </span>Status<span class="Apple-converted-space">    </span>Ports</span><br />
<span>&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span><br />
<span>1<span class="Apple-converted-space">    </span>default<span class="Apple-converted-space">                          </span>active <span class="Apple-converted-space">   </span></span><br />
<span>5<span class="Apple-converted-space">    </span>vlan5<span class="Apple-converted-space">                            </span>active<span class="Apple-converted-space">    </span>Et0/0, Et0/1, Et0/2, Et0/3</span></div>
<h3 id="syn-toc6">SW2設定確認</h3>
<div class="box_style box_style05">SW2#show running-config | inc spanning-tree<br />
spanning-tree mode pvst<br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 4096</div>
<div class="box_style box_style05">
<p><span>SW2#show spanning-tree vlan 5</span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol ieee</span><br />
<span><span class="Apple-converted-space">  </span>Root ID<span class="Apple-converted-space">    </span>Priority<span class="Apple-converted-space">    4101<span class="yellow">&lt;&#8212;ルートブリッジのプライオリティ(4096 + 5[VLAN番号])</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111<span class="yellow">&lt;&#8212;SW1がルートブリッジ</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Cost<span class="Apple-converted-space">        </span>100</span><br />
<span><span class="Apple-converted-space">             </span>Port<span class="Apple-converted-space">        </span>2 (Ethernet0/1)</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span></p>
<p><span><span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>4101 <span class="Apple-converted-space">  </span>(priority 4096 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.2222</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>15<span class="Apple-converted-space">  </span>sec</span></p>
<p><span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr </span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Root  FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ルートポート(Cost:100)</span></span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;指定ポート(Cost:100)</span></span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr </span></p>
</div>
<div class="box_style box_style05"><span>SW2#show vlan brief </span><br />
<span>VLAN Name <span class="Apple-converted-space">                            </span>Status<span class="Apple-converted-space">    </span>Ports</span><br />
<span>&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span><br />
<span>1<span class="Apple-converted-space">    </span>default<span class="Apple-converted-space">                          </span>active <span class="Apple-converted-space">   </span></span><br />
<span>5<span class="Apple-converted-space">    </span>vlan5<span class="Apple-converted-space">                            </span>active<span class="Apple-converted-space">    </span>Et0/0, Et0/1, Et0/2, Et0/3</span></div>
<h3 id="syn-toc7">SW3設定確認</h3>
<div class="box_style box_style05">SW3#show running-config | inc spanning-tree<br />
spanning-tree mode pvst<br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 8192</div>
<div class="box_style box_style05">
<p><span>SW3#show spanning-tree vlan 5 </span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol ieee</span><br />
<span><span class="Apple-converted-space">  </span>Root ID<span class="Apple-converted-space">    </span>Priority<span class="Apple-converted-space">    4101<span class="yellow">&lt;&#8212;ルートブリッジのプライオリティ(4096 + 5[VLAN番号])</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111<span class="yellow">&lt;&#8212;SW1がルートブリッジ</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Cost<span class="Apple-converted-space">        </span>100</span><br />
<span><span class="Apple-converted-space">             </span>Port<span class="Apple-converted-space">        </span>1 (Ethernet0/0)</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><span><br />
<span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>8197 <span class="Apple-converted-space">  </span>(priority 8192 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.3333</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Root FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ルートポート(Cost:100)</span></span> </span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr</span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Altn BLK 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ブロックポート(Cost:100)</span></span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr </span></p>
</div>
<div class="box_style box_style05"><span>SW3#show vlan brief </span><br />
<span>VLAN Name <span class="Apple-converted-space">                            </span>Status<span class="Apple-converted-space">    </span>Ports</span><br />
<span>&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span><br />
<span>1<span class="Apple-converted-space">    </span>default<span class="Apple-converted-space">                          </span>active <span class="Apple-converted-space">   </span></span><br />
<span>5<span class="Apple-converted-space">    </span>vlan5<span class="Apple-converted-space">                            </span>active<span class="Apple-converted-space">    </span>Et0/0, Et0/1, Et0/2, Et0/3</span></div>
<h2 id="syn-toc8">【ループガード 設定方法/設定例】設定変更作業(spanning-tree guard loop)</h2>
<p>・SW3にてブロッキングポート(e0/2)にループガードを設定する。</p>
<div class="box_style box_style05">【設定コマンド】<br />
SW3(config)#int e0/2<br />
SW3(config-if)# spanning-tree guard loop</div>
<p>・ループガードが機能しているか確認する為に、SW2のSW3向けポート(e0/2)にBPDUフィルターを設定する。</p>
<div class="box_style box_style05">【設定コマンド】<br />
SW2(config)#int e0/2<br />
SW2(config-if)# spanning-tree bpdufilter enable</div>
<p>・SW3にて以下のログが出力され、ブロッキングポート(e0/2)がループガードにて「loop-inconsistent 状態」へ遷移する事を確認する。</p>
<div class="box_style box_style05">【出力ログ】<br />
*Nov 10 09:08:11.807: %SPANTREE-2-LOOPGUARD_BLOCK: Loop guard blocking port Ethernet0/2 on VLAN0005.<span><span class="Apple-converted-space"><span class="yellow">&lt;&#8212;左記のログはBPDUを受信出来なかった為、loop-inconsistent状態になった事を意味する。</span></span></span></div>
<h2 id="syn-toc9">【ループガード 設定方法/設定例】正常性確認</h2>
<p>要件通り設定変更がされているか確認します。</p>
<h3 id="syn-toc10">SW1設定確認</h3>
<div class="box_style box_style05">SW1#show running-config | inc spanning-tree<br />
spanning-tree mode pvst<br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 4096</div>
<div class="box_style box_style05">
<p><span>SW1#show spanning-tree vlan 5</span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol ieee</span><br />
<span><span class="Apple-converted-space">  Root ID    Priority    4101</span></span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>This bridge is the root</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span></p>
<p><span><span class="Apple-converted-space">  Bridge ID  Priority    4101</span><span class="Apple-converted-space">      </span>(priority 4096 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span></p>
<p><span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span></p>
</div>
<h3 id="syn-toc11">SW2設定確認</h3>
<div class="box_style box_style05">SW2#show running-config | inc spanning-tree<br />
spanning-tree mode pvst<br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 4096</div>
<div class="box_style box_style05"><span>SW2#show spanning-tree vlan 5</span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol ieee</span><br />
<span><span class="Apple-converted-space">  Root ID    Priority    4101</span></span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>Cost<span class="Apple-converted-space">        </span>100</span><br />
<span><span class="Apple-converted-space">             </span>Port<span class="Apple-converted-space">        </span>2 (Ethernet0/1)</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>4101 <span class="Apple-converted-space">  </span>(priority 4096 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.2222</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Root FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span></div>
<h3 id="syn-toc12">SW3設定確認</h3>
<div class="box_style box_style05">SW3#show running-config | inc spanning-tree<br />
spanning-tree mode pvst<br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 8192<br />
<span><span class="Apple-converted-space"> </span>spanning-tree guard loop<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ループガードが有効化になっている事を確認する。</span></span></span></div>
<div></div>
<div class="box_style box_style05">
<p><span>SW3#show spanning-tree vlan 5</span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol ieee</span><br />
<span><span class="Apple-converted-space">  Root ID    Priority    4101</span></span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>Cost<span class="Apple-converted-space">        </span>99</span><br />
<span><span class="Apple-converted-space">             </span>Port<span class="Apple-converted-space">        </span>1 (Ethernet0/0)</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span></p>
<p><span><span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>8197 <span class="Apple-converted-space">  </span>(priority 8192 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.3333</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span></p>
<p><span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span></p>
<p><span>Et0/0 <span class="Apple-converted-space">              </span>Root FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span></p>
<p><span>Et0/2 <span class="Apple-converted-space">              </span>Desg BKN*100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr *LOOP_Inc<span class="Apple-converted-space"> <span class="yellow">&lt;&#8212;loop-inconsistent状態になった事を意味する</span></span></span></p>
<p><span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span></p>
</div>
<div class="box_style box_style05">
<p><span>SW3#show spanning-tree int e0/2 detail | inc Loop</span></p>
<p><span><span class="Apple-converted-space"> </span>Port 3 (Ethernet0/2) of VLAN0005 is broken<span class="Apple-converted-space">  </span>(Loop Inconsistent)<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;loop-inconsistent状態になった事を意味する</span></span></span></p>
<p><span><span class="Apple-converted-space">   </span>Loop guard is enabled on the port<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ループガードが有効化になっている事を確認する。</span></span></span></p>
</div>
<h2 id="syn-toc13">【ループガード 設定方法/設定例】まとめ</h2>
<p>最後までお読み頂きましてありがとうございます。[br num=&#8221;1&#8243;]<br />
指定ポートの設定変更方法について以下の点は理解しておきましょう！</p>
<div class="p10 bdr_blue">
<span class="line-blue">▼ループガードの設定方法▼ </span><br />
・L2機器全体でループガードを有効化する場合(グローバルで有効化)</p>
<div class="box_style box_style05">【設定コマンド】<br />
SW(config)# spanning-tree loopguard default</div>
<p>・各ポート単位でループガードを有効化する場合(各ポートで有効化)</p>
<div class="box_style box_style05">【設定コマンド】<br />
SW(config)# interface [インターフェース名&amp;番号]<br />
SW(config-if)# spanning-tree guard loop</div>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ルートガードの設定方法/設定例(spanning-tree guard root)【検証】</title>
		<link>https://if-network.com/stp-lab-rootguard/</link>
		
		<dc:creator><![CDATA[CHa]]></dc:creator>
		<pubDate>Mon, 11 Nov 2019 04:34:57 +0000</pubDate>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[PR]]></category>
		<category><![CDATA[STP]]></category>
		<category><![CDATA[技術勉強]]></category>
		<category><![CDATA[ccna]]></category>
		<category><![CDATA[ccnp]]></category>
		<category><![CDATA[cisco]]></category>
		<guid isPermaLink="false">https://if-network.com/?p=1034</guid>

					<description><![CDATA[ルートガードの設定方法・正常性確認方法を纏めております。]]></description>
										<content:encoded><![CDATA[<p>本記事ではSTPのルートガードの設定変更についてご紹介させて頂きます。[br num=&#8221;1&#8243;]</p>
<div class="box_style box_style_blue">
<div class="box_inner">
<div class="box_style_title"><span class="box_style_title_inner">▼ あなたにオススメな記事 ▼</span></div>
<p><span class="blue b">>>参考記事： </span>「<a href="https://if-network.com/stp-summary/">STPの基本〜応用まで！STPの仕様と検証結果の記事をまとめました！</a>」
</div>
</div>
<h2 id="syn-toc1">【ルートガード 設定方法/設定例】検証前提</h2>
<p>設定要件及び検証ネットワークは以下の通りです。</p>
<h3 id="syn-toc2">設定要件</h3>
<p>以下の要件に基づきSTPの設定を実装する。</p>
<ul>
<li>IEEE802.1Dで標準化されている機能を利用する事。(STPを利用する)</li>
<li>SW3のe0/1ポートにて上位BPDUを受信した場合、root-inconsistent 状態へする事。</li>
</ul>
<h3 id="syn-toc3">ネットワーク図</h3>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2019/11/stp-lab-rootguard.jpg" alt="ルートガードの検証" width="967" height="288" class="aligncenter size-full wp-image-1041" srcset="https://if-network.com/wp-content/uploads/2019/11/stp-lab-rootguard.jpg 967w, https://if-network.com/wp-content/uploads/2019/11/stp-lab-rootguard-300x89.jpg 300w, https://if-network.com/wp-content/uploads/2019/11/stp-lab-rootguard-768x229.jpg 768w" sizes="(max-width: 967px) 100vw, 967px" /></p>
<h2 id="syn-toc4">【ルートガード 設定方法/設定例】事前確認</h2>
<p>検証前の各機器の設定内容及び各種ログは以下の通りです。</p>
<h3 id="syn-toc5">SW1設定確認</h3>
<div class="box_style box_style05">SW1#show running-config | inc spanning-tree<br />
spanning-tree mode pvst<br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 4096</div>
<div class="box_style box_style05"><span>SW1#show spanning-tree vlan 5 <span class="Apple-converted-space">             </span></span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol ieee</span><br />
<span><span class="Apple-converted-space">  </span>Root ID<span class="Apple-converted-space">    </span>Priority<span class="Apple-converted-space">    4101</span><span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ルートブリッジのプライオリティ(4096 + 5[VLAN番号])</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx</span>.xxxx.1111<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;SW1がルートブリッジ</span></span></span><br />
<span><span class="Apple-converted-space">             </span>This bridge is the root<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;SW1がルートブリッジ</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    4101</span><span class="Apple-converted-space">      </span>(priority 0 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;指定ポート</span></span></span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;指定ポート</span></span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr </span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr </span></div>
<div class="box_style box_style05"><span>SW1#show vlan brief<span class="Apple-converted-space"> </span></span><br />
<span>VLAN Name <span class="Apple-converted-space">                            </span>Status<span class="Apple-converted-space">    </span>Ports</span><br />
<span>&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span><br />
<span>1<span class="Apple-converted-space">    </span>default<span class="Apple-converted-space">                          </span>active <span class="Apple-converted-space">   </span></span><br />
<span>5<span class="Apple-converted-space">    </span>vlan5<span class="Apple-converted-space">                            </span>active<span class="Apple-converted-space">    </span>Et0/0, Et0/1, Et0/2, Et0/3</span></div>
<h3 id="syn-toc6">SW2設定確認</h3>
<div class="box_style box_style05">SW2#show running-config | inc spanning-tree<br />
spanning-tree mode pvst<br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 4096</div>
<div class="box_style box_style05">
<p><span>SW2#show spanning-tree vlan 5</span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol ieee</span><br />
<span><span class="Apple-converted-space">  </span>Root ID<span class="Apple-converted-space">    </span>Priority<span class="Apple-converted-space">    4101<span class="yellow">&lt;&#8212;ルートブリッジのプライオリティ(4096 + 5[VLAN番号])</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111<span class="yellow">&lt;&#8212;SW1がルートブリッジ</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Cost<span class="Apple-converted-space">        </span>100</span><br />
<span><span class="Apple-converted-space">             </span>Port<span class="Apple-converted-space">        </span>2 (Ethernet0/1)</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span></p>
<p><span><span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>4101 <span class="Apple-converted-space">  </span>(priority 4096 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.2222</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>15<span class="Apple-converted-space">  </span>sec</span></p>
<p><span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr </span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Root  FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ルートポート(Cost:100)</span></span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;指定ポート(Cost:100)</span></span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr </span></p>
</div>
<div class="box_style box_style05"><span>SW2#show vlan brief </span><br />
<span>VLAN Name <span class="Apple-converted-space">                            </span>Status<span class="Apple-converted-space">    </span>Ports</span><br />
<span>&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span><br />
<span>1<span class="Apple-converted-space">    </span>default<span class="Apple-converted-space">                          </span>active <span class="Apple-converted-space">   </span></span><br />
<span>5<span class="Apple-converted-space">    </span>vlan5<span class="Apple-converted-space">                            </span>active<span class="Apple-converted-space">    </span>Et0/0, Et0/1, Et0/2, Et0/3</span></div>
<h3 id="syn-toc7">SW3設定確認</h3>
<div class="box_style box_style05">SW3#show running-config | inc spanning-tree<br />
spanning-tree mode pvst<br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 8192</div>
<div class="box_style box_style05">
<p><span>SW3#show spanning-tree vlan 5 </span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol ieee</span><br />
<span><span class="Apple-converted-space">  </span>Root ID<span class="Apple-converted-space">    </span>Priority<span class="Apple-converted-space">    4101<span class="yellow">&lt;&#8212;ルートブリッジのプライオリティ(4096 + 5[VLAN番号])</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111<span class="yellow">&lt;&#8212;SW1がルートブリッジ</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Cost<span class="Apple-converted-space">        </span>100</span><br />
<span><span class="Apple-converted-space">             </span>Port<span class="Apple-converted-space">        </span>1 (Ethernet0/0)</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><span><br />
<span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>8197 <span class="Apple-converted-space">  </span>(priority 8192 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.3333</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Root FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ルートポート(Cost:100)</span></span> </span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr</span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Altn BLK 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ブロックポート(Cost:100)</span></span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr </span></p>
</div>
<div class="box_style box_style05"><span>SW3#show vlan brief </span><br />
<span>VLAN Name <span class="Apple-converted-space">                            </span>Status<span class="Apple-converted-space">    </span>Ports</span><br />
<span>&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span><br />
<span>1<span class="Apple-converted-space">    </span>default<span class="Apple-converted-space">                          </span>active <span class="Apple-converted-space">   </span></span><br />
<span>5<span class="Apple-converted-space">    </span>vlan5<span class="Apple-converted-space">                            </span>active<span class="Apple-converted-space">    </span>Et0/0, Et0/1, Et0/2, Et0/3</span></div>
<h2 id="syn-toc8">【ルートガード 設定方法/設定例】設定変更作業(spanning-tree guard root)</h2>
<p>・SW3にて新規SW向けのポート(e0/1)にルートガードを設定する。</p>
<div class="box_style box_style05">【設定コマンド】<br />
SW3(config)#int e0/1<br />
SW3(config-if)#spanning-tree guard root<br />
*Nov 10 08:37:05.170: %SPANTREE-2-ROOTGUARD_CONFIG_CHANGE: Root guard enabled on port Ethernet0/1. <span><span class="Apple-converted-space"><span class="yellow">&lt;&#8212;左記のログはルートガードが有効化された事を意味する。</span></span></span></div>
<p>・UserSW(ブリッジプライオリティ:0)をSW3のe0/1へ接続すると、以下のようなログが出力する事。</p>
<div class="box_style box_style05">【出力ログ】<br />
SW3#<br />
*Nov 10 08:39:03.585: %SPANTREE-2-ROOTGUARD_BLOCK: Root guard blocking port Ethernet0/1 on VLAN0005.<span><span class="Apple-converted-space"><span class="yellow">&lt;&#8212;上位BPDUを受信した事により、ルートガードにてroot-inconsistent状態になった事を確認</span></span></span></div>
<h2 id="syn-toc9">【ルートガード 設定方法/設定例】正常性確認</h2>
<p>要件通り設定変更がされているか確認します。</p>
<h3 id="syn-toc10">SW1設定確認</h3>
<div class="box_style box_style05">SW1#show running-config | inc spanning-tree<br />
spanning-tree mode pvst<br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 4096</div>
<div class="box_style box_style05">
<p><span>SW1#show spanning-tree vlan 5</span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol ieee</span><br />
<span><span class="Apple-converted-space">  Root ID    Priority    4101</span></span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>This bridge is the root</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span></p>
<p><span><span class="Apple-converted-space">  Bridge ID  Priority    4101</span><span class="Apple-converted-space">      </span>(priority 4096 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span></p>
<p><span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span></p>
</div>
<h3 id="syn-toc11">SW2設定確認</h3>
<div class="box_style box_style05">SW2#show running-config | inc spanning-tree<br />
spanning-tree mode pvst<br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 4096</div>
<div class="box_style box_style05"><span>SW2#show spanning-tree vlan 5</span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol ieee</span><br />
<span><span class="Apple-converted-space">  Root ID    Priority    4101</span></span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>Cost<span class="Apple-converted-space">        </span>100</span><br />
<span><span class="Apple-converted-space">             </span>Port<span class="Apple-converted-space">        </span>2 (Ethernet0/1)</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>4101 <span class="Apple-converted-space">  </span>(priority 4096 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.2222</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Root FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span></div>
<h3 id="syn-toc12">SW3設定確認</h3>
<div class="box_style box_style05">SW3#show running-config | inc spanning-tree<br />
spanning-tree mode pvst<br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 8192<br />
<span>spanning-tree guard root<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ルートガードが有効化になっている事を確認する。</span></span></span></div>
<div class="box_style box_style05">
<p><span>SW3#show spanning-tree vlan 5</span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol ieee</span><br />
<span><span class="Apple-converted-space">  Root ID    Priority    4101</span></span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>Cost<span class="Apple-converted-space">        </span>99</span><br />
<span><span class="Apple-converted-space">             </span>Port<span class="Apple-converted-space">        </span>1 (Ethernet0/0)</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span></p>
<p><span><span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>8197 <span class="Apple-converted-space">  </span>(priority 8192 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.3333</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span></p>
<p><span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Root FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Desg BKN*100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr *ROOT_Inc<span class="Apple-converted-space"> <span class="yellow">&lt;&#8212;root-inconsistent状態になった事を意味する</span></span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Altn BLK 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr</span></p>
</div>
<div class="box_style box_style05">
<p>SW3#show spanning-tree int e0/1 detail | inc Root<br />
Port 2 (Ethernet0/1) of VLAN0005 is broken (Root Inconsistent)<span><span class="Apple-converted-space"><span class="yellow">&lt;&#8212;root-inconsistent状態になった事を意味する</span></span></span><br />
Root guard is enabled on the port<span><span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ルートガードが有効化になっている事を確認する。</span></span></span></p>
</div>
<h2 id="syn-toc13">【ルートガード 設定方法/設定例】まとめ</h2>
<p>最後までお読み頂きましてありがとうございます。[br num=&#8221;1&#8243;]<br />
指定ポートの設定変更方法について以下の点は理解しておきましょう！</p>
<div class="p10 bdr_blue">
<span class="line-blue">▼ルートガードの有効化設定▼ </span></p>
<div class="box_style box_style05">【設定コマンド】<br />
SW(config)# interface [インターフェース名&amp;番号]<br />
SW(config-if)# spanning-tree guard root</div>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ルートガード・ループガードの仕様・設定方法を解説【CCNA】</title>
		<link>https://if-network.com/rootguard-loopguard/</link>
		
		<dc:creator><![CDATA[CHa]]></dc:creator>
		<pubDate>Sun, 10 Nov 2019 07:20:48 +0000</pubDate>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[PR]]></category>
		<category><![CDATA[STP]]></category>
		<category><![CDATA[技術勉強]]></category>
		<category><![CDATA[ccna]]></category>
		<category><![CDATA[ccnp]]></category>
		<category><![CDATA[cisco]]></category>
		<guid isPermaLink="false">https://if-network.com/?p=1011</guid>

					<description><![CDATA[STPのルートガード・ループガードの動作・設定方法について解説します。]]></description>
										<content:encoded><![CDATA[<p>本記事ではスパニングツリープロトコル(STP)の拡張機能であるルートガード・ループガードについて解説いたします。<br />
</p>
<h2 id="syn-toc1">ルートガード(Root Guard)について</h2>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2019/12/business-28-min.jpg" alt="" width="640" height="427" class="aligncenter size-full wp-image-1624" srcset="https://if-network.com/wp-content/uploads/2019/12/business-28-min.jpg 640w, https://if-network.com/wp-content/uploads/2019/12/business-28-min-300x200.jpg 300w, https://if-network.com/wp-content/uploads/2019/12/business-28-min-600x400.jpg 600w" sizes="(max-width: 640px) 100vw, 640px" /></p>
<p>ルートガード(Root Guard)とは<span class="blue b">新たに導入されたL2機器がルートブリッジになる事を防止する機能</span>です。<br />
<br />
ルートガードが設定されているポートで優先度の高いBPDU（プライオリティ値が小さいBPDU）を受信するとポートエラー(root-inconsistent 状態)へ遷移させる事ができます。<br />
root-inconsistent状態へ遷移させ通信出来なくさせる事により、意図しないL2機器がルートブリッジになる事を防止する事が可能です。</p>
<div class="box_style box_style04"><span class="line-pink"><span class="icon_point red">ポイント</span></span><br />
「root-inconsistent 状態」は一時的に通信不可状態にするだけであり、優先度の高いBPDUを受信しなくなると自動的に回復してポートエラー状態は解消されます。<br />
※ルートガードは「指定ポート」を強制する機能です。</div>
<p>
具体的には以下の図にて解説いたします！<br />
以下の図の通り、例えばルードガードが設定されていないポートに優先度の高い機器(例えば私物のL2SW)が接続された場合、ルートブリッジが切り替わっていまう可能性がございます。<br />
ルートブリッジの切り替わりにより、L2ネットワークが不安定になります。<br />
<img decoding="async" src="https://if-network.com/wp-content/uploads/2019/11/stp-rootguard-01-min.jpg" alt="ルートガードの必要性" width="882" height="249" class="aligncenter size-full wp-image-1026" srcset="https://if-network.com/wp-content/uploads/2019/11/stp-rootguard-01-min.jpg 882w, https://if-network.com/wp-content/uploads/2019/11/stp-rootguard-01-min-300x85.jpg 300w, https://if-network.com/wp-content/uploads/2019/11/stp-rootguard-01-min-768x217.jpg 768w" sizes="(max-width: 882px) 100vw, 882px" /></p>
<p>以下の図の通り、ルードガードを実装していれば、例え優先度の高い機器が接続されてもルートスイッチになる事はありません。<br />
ネットワークのトラブルを未然に防ぐ事が可能です！<br />
<img decoding="async" src="https://if-network.com/wp-content/uploads/2019/11/stp-rootguard-02-min.jpg" alt="ルートガードの仕様" width="887" height="268" class="aligncenter size-full wp-image-1027" srcset="https://if-network.com/wp-content/uploads/2019/11/stp-rootguard-02-min.jpg 887w, https://if-network.com/wp-content/uploads/2019/11/stp-rootguard-02-min-300x91.jpg 300w, https://if-network.com/wp-content/uploads/2019/11/stp-rootguard-02-min-768x232.jpg 768w" sizes="(max-width: 887px) 100vw, 887px" /><br />
BPDUガードとルートガードは非常に類義点が多いので、大きな違いを紹介いたします。<br />
</p>
<dl class="synx-block-dl is-style-outline">
<dt class="synx-block-dl__dt">BPDUガードとルートガードの相違点</dt>
<dd class="synx-block-dl__dd">
<ul class="synx-list-dot">
<li>「BPDUガード」はプライオリティ値に関わらずBPDUを受信するとポートエラー状態(err-disable)へ遷移します。</li>
<li>「ルートガード」はプライオリティ値が小さいBPDU(ルートブリッジになろうとしているBPDU)を受信するとポートエラー状態(root-inconsistent)へ遷移します。つまり、プライオリティ値が大きいBPDUの受信は許可するという事です。</li>
</ul>
</dd>
</dl>
<p>
また、エラー状態(err-disable vs root-inconsistent)も異なりますので、エラー時の挙動や復旧方法も異なる点は理解しておきましょう！</p>
<h2 id="syn-toc2">ループガード(Loop Guard)について</h2>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2020/01/business-26-min.jpg" alt="" width="640" height="453" class="aligncenter size-full wp-image-2143" srcset="https://if-network.com/wp-content/uploads/2020/01/business-26-min.jpg 640w, https://if-network.com/wp-content/uploads/2020/01/business-26-min-300x212.jpg 300w" sizes="(max-width: 640px) 100vw, 640px" /></p>
<p>ループガード(Loop Guard)は<span class="blue b">片リンク障害や誤接続等によりブロッキングポートでBPDUを受信しなくなった際にL2ループの発生を防止する機能</span>です。<br />
<br />
ループガードが設定されているポートでBPDUを受信しなかった場合、ポートエラー(loop-inconsistent 状態)へ遷移させL2ループの発生を防止します。</p>
<div class="box_style box_style04"><span class="line-pink"><span class="icon_point red">ポイント</span></span><br />
「loop-inconsistent 状態」は一時的に通信不可状態にするだけであり、再度BPDUを受信した場合自動的に回復してポートエラー状態は解消されます。<br />
また、ループガードはBPDUが受信出来ない時にルートポート・代替ポートが指定ポートへ遷移する事を防止する機能である点を理解しておきましょう！</div>
<p>
具体的には以下の図にて解説いたします！<br />
以下の図の通り、例えば光ケーブルの片リンク障害によりSW3がSW2経由でのBPDUが受信出来なかった場合、SW3は障害が発生したと認識し「ブロッキングポート」と「指定ポート」へ遷移してしまいます。<br />
結果、以下の図のようにL2ループが発生してしまいます。<br />
<img decoding="async" src="https://if-network.com/wp-content/uploads/2019/11/stp-loopguard-01-min.jpg" alt="ループガードの必要性" width="788" height="262" class="aligncenter size-full wp-image-1029" srcset="https://if-network.com/wp-content/uploads/2019/11/stp-loopguard-01-min.jpg 788w, https://if-network.com/wp-content/uploads/2019/11/stp-loopguard-01-min-300x100.jpg 300w, https://if-network.com/wp-content/uploads/2019/11/stp-loopguard-01-min-768x255.jpg 768w" sizes="(max-width: 788px) 100vw, 788px" /></p>
<p>ループガードを設定すれば、以下の図のように上記のような問題を解消する事が可能です！<br />
<img decoding="async" src="https://if-network.com/wp-content/uploads/2019/11/stp-loopguard-02-min.jpg" alt="ループガードの仕様" width="838" height="267" class="aligncenter size-full wp-image-1030" srcset="https://if-network.com/wp-content/uploads/2019/11/stp-loopguard-02-min.jpg 838w, https://if-network.com/wp-content/uploads/2019/11/stp-loopguard-02-min-300x96.jpg 300w, https://if-network.com/wp-content/uploads/2019/11/stp-loopguard-02-min-768x245.jpg 768w" sizes="(max-width: 838px) 100vw, 838px" /></p>
<h2 id="syn-toc3">ルートガードとループガードの同時設定(併用設定)について</h2>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2020/01/business-41-min-1.jpg" alt="" width="640" height="640" class="aligncenter size-full wp-image-2207" srcset="https://if-network.com/wp-content/uploads/2020/01/business-41-min-1.jpg 640w, https://if-network.com/wp-content/uploads/2020/01/business-41-min-1-300x300.jpg 300w, https://if-network.com/wp-content/uploads/2020/01/business-41-min-1-150x150.jpg 150w" sizes="(max-width: 640px) 100vw, 640px" /><br />
<span class="synx-marker is-green ">ルートガードとループガードの機能は排他的な関係にあり、双方の機能を同時に有効化する事はできません。</span><br />
なぜなら、ルートガード・ループガードは以下のような<span class="blue b">排他的な機能</span>である為です。<br />
・ルートガードは「指定ポートを強制する機能」<br />
・ループガードは「ルートポート・代替ポートが指定ポートへ遷移する事を防止する機能」<br />
<br />
ルートガードとループガードの同時設定は出来ない点は理解しておきましょう！</p>
<h2 id="syn-toc4">ルートガードとループガード 設定方法</h2>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2020/11/pc-008-min.jpg" alt="" width="640" height="425" class="aligncenter size-full wp-image-2996" srcset="https://if-network.com/wp-content/uploads/2020/11/pc-008-min.jpg 640w, https://if-network.com/wp-content/uploads/2020/11/pc-008-min-300x199.jpg 300w" sizes="(max-width: 640px) 100vw, 640px" /></p>
<p>ではルートガード・ループガードの設定方法について紹介します。</p>
<h3 id="syn-toc5">ルートガードの設定(spanning-tree guard root)</h3>
<p>ルートガードを有効化する場合は「<span class="blue b">spanning-tree guard rootコマンド</span>」で設定する事が可能です。</p>
<div class="box_style box_style05">
【設定コマンド】<br />
SW(config)# interface [インターフェース名&amp;番号]<br />
SW(config-if)# spanning-tree guard root
</div>
<p>以下の記事にて、ルートガードに関する動作検証の結果を纏めております。ご興味のある方はぜひご覧ください。</p>
<div class="box_style box_style_blue">
<div class="box_inner">
<div class="box_style_title"><span class="box_style_title_inner">▼ あなたにオススメな記事 ▼</span></div>
<p><span class="blue b">>>参考記事： </span>「<a href="https://if-network.com/stp-lab-rootguard/">【検証結果】ルートガードの設定変更や正常性確認方法を纏めました！</a>」
</div>
</div>
<h3 id="syn-toc6">ループガードの設定(spanning-tree loopguard)</h3>
<p>ループガードの有効化設定は以下の2パターンございます。<br />
・L2機器全体でループガードを有効化する場合(グローバルで有効化)</p>
<div class="box_style box_style05">
【設定コマンド】<br />
SW(config)# spanning-tree loopguard default
</div>
<p>・各ポート単位でループガードを有効化する場合(各ポートで有効化)</p>
<div class="box_style box_style05">
【設定コマンド】<br />
SW(config)# interface [インターフェース名&amp;番号]<br />
SW(config-if)# spanning-tree guard loop
</div>
<p>以下の記事にて、ループガードに関する動作検証の結果を纏めております。ご興味のある方はぜひご覧ください。</p>
<div class="box_style box_style_blue">
<div class="box_inner">
<div class="box_style_title"><span class="box_style_title_inner">▼ あなたにオススメな記事 ▼</span></div>
<p><span class="blue b">>>参考記事： </span>「<a href="https://if-network.com/stp-lab-loopguard/">【検証結果】ループガードの設定変更や正常性確認方法を纏めました！</a>」
</div>
</div>
<h2 id="syn-toc7">ルートガードとループガード まとめ</h2>
<p>最後までお読み頂きましてありがとうございます。<br />
本記事で内容を纏めましたので再度復習してみて下さいね！</p>
<div class="p10 bdr_blue">
<span class="synx-marker is-green ">▼ルートガード・ループガードの基本▼ </span></p>
<ul class="synx-list-dot">
<li>ルートガードは新たに導入されたL2機器がルートブリッジになる事を防止する機能</li>
<li>ループガードは片リンク障害等によりブロッキングポートでBPDUを受信しなくなった場合にL2ループの発生を防止する機能</li>
<li>ルートガード・ループガードの同時設定は不可</li>
</ul>
</div>
<p>
以下の記事にてSTPに関する記事を纏めておりますので、STPに関する幅広い知識を身に付けたい方はご覧下さい！</p>
<div class="box_style box_style_blue">
<div class="box_inner">
<div class="box_style_title"><span class="box_style_title_inner">▼ あなたにオススメな記事 ▼</span></div>
<p><span class="blue b">>>参考記事： </span>「<a href="https://if-network.com/stp-summary/">STPの基本〜応用まで！STPの仕様と検証結果の記事をまとめました！</a>」
</div>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>BPDUフィルターの設定方法/設定例(spanning-tree bpdufilter)【検証】</title>
		<link>https://if-network.com/stp-lab-bpdufilter/</link>
		
		<dc:creator><![CDATA[CHa]]></dc:creator>
		<pubDate>Sat, 09 Nov 2019 17:42:53 +0000</pubDate>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[PR]]></category>
		<category><![CDATA[STP]]></category>
		<category><![CDATA[技術勉強]]></category>
		<category><![CDATA[ccna]]></category>
		<category><![CDATA[cisco]]></category>
		<guid isPermaLink="false">https://if-network.com/?p=987</guid>

					<description><![CDATA[BPDUフィルターの設定方法・正常性確認方法を纏めております。]]></description>
										<content:encoded><![CDATA[<p>本記事ではBPDUフィルターの設定変更の方法についてご紹介させて頂きます。<br />
</p>
<div class="box_style box_style_blue">
<div class="box_inner">
<div class="box_style_title"><span class="box_style_title_inner">▼ あなたにオススメな記事 ▼</span></div>
<p><span class="blue b">>>参考記事： </span>「<a href="https://if-network.com/stp-summary/">STPの基本〜応用まで！STPの仕様と検証結果の記事をまとめました！</a>」
</div>
</div>
<h2 id="syn-toc1">【BPDUフィルター 設定方法/設定例】検証前提</h2>
<p>設定要件及び検証ネットワークは以下の通りです。</p>
<h3 id="syn-toc2">設定要件</h3>
<p>以下の要件に基づきBPDUガードの設定を実装する。</p>
<ul>
<li>SW1のE0/0(PC向けポート)にPortfast・BPDUフィルターを設定する事。</li>
</ul>
<h3 id="syn-toc3">ネットワーク図</h3>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2019/11/stp-lab-bpdufilter.jpg" alt="BPDUフィルターの検証" width="604" height="106" class="aligncenter size-full wp-image-990" srcset="https://if-network.com/wp-content/uploads/2019/11/stp-lab-bpdufilter.jpg 604w, https://if-network.com/wp-content/uploads/2019/11/stp-lab-bpdufilter-300x53.jpg 300w, https://if-network.com/wp-content/uploads/2019/11/stp-lab-bpdufilter-600x106.jpg 600w" sizes="(max-width: 604px) 100vw, 604px" /></p>
<h2 id="syn-toc4">【BPDUフィルター 設定方法/設定例】事前確認</h2>
<p>検証前の各機器の設定内容及び各種ログは以下の通りです。</p>
<h3 id="syn-toc5">SW1設定確認</h3>
<p>以下の通り、事前の設定値を確認します。</p>
<div class="box_style box_style05"><span>SW1#show running-config interface e0/0</span><br />
<span>interface Ethernet0/0</span><br />
<span><span class="Apple-converted-space"> </span>switchport access vlan 5</span><br />
<span><span class="Apple-converted-space"> </span>switchport mode access</span></div>
<div class="box_style box_style05"><span>SW1#show spanning-tree vlan 5 | begin Interface</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> <span class="yellow">&lt;&#8212;STPで動いている事を意味する</span></span></span></div>
<div></div>
<div class="box_style box_style05"><span>SW1#show spanning-tree interface e0/0 detail | include BPDU</span><br />
<span><span class="Apple-converted-space">   </span>BPDU: sent 221, received 0<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;BPDUフィルター設定前</span></span></span><span><span class="Apple-converted-space"><span class="yellow">のBPDU送出カウントを確認</span></span></span></p>
<p><span>〜〜数分後〜〜</span></p>
<p><span>SW1#show spanning-tree interface e0/1 detail | include BPDU</span><br />
<span><span class="Apple-converted-space">   </span>BPDU: sent 258, received 0<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;BPDU送出カウントが増えている事を確認</span></span></span></div>
<h2 id="syn-toc6">【BPDUフィルター 設定方法/設定例】設定変更作業</h2>
<p>以下の通り、Portfast及びBPDUフィルターを有効化します。</p>
<div class="box_style box_style05">【設定コマンド】<br />
<span>SW1(config)#int range e0/0</span><br />
<span>SW1(config-if)#spanning-tree portfast<span class="Apple-converted-space">  <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;Portfastの有効化</span></span></span></p>
<p><span><span class="Apple-converted-space"><span class="yellow">↓↓Portfastの設定をすると以下の警告(接続機器がSW等でないかメッセージ)が出力される。</span></span></span><br />
<span>%Warning: portfast should only be enabled on ports connected to a single host.</span><br />
<span><span class="Apple-converted-space"> </span>Connecting hubs, concentrators, switches, bridges, etc&#8230; to this interface when portfast is enabled, can cause temporary bridging loops.</span><br />
<span><span class="Apple-converted-space"> </span>Use with CAUTION</span><span>%Portfast has been configured on Ethernet0/0 but will only have effect when the interface is in a non-trunking mode.</span></p>
<p><span>SW1(config-if)#spanning-tree bpdufilter enable <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;BPDUフィルターの有効化</span></span></p>
</div>
<h2 id="syn-toc7">【BPDUフィルター 設定方法/設定例】正常性確認</h2>
<p>要件通り設定変更がされているか確認します。</p>
<h3 id="syn-toc8">SW1設定確認</h3>
<p>検証後の各機器の設定内容及び各種ログは以下の通りです。</p>
<div class="box_style box_style05">
<p><span>SW1#show running-config interface e0/0</span><br />
<span>interface Ethernet0/0</span><br />
<span> switchport access vlan 5</span><br />
<span> switchport mode access</span><br />
<span><span class="Apple-converted-space"> </span>spanning-tree portfast <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;Portfastの有効化を意味する</span></span><br />
<span><span class="Apple-converted-space"> </span>spanning-tree bpdufilter enable <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;BPDUフィルターの有効化を意味する</span></span></p>
</div>
<div class="box_style box_style05"><span style="font-size: 1.2rem;">SW1#show spanning-tree vlan 5 | begin Interface</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr Edge<span class="Apple-converted-space">  </span></span><span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;「<span>Shr Edge</span>」=Portfastの有効化を意味する</span></div>
<div class="box_style box_style05"><span>SW1#show spanning-tree interface e0/0 detail | include BPDU</span><br />
<span><span class="Apple-converted-space">   </span>BPDU: sent 301, received 0<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;BPDUフィルター設定後のBPDU送出カウントを確認</span></span></span></p>
<p><span>〜〜数分後〜〜</span></p>
<p><span>SW1#show spanning-tree interface e0/1 detail | include BPDU</span><br />
<span><span class="Apple-converted-space">   </span>BPDU: sent 301, received 0<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;BPDUフィルター設定後はBPDU送出カウントが増加していない事を確認</span></span></span></div>
<h2 id="syn-toc9">【BPDUフィルター 設定方法/設定例】まとめ</h2>
<p>最後までお読み頂きましてありがとうございます。<br />
BPDUフィルターの設定変更方法について以下の点は理解しておきましょう！</p>
<div class="p10 bdr_blue">
<span class="synx-marker is-green ">▼BPDUフィルターの設定方法はコチラ！▼ </span><br />
・Portfastが設定されている全ポートでBPDUフィルターを有効化する場合(グローバルで有効化)</p>
<div class="box_style box_style05">【設定コマンド】<br />
SW(config)# spanning-tree portfast bpdufilter default</div>
<p>・Portfastの設定問わず各ポート単位でBPDUフィルターを有効化する場合(各ポートで有効化)</p>
<div class="box_style box_style05">【設定コマンド】<br />
SW(config)# interface [インターフェース名&amp;番号]<br />
SW(config-if)# spanning-tree bpdufilter enable</div>
<p>※本記事では「各ポートでBPDUフィルターを有効化する場合」の検証について紹介しました。
</p></div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>RSTPの設定方法/設定例(spanning-tree mode rapid-pvst)【検証】</title>
		<link>https://if-network.com/stp-lab-rstp/</link>
		
		<dc:creator><![CDATA[CHa]]></dc:creator>
		<pubDate>Fri, 08 Nov 2019 15:34:05 +0000</pubDate>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[PR]]></category>
		<category><![CDATA[STP]]></category>
		<category><![CDATA[技術勉強]]></category>
		<category><![CDATA[ccna]]></category>
		<category><![CDATA[ccnp]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[RSTP]]></category>
		<guid isPermaLink="false">https://if-network.com/?p=973</guid>

					<description><![CDATA[RSTPの設定方法・正常性確認方法を纏めております。]]></description>
										<content:encoded><![CDATA[<p>本記事ではRSTPの設定変更方法についてご紹介させて頂きます。</p>
<div class="box_style box_style_blue">
<div class="box_inner">
<div class="box_style_title"><span class="box_style_title_inner">▼ あなたにオススメな記事 ▼</span></div>
<p><span class="blue b">>>参考記事： </span>「<a href="https://if-network.com/stp-summary/">STPの基本〜応用まで！STPの仕様と検証結果の記事をまとめました！</a>」
</div>
</div>
<h2 id="syn-toc1">【RSTP 設定方法/設定例】検証前提</h2>
<p>設定要件及び検証ネットワークは以下の通りです。</p>
<h3 id="syn-toc2">設定要件</h3>
<p>以下の要件に基づきSTPの設定を実装する。</p>
<ul>
<li>IEEE802.1Wで標準化されている機能を利用する事。(RSTPを利用する)</li>
<li>障害時に数秒でバックアップルートに切り替える事。</li>
</ul>
<h3 id="syn-toc3">ネットワーク図</h3>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2019/11/stp-lab-timer.jpg" alt="STPのタイマー変更" width="250" height="166" class="aligncenter size-full wp-image-873" /></p>
<h2 id="syn-toc4">【RSTP 設定方法/設定例】事前確認</h2>
<p>検証前の各機器の設定内容及び各種ログは以下の通りです。</p>
<h3 id="syn-toc5">SW1設定確認</h3>
<div class="box_style box_style05">SW1#show running-config | inc spanning-tree<br />
spanning-tree mode pvst<br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 0</div>
<div class="box_style box_style05"><span>SW1#show spanning-tree vlan 5 <span class="Apple-converted-space">             </span></span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol ieee<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;STPが有効化になっている(RSTPは無効化)</span></span></span><br />
<span><span class="Apple-converted-space">  </span>Root ID<span class="Apple-converted-space">    </span>Priority<span class="Apple-converted-space">    </span>5<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ルートブリッジのプライオリティ(0 + 5[VLAN番号])</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx</span>.xxxx.1111<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;SW1がルートブリッジ</span></span></span><br />
<span><span class="Apple-converted-space">             </span>This bridge is the root<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;SW1がルートブリッジ</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>5<span class="Apple-converted-space">      </span>(priority 0 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;指定ポート</span></span></span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;指定ポート</span></span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr </span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr </span></div>
<div class="box_style box_style05"><span>SW1#show vlan brief<span class="Apple-converted-space"> </span></span><br />
<span>VLAN Name <span class="Apple-converted-space">                            </span>Status<span class="Apple-converted-space">    </span>Ports</span><br />
<span>&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span><br />
<span>1<span class="Apple-converted-space">    </span>default<span class="Apple-converted-space">                          </span>active <span class="Apple-converted-space">   </span></span><br />
<span>5<span class="Apple-converted-space">    </span>vlan5<span class="Apple-converted-space">                            </span>active<span class="Apple-converted-space">    </span>Et0/0, Et0/1, Et0/2, Et0/3</span></div>
<h3 id="syn-toc6">SW2設定確認</h3>
<div class="box_style box_style05">SW2#show running-config | inc spanning-tree<br />
spanning-tree mode pvst<br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 4096</div>
<div class="box_style box_style05">
<p><span>SW2#show spanning-tree vlan 5</span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol ieee<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;STPが有効化になっている(RSTPは無効化)</span></span></span><br />
<span><span class="Apple-converted-space">  </span>Root ID<span class="Apple-converted-space">    </span>Priority<span class="Apple-converted-space">    </span>5<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ルートブリッジのプライオリティ(0 + 5[VLAN番号])</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111<span class="yellow">&lt;&#8212;SW1がルートブリッジ</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Cost<span class="Apple-converted-space">        </span>100</span><br />
<span><span class="Apple-converted-space">             </span>Port<span class="Apple-converted-space">        </span>2 (Ethernet0/1)</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span></p>
<p><span><span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>4101 <span class="Apple-converted-space">  </span>(priority 4096 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.2222</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>15<span class="Apple-converted-space">  </span>sec</span></p>
<p><span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr </span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Root  FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ルートポート(Cost:100)</span></span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;指定ポート(Cost:100)</span></span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr </span></p>
</div>
<div class="box_style box_style05"><span>SW2#show vlan brief </span><br />
<span>VLAN Name <span class="Apple-converted-space">                            </span>Status<span class="Apple-converted-space">    </span>Ports</span><br />
<span>&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span><br />
<span>1<span class="Apple-converted-space">    </span>default<span class="Apple-converted-space">                          </span>active <span class="Apple-converted-space">   </span></span><br />
<span>5<span class="Apple-converted-space">    </span>vlan5<span class="Apple-converted-space">                            </span>active<span class="Apple-converted-space">    </span>Et0/0, Et0/1, Et0/2, Et0/3</span></div>
<h3 id="syn-toc7">SW3設定確認</h3>
<div class="box_style box_style05">SW3#show running-config | inc spanning-tree<br />
spanning-tree mode pvst<br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 8192</div>
<div class="box_style box_style05">
<p><span>SW3#show spanning-tree vlan 5 </span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol ieee<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;STPが有効化になっている(RSTPは無効化)</span></span></span><br />
<span><span class="Apple-converted-space">  </span>Root ID<span class="Apple-converted-space">    </span>Priority<span class="Apple-converted-space">    </span>5<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ルートブリッジのプライオリティ(0 + 5[VLAN番号])</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111<span class="yellow">&lt;&#8212;SW1がルートブリッジ</span></span></span><br />
<span><span class="Apple-converted-space">             </span>Cost<span class="Apple-converted-space">        </span>100</span><br />
<span><span class="Apple-converted-space">             </span>Port<span class="Apple-converted-space">        </span>1 (Ethernet0/0)</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><span><br />
<span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>8197 <span class="Apple-converted-space">  </span>(priority 8192 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.3333</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Root FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ルートポート(Cost:100)</span></span> </span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr</span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Altn BLK 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;ブロックポート(Cost:100)</span></span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr </span></p>
</div>
<div class="box_style box_style05"><span>SW3#show vlan brief </span><br />
<span>VLAN Name <span class="Apple-converted-space">                            </span>Status<span class="Apple-converted-space">    </span>Ports</span><br />
<span>&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span><br />
<span>1<span class="Apple-converted-space">    </span>default<span class="Apple-converted-space">                          </span>active <span class="Apple-converted-space">   </span></span><br />
<span>5<span class="Apple-converted-space">    </span>vlan5<span class="Apple-converted-space">                            </span>active<span class="Apple-converted-space">    </span>Et0/0, Et0/1, Et0/2, Et0/3</span></div>
<h2 id="syn-toc8">【RSTP 設定方法/設定例】設定変更作業(spanning-tree mode rapid-pvst)</h2>
<p>・SW1,SW2,SW3にてRSTPを有効化する。</p>
<div class="box_style box_style05">【設定コマンド】<br />
SW1(config)#spanning-tree mode rapid-pvst<br />
SW2(config)#spanning-tree mode rapid-pvst<br />
SW3(config)#spanning-tree mode rapid-pvst</p>
</div>
<h2 id="syn-toc9">【RSTP 設定方法/設定例】正常性確認</h2>
<p>要件通り設定変更がされているか確認します。</p>
<h3 id="syn-toc10">SW1設定確認</h3>
<div class="box_style box_style05">SW1#show running-config | inc spanning-tree<br />
spanning-tree mode rapid-pvst <span><span class="Apple-converted-space"><span class="yellow">&lt;&#8212;RSTPが有効化になっている事</span></span></span><br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 0</div>
<div class="box_style box_style05">
<p><span>SW1#show spanning-tree vlan 5</span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol rstp <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;RSTPが有効化になっている事</span></span></span><br />
<span><span class="Apple-converted-space">  </span>Root ID<span class="Apple-converted-space">    </span>Priority<span class="Apple-converted-space">    </span>5</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>This bridge is the root</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span></p>
<p><span><span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>5<span class="Apple-converted-space">      </span>(priority 0 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span></p>
<p><span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span></p>
</div>
<h3 id="syn-toc11">SW2設定確認</h3>
<div class="box_style box_style05">SW2#show running-config | inc spanning-tree<br />
spanning-tree mode rapid-pvst <span><span class="Apple-converted-space"><span class="yellow">&lt;&#8212;RSTPが有効化になっている事</span></span></span><br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 4096</div>
<div class="box_style box_style05"><span>SW2#show spanning-tree vlan 5</span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol rstp <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;RSTPが有効化になっている事</span></span></span><br />
<span><span class="Apple-converted-space">  </span>Root ID<span class="Apple-converted-space">    </span>Priority<span class="Apple-converted-space">    </span>5</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>Cost<span class="Apple-converted-space">        </span>100</span><br />
<span><span class="Apple-converted-space">             </span>Port<span class="Apple-converted-space">        </span>2 (Ethernet0/1)</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>4101 <span class="Apple-converted-space">  </span>(priority 4096 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.2222</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Root FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span></div>
<h3 id="syn-toc12">SW3設定確認</h3>
<div class="box_style box_style05">SW3#show running-config | inc spanning-tree<br />
spanning-tree mode rapid-pvst <span><span class="Apple-converted-space"><span class="yellow">&lt;&#8212;RSTPが有効化になっている事</span></span></span><br />
spanning-tree extend system-id<br />
spanning-tree vlan 5 priority 8192<br />
spanning-tree vlan 5 cost 99</div>
<div class="box_style box_style05"><span>SW3#show spanning-tree vlan 5</span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol rstp <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;RSTPが有効化になっている事</span></span></span><br />
<span><span class="Apple-converted-space">  </span>Root ID<span class="Apple-converted-space">    </span>Priority<span class="Apple-converted-space">    </span>5</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>Cost<span class="Apple-converted-space">        </span>100</span><br />
<span><span class="Apple-converted-space">             </span>Port<span class="Apple-converted-space">        </span>1 (Ethernet0/0)</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>8197 <span class="Apple-converted-space">  </span>(priority 8192 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.3333</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Root FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Altn BLK 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span></div>
<h2 id="syn-toc13">【RSTP 設定方法/設定例】障害時の切り替え検証</h2>
<p>SW2のe0/1ポートに障害が発生した際、SW3のe0/2(代替ポート)が数秒で切り替わるか検証する。</p>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2019/11/stp-lab-rstp.jpg" alt="RSTPの検証" width="474" height="175" class="aligncenter size-full wp-image-983" srcset="https://if-network.com/wp-content/uploads/2019/11/stp-lab-rstp.jpg 474w, https://if-network.com/wp-content/uploads/2019/11/stp-lab-rstp-300x111.jpg 300w" sizes="(max-width: 474px) 100vw, 474px" /></p>
<p>まずは以下の通り、SW2・SW3にてSTPのdebugを有効化する。</p>
<div class="box_style box_style05">【切り替え試験前】<br />
<span>SW2#debug spanning-tree events <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;STP デバック有効化</span></span><br />
<span>SW3#debug spanning-tree events <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;STP デバック有効化</span></span></div>
<p>以下の通り、SW2のe0/1ポートをshutdownする。</p>
<div class="box_style box_style05">【SW2のe0/1 shutdown】<br />
SW2(config)#int e0/1<br />
SW2(config-if)#shutdown</div>
<p>以下の通り、SW2のe0/2ポートが瞬時にDP(指定ポート)からRP(ルートポート)に変わった事を確認する。</p>
<div class="box_style box_style05"><span class="yellow">↓↓↓ SW2側 debug情報</span><br />
SW2#debug spanning-tree events (一部抜粋)<br />
*Nov 8 09:58:09.398: RSTP(5): updt roles, root port Et0/1 going down <span> <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;e0/1ポート Down</span></span><br />
*Nov 8 09:58:09.398: RSTP(5): we become the root bridge<br />
*Nov 8 09:58:09.398: RSTP(5): Et0/1 not in sync<br />
*Nov 8 09:58:09.413: RSTP(5): updt roles, received superior bpdu on Et0/2<br />
*Nov 8 09:58:09.413: RSTP(5): Et0/2 is now root port<span><span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;e0/2ポートがDP(指定ポート)からRP(ルートポート)に遷移</span></span><br />
*Nov 8 09:58:09.413: STP[5]: Generating TC trap for port Ethernet0/2</div>
<p>以下の通り、SW3のe0/2ポートが瞬時にAP(代替ポート)からDP(指定ポート)に変わった事を確認する。</p>
<div class="box_style box_style05"><span class="yellow">↓↓↓ SW3側 debug情報</span><br />
SW3#debug spanning-tree events (一部抜粋)<br />
*Nov 8 09:58:09.404: RSTP(5): updt roles, received superior bpdu on Et0/2<br />
*Nov 8 09:58:09.404: RSTP(5): Et0/2 is now designated<span><span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;e0/2ポートがAP(代替ポート)からDP(指定ポート)に遷移</span></span><br />
*Nov 8 09:58:09.413: RSTP(5): transmitting a proposal on Et0/2<br />
*Nov 8 09:58:09.448: RSTP(5): transmitting a proposal on Et0/2<br />
*Nov 8 09:58:24.409: RSTP(5): Et0/2 fdwhile Expired<br />
*Nov 8 09:58:39.416: RSTP(5): Et0/2 fdwhile Expired<br />
*Nov 8 09:58:39.416: STP[5]: Generating TC trap for port Ethernet0/2</div>
<p>上記のdebug内容を踏まえ、STPのポート種別が切り替えっている事を確認する。</p>
<div class="box_style box_style05"><span>SW2#show spanning-tree vlan 5</span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol rstp</span><br />
<span><span class="Apple-converted-space">  </span>Root ID<span class="Apple-converted-space">    </span>Priority<span class="Apple-converted-space">    </span>5</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>Cost<span class="Apple-converted-space">        </span>200</span><br />
<span><span class="Apple-converted-space">             </span>Port<span class="Apple-converted-space">        </span>3 (Ethernet0/2)</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>4101 <span class="Apple-converted-space">  </span>(priority 4096 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.2222</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Root FWD 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;e0/2ポートがRPになっている事</span></span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span></div>
<div class="box_style box_style05"><span>SW3#show spanning-tree vlan 5</span><br />
<span>VLAN0005</span><br />
<span><span class="Apple-converted-space">  </span>Spanning tree enabled protocol rstp</span><br />
<span><span class="Apple-converted-space">  </span>Root ID<span class="Apple-converted-space">    </span>Priority<span class="Apple-converted-space">    </span>5</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.1111</span></span><br />
<span><span class="Apple-converted-space">             </span>Cost<span class="Apple-converted-space">        </span>100</span><br />
<span><span class="Apple-converted-space">             </span>Port<span class="Apple-converted-space">        </span>1 (Ethernet0/0)</span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">  </span>Bridge ID<span class="Apple-converted-space">  </span>Priority<span class="Apple-converted-space">    </span>8197 <span class="Apple-converted-space">  </span>(priority 8192 sys-id-ext 5)</span><br />
<span><span class="Apple-converted-space">             </span>Address <span class="Apple-converted-space">    xxxx.xxxx.3333</span></span><br />
<span><span class="Apple-converted-space">             </span>Hello Time <span class="Apple-converted-space">  </span>2 sec<span class="Apple-converted-space">  </span>Max Age 20 sec<span class="Apple-converted-space">  </span>Forward Delay 15 sec</span><br />
<span><span class="Apple-converted-space">             </span>Aging Time<span class="Apple-converted-space">  </span>300 sec</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Root FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span><br />
<span>Et0/2 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.3<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;e0/2ポートがDPになっている事</span></span></span><br />
<span>Et0/3 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.4<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> </span></span></div>
<h2 id="syn-toc14">【RSTP 設定方法/設定例】まとめ</h2>
<p>最後までお読み頂きましてありがとうございます。<br />
RSTPの設定変更方法について以下の点は理解しておきましょう！</p>
<div class="p10 bdr_blue">
<span class="synx-marker is-green ">▼RSTPの設定方法はコチラ！▼ </span></p>
<div class="box_style box_style05">【設定コマンド】<br />
SW(config)# spanning-tree mode rapid-pvst</div>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>BPDUガードの設定方法/設定例(spanning-tree bpduguard)【検証】</title>
		<link>https://if-network.com/stp-lab-bpduguard/</link>
		
		<dc:creator><![CDATA[CHa]]></dc:creator>
		<pubDate>Wed, 06 Nov 2019 16:34:43 +0000</pubDate>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[PR]]></category>
		<category><![CDATA[STP]]></category>
		<category><![CDATA[技術勉強]]></category>
		<category><![CDATA[ccna]]></category>
		<category><![CDATA[ccnp]]></category>
		<category><![CDATA[cisco]]></category>
		<guid isPermaLink="false">https://if-network.com/?p=924</guid>

					<description><![CDATA[BPDUガードの設定方法・正常性確認方法を纏めております。]]></description>
										<content:encoded><![CDATA[<p>本記事ではBPDUガードの設定変更の方法についてご紹介させて頂きます。<br />
</p>
<div class="box_style box_style_blue">
<div class="box_inner">
<div class="box_style_title"><span class="box_style_title_inner">▼ あなたにオススメな記事 ▼</span></div>
<p><span class="blue b">>>参考記事： </span>「<a href="https://if-network.com/stp-summary/">STPの基本〜応用まで！STPの仕様と検証結果の記事をまとめました！</a>」
</div>
</div>
<h2 id="syn-toc1">【BPDUガード 設定方法/設定例】検証前提</h2>
<p>設定要件及び検証ネットワークは以下の通りです。</p>
<h3 id="syn-toc2">設定要件</h3>
<p>以下の要件に基づきBPDUガードの設定を実装する。</p>
<ul>
<li>SW1のE0/0(PC向けポート)にPortfast・BPDUガードを設定する事。</li>
<li>SW1のE0/1(SW向けポート)にPortfast・BPDUガードを設定する事。</li>
<li>ポートエラー状態(err-disabled)時は自動復旧させない事。</li>
</ul>
<h3 id="syn-toc3">ネットワーク図</h3>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2019/11/stp-lab-bpduguard.jpg" alt="BPDUガードの検証" width="902" height="265" class="aligncenter size-full wp-image-925" srcset="https://if-network.com/wp-content/uploads/2019/11/stp-lab-bpduguard.jpg 902w, https://if-network.com/wp-content/uploads/2019/11/stp-lab-bpduguard-300x88.jpg 300w, https://if-network.com/wp-content/uploads/2019/11/stp-lab-bpduguard-768x226.jpg 768w" sizes="(max-width: 902px) 100vw, 902px" /></p>
<h2 id="syn-toc4">【BPDUガード 設定方法/設定例】事前確認</h2>
<p>検証前の各機器の設定内容及び各種ログは以下の通りです。</p>
<h3 id="syn-toc5">SW1設定確認</h3>
<p>以下の通り、事前の設定値を確認します。</p>
<div class="box_style box_style05">
<span>SW1#show running-config interface e0/0</span><br />
<span>interface Ethernet0/0</span><br />
<span><span class="Apple-converted-space"> </span>switchport access vlan 5</span><br />
<span><span class="Apple-converted-space"> </span>switchport mode access</span></p>
<p><span>SW1#show running-config interface e0/1</span><br />
<span>interface Ethernet0/1</span><br />
<span> switchport access vlan 5</span><br />
<span> switchport mode access</span>
</div>
<div class="box_style box_style05">
<span>SW1#show spanning-tree vlan 5 | begin Interface</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> <span class="yellow">&lt;&#8212;STPで動いている事を意味する</span></span></span><br />
<span>Et0/1 <span class="Apple-converted-space">              </span>Root FWD 100 <span class="Apple-converted-space">      </span>128.2<span class="Apple-converted-space">    </span>Shr<span class="Apple-converted-space"> <span class="yellow">&lt;&#8212;STPで動いている事を意味する</span></span></span>
</div>
<div></div>
<div class="box_style box_style05">
<span>SW1#show spanning-tree interface e0/0 detail | include BPDU</span><br />
<span><span class="Apple-converted-space">   </span>BPDU: sent 1912, received 0 <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;PC向けポートではBPDU受信カウントは0 (BPDUガードは発動しない想定)</span></span></span></p>
<p><span>SW1#show spanning-tree interface e0/1 detail | include BPDU</span><br />
<span><span class="Apple-converted-space">   </span>BPDU: sent 102, received 104 <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;SW向けポートではBPDU受信カウントは1以上(BPDUガードにてポートエラ状態になる想定)</span></span></span></p>
</div>
<h2 id="syn-toc6">【BPDUガード 設定方法/設定例】設定変更作業</h2>
<p>以下の通り、Portfast及びBPDUガードを有効化します。</p>
<div class="box_style box_style05">【設定コマンド】<br />
<span>SW1(config)#int range e0/0-1</span><br />
<span>SW1(config-if-range)#spanning-tree portfast<span class="Apple-converted-space">  <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;Portfastの有効化</span></span></span></p>
<p><span><span class="Apple-converted-space"><span class="yellow">↓↓Portfastの設定をすると以下の警告(接続機器がSW等でないかメッセージ)が出力される。</span></span></span><br />
<span>%Warning: portfast should only be enabled on ports connected to a single host.</span><br />
<span><span class="Apple-converted-space"> </span>Connecting hubs, concentrators, switches, bridges, etc&#8230; to this interface when portfast is enabled, can cause temporary bridging loops.</span><br />
<span><span class="Apple-converted-space"> </span>Use with CAUTION</span></p>
<p><span>%Portfast has been configured on Ethernet0/0 but will only have effect when the interface is in a non-trunking mode.</span></p>
<p><span>SW1(config-if-range)#spanning-tree bpduguard enable <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;BPDUガードの有効化</span></span><br />
<span><span class="Apple-converted-space"><span class="yellow">↓↓e0/1(SW向けポート)ではBPDUを受信した事により、ポートエラー状態へ遷移</span></span></span><br />
<span>*Nov<span class="Apple-converted-space">  </span>5 18:01:54.658: %SPANTREE-2-BLOCK_BPDUGUARD: Received BPDU on port Et0/1 with BPDU Guard enabled. Disabling port.</span><br />
<span>*Nov<span class="Apple-converted-space">  </span>5 18:01:54.658: %PM-4-ERR_DISABLE: bpduguard error detected on Et0/1, putting Et0/1 in err-disable state</span></div>
<h2 id="syn-toc7">【BPDUガード 設定方法/設定例】正常性確認</h2>
<p>要件通り設定変更がされているか確認します。</p>
<h3 id="syn-toc8">SW1設定確認</h3>
<p>検証後の各機器の設定内容及び各種ログは以下の通りです。</p>
<div class="box_style box_style05">
<p><span>SW1#show running-config interface e0/0</span><br />
<span>interface Ethernet0/0</span><br />
<span> switchport access vlan 5</span><br />
<span> switchport mode access</span><br />
<span><span class="Apple-converted-space"> </span>spanning-tree portfast <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;Portfastの有効化を意味する</span></span><br />
<span><span class="Apple-converted-space"> </span>spanning-tree bpduguard enable <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;BPDUガードの有効化を意味する</span></span></p>
<p><span>SW1#show running-config interface e0/1</span><br />
<span>interface Ethernet0/1</span><br />
<span> switchport access vlan 5</span><br />
<span> switchport mode access</span><br />
<span><span class="Apple-converted-space"> </span>spanning-tree portfast <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;Portfastの有効化を意味する</span></span><br />
<span><span class="Apple-converted-space"> </span>spanning-tree bpduguard enable <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;BPDUガードの有効化を意味する</span></span></p>
</div>
<div class="box_style box_style05"><span style="font-size: 1.2rem;">SW1#show spanning-tree vlan 5 | begin Interface</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr Edge<span class="Apple-converted-space">  </span></span><span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;「<span>Shr Edge</span>」=Portfastの有効化を意味する</span></div>
<div class="box_style box_style05">
<p><span>SW1#show interfaces status err-disabled<span class="Apple-converted-space"> </span></span><br />
<span>Port<span class="Apple-converted-space">      </span>Name <span class="Apple-converted-space">              </span>Status <span class="Apple-converted-space">      </span>Reason <span class="Apple-converted-space">              </span>Err-disabled Vlans</span><br />
<span>Et0/1<span class="Apple-converted-space">                        </span>err-disabled bpduguard</span><span style="font-size: 1.2rem;"> </span><span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212; e0/0のerr-disabledの原因が「BPDUガード」である事を確認</span></p>
</div>
<div class="box_style box_style05"><span>SW1#show spanning-tree interface e0/0 detail | include BPDU</span><br />
<span><span class="Apple-converted-space">   </span>BPDU: sent 2010, received 0<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;Portfast設定後のBPDU送出カウントを確認</span></span></span></p>
<p><span>SW1#show spanning-tree interface e0/1 detail | include BPDU</span><br />
<span><span class="Apple-converted-space">   </span><span class="Apple-converted-space"><span class="yellow">e0/1は<span style="color: #ffe400; font-size: 1.2rem;">err-disabled状態の為、出力されない。</span></span></span></span></div>
<h2 id="syn-toc9">【BPDUガード 設定方法/設定例】ポートエラー状態(err-disabled)からの復旧検証</h2>
<p>e0/1ポートはSW(STPが有効化されているSW)が接続されている為、Portfast及びBPDUガードを無効化する。その後、e0/1のポート復旧作業を実施する。</p>
<div class="box_style box_style05">【Portfast・BPDUガードの無効化設定】<br />
<span>SW1(config)#int e0/1</span><br />
<span>SW1(config-if)#no spanning-tree portfast<span class="Apple-converted-space">  <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;Portfastの無効化</span></span></span><br />
<span>SW1(config-if)#no spanning-tree bpduguard enable <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;BPDUガードの<span class="Apple-converted-space">無効化</span></span></span></div>
<div class="box_style box_style05">【e0/1のポート復旧設定】<br />
<span>SW1(config)#int e0/1</span><br />
<span>SW1(config-if)#shutdown<span class="Apple-converted-space"> <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;shutdownコマンドでポートエラー状態(err-disabled)を解消</span></span></span><br />
<span>SW1(config-if)#no shutdown <span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;no shutdownコマンドでポート解放</span></span></div>
<p>復旧している事を確認する</p>
<div class="box_style box_style05">
<span>SW1#show interfaces status err-disabled</span><br />
<span><span class="Apple-converted-space"> <span class="yellow">e0/1は<span style="color: #ffe400; font-size: 1.2rem;">err-disabled状態から復旧したの為、出力されない。</span></span> </span></span></p>
<p><span>SW1#show interfaces e0/1 | include line protocol</span><br />
<span>Ethernet0/1 is up, line protocol is up (connected)<span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;UPしている事を確認</span></span>
</div>
<h2 id="syn-toc10">【BPDUガード 設定方法/設定例】まとめ</h2>
<p>最後までお読み頂きましてありがとうございます。<br />
BPDUガードの設定変更方法について以下の点は理解しておきましょう！</p>
<div class="p10 bdr_blue">
<p><span class="synx-marker is-green ">▼BPDUガードの設定方法はコチラ！▼ </span><br />
・Portfastが設定されている全ポートでBPDUガードを有効化する場合(グローバルで有効化)</p>
<div class="box_style box_style05">【設定コマンド】<br />
SW(config)# spanning-tree portfast bpduguard default</div>
<p>・Portfastの設定問わず各ポート単位でBPDUガードを有効化する場合(各ポートで有効化)</p>
<div class="box_style box_style05">
【設定コマンド】<br />
SW(config)# interface [インターフェース名&amp;番号]<br />
SW(config-if)# spanning-tree bpduguard enable
</div>
<p>※本記事では「各ポートでBPDUガードを有効化する場合」の検証内容を紹介しております。</p>
</div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Portfastの設定方法/設定例(spanning-tree portfast)【検証】</title>
		<link>https://if-network.com/stp-lab-portfast/</link>
		
		<dc:creator><![CDATA[CHa]]></dc:creator>
		<pubDate>Tue, 05 Nov 2019 17:18:15 +0000</pubDate>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[PR]]></category>
		<category><![CDATA[STP]]></category>
		<category><![CDATA[技術勉強]]></category>
		<category><![CDATA[ccna]]></category>
		<category><![CDATA[ccnp]]></category>
		<category><![CDATA[cisco]]></category>
		<guid isPermaLink="false">https://if-network.com/?p=909</guid>

					<description><![CDATA[Portfastの設定方法・正常性確認方法を纏めております。]]></description>
										<content:encoded><![CDATA[<p>本記事ではPortfastの設定変更についてご紹介させて頂きます。<br />
</p>
<div class="box_style box_style_blue">
<div class="box_inner">
<div class="box_style_title"><span class="box_style_title_inner">▼ あなたにオススメな記事 ▼</span></div>
<p><span class="blue b">>>参考記事： </span>「<a href="https://if-network.com/stp-summary/">STPの基本〜応用まで！STPの仕様と検証結果の記事をまとめました！</a>」
</div>
</div>
<h2 id="syn-toc1">【Portfast 設定方法/設定例】検証前提</h2>
<p>設定要件及び検証ネットワークは以下の通りです。</p>
<h3 id="syn-toc2">設定要件</h3>
<p>以下の要件に基づきPortfastの設定を実装する。</p>
<ul>
<li>SW1のE0/0のみPortfastを有効化する事。</li>
</ul>
<h3 id="syn-toc3">ネットワーク図</h3>
<p><img decoding="async" src="https://if-network.com/wp-content/uploads/2019/11/stp-lab-portfast.jpg" alt="portfastの検証" width="605" height="125" class="aligncenter size-full wp-image-914" srcset="https://if-network.com/wp-content/uploads/2019/11/stp-lab-portfast.jpg 605w, https://if-network.com/wp-content/uploads/2019/11/stp-lab-portfast-300x62.jpg 300w, https://if-network.com/wp-content/uploads/2019/11/stp-lab-portfast-600x125.jpg 600w" sizes="(max-width: 605px) 100vw, 605px" /></p>
<h2 id="syn-toc4">【Portfast 設定方法/設定例】事前確認</h2>
<p>検証前の各機器の設定内容及び各種ログは以下の通りです。</p>
<h3 id="syn-toc5">SW1設定確認</h3>
<p>以下の通り、事前の設定値を確認します。</p>
<div class="box_style box_style05">
<p><span>SW1#show running-config interface e0/0</span></p>
<p><span>interface Ethernet0/0</span><br />
<span><span class="Apple-converted-space"> </span>switchport access vlan 5</span><br />
<span><span class="Apple-converted-space"> </span>switchport mode access</span></p>
</div>
<div class="box_style box_style05"><span style="font-size: 1.2rem;">SW1#show spanning-tree vlan 5 | begin Interface</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;STPで動いている事を意味する</span></span></span></div>
<div class="box_style box_style05">
<p><span>SW1#show spanning-tree interface e0/0 detail | include BPDU</span><br />
<span><span class="Apple-converted-space">   </span>BPDU: sent 343, received 0<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;Portfast設定前のBPDU送出カウントをログに残しておく。(作業後に比較)</span></span></span></p>
</div>
<p>Debugコマンド(debug spanning-tree events)を実行後一時的にPC向けポートを再起動し、Portfast設定前のSTPイベントを確認する。</p>
<div class="box_style box_style05">SW1#debug spanning-tree events <span style="color: #ffe400;"><span style="caret-color: #ffe400;">(一部抜粋)</span></span><br />
<span>*Nov<span class="Apple-converted-space">  </span>5 16:25:56.495: set portid: VLAN0005 Et0/0: new port id 8001</span><br />
<span>*Nov<span class="Apple-converted-space">  </span>5 16:25:56.495: STP: VLAN0005 Et0/0 -&gt; listening <span class="Apple-converted-space"><span class="yellow">&lt;&#8212;listening状態へ遷移している(Portfastが無効化されている)事を意味する</span></span></span><br />
<span>*Nov<span class="Apple-converted-space">  </span>5 16:26:11.497: STP: VLAN0005 Et0/0 -&gt; learning<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;learning状態へ遷移している(Portfastが無効化されている)事を意味する</span></span></span><br />
<span>*Nov<span class="Apple-converted-space">  </span>5 16:26:26.498: STP: VLAN0005 Et0/0 -&gt; forwarding</span></div>
<h2 id="syn-toc6">【Portfast 設定方法/設定例】設定変更作業(spanning-tree portfast)</h2>
<p>以下の通り、Portfastを有効化します。</p>
<div class="box_style box_style05">【設定コマンド】<br />
<span>SW1(config)#interface e0/0</span><br />
<span>SW1(config-if)#spanning-tree portfast</span></p>
<p><span><span class="Apple-converted-space"><span class="yellow">↓↓Portfastの設定をすると以下の警告(接続機器がSW等でないかメッセージ)が出力される。今回はPCなので無視でOK。</span></span></span><br />
<span>%Warning: portfast should only be enabled on ports connected to a single host.</span><br />
<span><span class="Apple-converted-space"> </span>Connecting hubs, concentrators, switches, bridges, etc&#8230; to this interface when portfast is enabled, can cause temporary bridging loops.</span><br />
<span><span class="Apple-converted-space"> </span>Use with CAUTION</span></p>
<p><span>%Portfast has been configured on Ethernet0/0 but will only have effect when the interface is in a non-trunking mode.</span>
</div>
<h2 id="syn-toc7">【Portfast 設定方法/設定例】正常性確認</h2>
<p>要件通り設定変更がされているか確認します。</p>
<h3 id="syn-toc8">SW1設定確認</h3>
<p>検証後の各機器の設定内容及び各種ログは以下の通りです。</p>
<div class="box_style box_style05"><span>SW1#show running-config interface e0/0</span><span>interface Ethernet0/0</span><br />
<span><span class="Apple-converted-space"> </span>switchport access vlan 5</span><br />
<span><span class="Apple-converted-space"> </span>switchport mode access</span><br />
<span><span class="Apple-converted-space"> </span>spanning-tree portfast<span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;Portfastの有効化を意味する</span></span></div>
<div class="box_style box_style05"><span style="font-size: 1.2rem;">SW1#show spanning-tree vlan 5 | begin Interface</span><br />
<span>Interface <span class="Apple-converted-space">          </span>Role Sts Cost<span class="Apple-converted-space">      </span>Prio.Nbr Type</span><br />
<span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;- &#8212; &#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span>Et0/0 <span class="Apple-converted-space">              </span>Desg FWD 100 <span class="Apple-converted-space">      </span>128.1<span class="Apple-converted-space">    </span>Shr Edge<span class="Apple-converted-space">  </span></span><span style="color: #ffe400; font-size: 1.2rem;">&lt;&#8212;「<span>Shr Edge</span>」=Portfastの有効化を意味する</span></div>
<div class="box_style box_style05">
<span>SW1#show spanning-tree interface e0/0 detail | include BPDU</span><br />
<span><span class="Apple-converted-space">   </span>BPDU: sent 360, received 0<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;Portfast設定後のBPDU送出カウントを確認</span></span></span></p>
<p>〜〜数分後〜〜</p>
<p><span>SW1#show spanning-tree interface e0/0 detail | include BPDU</span><br />
<span><span class="Apple-converted-space">   </span>BPDU: sent 398, received 0<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;Portfast設定後のBPDU送出カウントがUPしている。(Portfastの設定だけだとBPDUの送出は停止しない)</span></span></span>
</div>
<p>Debugコマンド(debug spanning-tree events)を実行後一時的にPC向けポートを再起動し、Portfast設定後のSTPイベントを確認する。</p>
<div class="box_style box_style05">SW1#debug spanning-tree events <span style="color: #ffe400;"><span style="caret-color: #ffe400;">(一部抜粋)</span></span><br />
<span>*Nov<span class="Apple-converted-space">  </span>5 16:39:42.022: set portid: VLAN0005 Et0/0: new port id 8001</span><br />
<span>*Nov<span class="Apple-converted-space">  </span>5 16:39:42.022: STP: VLAN0005 Et0/0 -&gt;jump to forwarding from blocking<span class="Apple-converted-space"><span class="yellow">&lt;&#8212;listening状態・learning状態がスキップされている事を確認</span></span></span></div>
<h2 id="syn-toc9">【Portfast 設定方法/設定例】まとめ</h2>
<p>最後までお読み頂きましてありがとうございます。<br />
STPの設定変更方法について以下の点は理解しておきましょう！</p>
<div class="p10 bdr_blue">
<p><span class="synx-marker is-green ">▼Portfastの設定方法はコチラ！▼ </span><br />
・AccessPortの全ポートでportfastを有効化する場合(グローバルで有効化)</p>
<div class="box_style box_style05">
【設定コマンド】<br />
SW(config)# spanning-tree portfast default
</div>
<p>・各ポートでportfastを有効化する場合</p>
<div class="box_style box_style05">
【設定コマンド】<br />
SW(config)# interface [インターフェース名&amp;番号]<br />
SW(config-if)# spanning-tree portfast
</div>
<p>※本記事では「各ポートでportfastを有効化する場合」の検証内容を紹介しております。</p>
</div>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
