{"componentChunkName":"component---src-templates-post-template-js","path":"/posts/vlan-concepts","result":{"data":{"markdownRemark":{"id":"8657c54d-e585-5d6e-bec9-a03970ee9ead","html":"<p>CCNA に出題される範囲で、VLAN 関連の用語を整理しました。</p>\n<p>※ CCNA を意識した内容のため、Cisco 機器に特化した内容も含まれます。</p>\n<h2 id=\"整理した図\" style=\"position:relative;\"><a href=\"#%E6%95%B4%E7%90%86%E3%81%97%E3%81%9F%E5%9B%B3\" aria-label=\"整理した図 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>整理した図</h2>\n<p>まず最初に、整理した図を掲載しておきます。</p>\n<p><img src=\"/media/vlan.png\" alt=\"vlan\"></p>\n<p>ここから、主要な用語について解説していきます。</p>\n<h2 id=\"ポート\" style=\"position:relative;\"><a href=\"#%E3%83%9D%E3%83%BC%E3%83%88\" aria-label=\"ポート permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>ポート</h2>\n<p>ポートにはモードがあり、「アクセスポート」と「トランクポート」のどちらかを設定することになります。</p>\n<p>設定方法は以下のどちらかになります。</p>\n<ul>\n<li>(config-if)#switchport mode &#x3C;access | trunk></li>\n<li>DTP (Dynamic Trunking Protocol)</li>\n</ul>\n<p>なお、DTP は Cisco 独自のプロトコルです。</p>\n<h3 id=\"アクセスポート\" style=\"position:relative;\"><a href=\"#%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%83%9D%E3%83%BC%E3%83%88\" aria-label=\"アクセスポート permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>アクセスポート</h3>\n<p>1 つの VLAN に所属するポートです。\nPC やサーバと接続します。</p>\n<p>アクセスポートにはどの VLAN に所属するのかを設定する必要があります。\nその設定方法として、</p>\n<ul>\n<li>ポートベース VLAN (スタティック VLAN)</li>\n<li>ダイナミック VLAN</li>\n</ul>\n<p>の 2 種類があります。</p>\n<h3 id=\"トランクポート\" style=\"position:relative;\"><a href=\"#%E3%83%88%E3%83%A9%E3%83%B3%E3%82%AF%E3%83%9D%E3%83%BC%E3%83%88\" aria-label=\"トランクポート permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>トランクポート</h3>\n<p>複数の VLAN に所属するポートです。\n他のスイッチやルータと接続します。</p>\n<p>トランクポートにはトランキングプロトコルを設定する必要があります。</p>\n<p>トランキングプロトコルとしては、</p>\n<ul>\n<li>ISL (Inter-Switch Link) … Cisco 独自のプロトコル。カプセル化を行う</li>\n<li>IEEE 802.1Q … 標準化されたプロトコル。イーサネットフレームに VLAN タグを挿入する</li>\n</ul>\n<p>があります。</p>\n<p>IEEE 802.1Q を使う場合、1 つの VLAN についてはタグを挿入しないことで判別することができます。\nそのように設定した VLAN を「ネイティブ VLAN」と呼びます。</p>\n<h2 id=\"vtp-vlan-trunking-protocol\" style=\"position:relative;\"><a href=\"#vtp-vlan-trunking-protocol\" aria-label=\"vtp vlan trunking protocol permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>VTP (VLAN Trunking Protocol)</h2>\n<p>スイッチ間で VLAN の情報を同期させるための、Cisco 独自のプロトコルです。</p>\n<p>同じドメインに所属するスイッチ間で VLAN 情報の同期が行われます。</p>\n<p>また、動作モードとして「サーバー」、「クライアント」、「トランスペアレント」の 3 種類があります。</p>\n<h3 id=\"おわりに\" style=\"position:relative;\"><a href=\"#%E3%81%8A%E3%82%8F%E3%82%8A%E3%81%AB\" aria-label=\"おわりに permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>おわりに</h3>\n<p>CCNA の VLAN 関連の出題範囲では、これら意外にも SVI (Switch Virtual Interface) などの用語や実際の設定方法を学ぶ必要があります。</p>\n<p>とはいえまずは VLAN 関連の用語の全体像をつかむと理解しやすくなると思います。\nこの記事の整理が参考になれば幸いです。</p>\n<h2 id=\"参考\" style=\"position:relative;\"><a href=\"#%E5%8F%82%E8%80%83\" aria-label=\"参考 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>参考</h2>\n<h3 id=\"書籍\" style=\"position:relative;\"><a href=\"#%E6%9B%B8%E7%B1%8D\" aria-label=\"書籍 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>書籍</h3>\n<ul>\n<li><a href=\"https://amzn.to/3AVN180\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">シスコ技術者認定教科書 CCNA 完全合格テキスト＆問題集［対応試験］200 -301</a></li>\n</ul>\n<p><a href=\"https://www.amazon.co.jp/dp/B087JKL1JH?&linkCode=li1&tag=oshimayuki0d-22&linkId=cb696349f0df83565ad4ee36db9f56a2&language=ja_JP&ref_=as_li_ss_il\" target=\"_blank\"><img border=\"0\" src=\"//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=B087JKL1JH&Format=_SL110_&ID=AsinImage&MarketPlace=JP&ServiceVersion=20070822&WS=1&tag=oshimayuki0d-22&language=ja_JP\" ></a><img src=\"https://ir-jp.amazon-adsystem.com/e/ir?t=oshimayuki0d-22&amp;language=ja_JP&amp;l=li1&amp;o=9&amp;a=B087JKL1JH\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\"></p>\n<h3 id=\"web-サイト\" style=\"position:relative;\"><a href=\"#web-%E3%82%B5%E3%82%A4%E3%83%88\" aria-label=\"web サイト permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Web サイト</h3>\n<ul>\n<li><a href=\"https://www.infraexpert.com/study/vlanz2.html\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">VLAN - アクセスポートとトランクポート</a></li>\n</ul>","fields":{"slug":"/posts/vlan-concepts","tagSlugs":["/tag/network/"],"autoRecommendPosts":["ipv6-concepts","lpic-202-books","linux-learning-roadmap","routing-protocols"]},"frontmatter":{"date":"2021-10-21T09:50:13.379Z","description":"CCNA に出題される範囲で、VLAN 関連の用語を整理しました。\n※ CCNA を意識した内容のため、Cisco 機器に特化した内容も含まれます。","tags":["network"],"title":"【CCNA 対策】VLAN 関連の用語の整理","socialImage":null,"recommendPosts":null}}},"pageContext":{"slug":"/posts/vlan-concepts"}},"staticQueryHashes":["251939775","3942705351","401334301"]}