# VLAN

## VLANの個別手動設定 <a href="#manually-configuring-vlans-individually" id="manually-configuring-vlans-individually"></a>

「**管理**」＞「**スイッチ**」＞「**詳細情報**」＞「**VLAN**」からこのページにアクセスできます。

「**VLAN**」タブを使用して、スイッチ上でVLANを手動設定できます。「**VLANの追加**」をクリックすると新しいVLANを追加できます。

<figure><img src="/files/b2zzt7EGn4sxsJj5P5oI" alt=""><figcaption></figcaption></figure>

追加するVLANのIDと名前を入力します。

<figure><img src="/files/N4vwO7qCkK2vBw6jIWFP" alt="" width="507"><figcaption></figcaption></figure>

編集ボタンをクリックすると、ポート割り当てが可能です。

<figure><img src="/files/sXKrnbaq8FyKzLSg5vuF" alt=""><figcaption></figcaption></figure>

「**タグ付き**」フィールドまたは「**タグなし**」フィールドをクリックして、タグ付きポート／タグなしポートを割り当てることができます。&#x20;

「T」はタグ付きデータが流れるポートを示します。

「U」はタグなしデータが流れるポートを示します。

<figure><img src="/files/lX6sYvb4Kiby6Wsafzte" alt=""><figcaption></figcaption></figure>

手動入力する場合は、鉛筆アイコンをクリックしてポート番号を入力できます。

<figure><img src="/files/jxGxY6HAtPXCj4lwOnMn" alt=""><figcaption></figcaption></figure>

「適用」をクリックして、設定を完了しください。

<figure><img src="/files/jteVeAQRwPQKPxNA1ODv" alt=""><figcaption></figcaption></figure>

## JSONファイルを使った複数VLANの一括設定 <a href="#configure-multiple-vlans-at-a-time-using-a-json-file" id="configure-multiple-vlans-at-a-time-using-a-json-file"></a>

集合住宅などのネットワーク環境では、ネットワーク管理者がユニットごとにVLANを作成する必要があり、全てのネットワークスイッチで数百のVLANを設定する場合もあります。この機能を使えば、ネットワーク管理者は、各スイッチで1つずつVLANを作成する代わりに、一括でVLANを設定することが可能です。

### VLANエクスポートとインポート <a href="#vlan-export" id="vlan-export"></a>

スイッチの現在のVLAN JSONファイルをエクスポートし、ローカルで編集できます。

<figure><img src="/files/PBgFf6TPYbIgVDttEMrn" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/RHr6DDOLkDMCFrMjVXMG" alt="" width="284"><figcaption></figcaption></figure>

編集後、「**インポート**」＞「**JSONファイルのアップロード**」をクリックしてカスタムJSONファイルをインポートします。

<figure><img src="/files/kNZfyPzYsTr57gcCkNBD" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/cJjzOOZSMHUkVtR7awle" alt="" width="374"><figcaption></figcaption></figure>

JSONファイルをインポートすることで、特定のスイッチに複数のVLANを手動でセットアップできます。

これにより、現在のWeb GUIで1つずつ編集する代わりに、VLAN設定を一括でインポートできます。手動でVLANを作成した場合、VLAN設定はオーバーライドされるのでご注意ください。

一回設定した後は、他のスイッチのVLAN設定ページでも同じテキストファイルをインポートできるため、作成を繰り返す時間を節約できます。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lan.kokomocloud.com/managing-devices/managing-switches/vlans.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
