Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products

『PowerEdge: 2401および2210 VRTXスイッチでVLANを作成して割り当てる方法

Summary: この記事では、2401および2210 VRTXスイッチのポートにVLANを作成して割り当てる方法について説明します。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions


目次


1.  VLANの作成
2.  アクセス インターフェイス
3.  トランク モード インターフェイス
4.  一般モード インターフェイス

 

VLANの作成


スイッチにVLANを作成するには、次のコマンドを実行します。この例では、VLAN 10、13、14、15、16を使用します。

console>enable
console#configure
console(config)#vlan database
console(config-vlan)#vlan 10,13-16
console(config-vlan)#end
console#

 

アクセス インターフェイス

スイッチ上のアクセス インターフェイスは、そのインターフェイスに対して1つのVLANをタグなしで指定します。アクセス 10 用に設定されたポートで受信されたトラフィックは、そのトラフィックを VLAN 10 に配置します。これは、VLANを1つだけ必要とするサーバー側インターフェイスで一般的です。次の例では、アクセス 10 用にサーバ側インターフェイス ギガビット 1/1 を設定します。

console#config
console(config)#interface gi1/1
console(config-if)#switchport access vlan 10

アクセス構成を削除してデフォルトのVLAN 1に戻すには、次のコマンドを使用します。

console(config-if)#no switchport access vlan

 

注:LAGのVLANを構成する場合は、物理インターフェイスではなくポート チャネル インターフェイスを使用します。
console(config)#Interface port-channel 1

 


トランク モード インターフェイス


スイッチ上のトランク インターフェイスは、タグ付けされていない1つのVLANと、タグ付きの他のすべてのVLANを渡します。これは、他のスイッチに接続するインターフェイスや、複数のVLANを必要とするVMwareのサーバーでよく使用されます。この例では、外部インターフェイスのギガビット 0/4 にトランク モードを設定します。

console#config
console(config)#interface gi0/4
console(config-if)#switchport mode trunk

VLAN 1はデフォルトでタグなしVLANです。タグなしVLANを変更するには、次のコマンドを実行します。

console(config-if)#switchport trunk native vlan 10

上記のコマンドを元に戻すには、次の手順を実行します。

console(config-if)#no switchport trunk native vlan

トランク モードを元に戻すには、次の手順を実行します。

console(config-if)#no switchport mode trunk

 

注:LAGのVLANを構成する場合は、物理インターフェイスではなくポート チャネル インターフェイスを使用します。
console(config)#Interface port-channel 1

 

一般モード インターフェイス


また、一般モード インターフェイスは、1つのタグなしVLANと複数の追加のタグ付きVLANを渡します。一般モードとの違いは、手動で追加するVLANを指定することと、デフォルトではすべてのVLANが自動的に追加されないことです。これはVLANプルーニングに適しています。この例では、外部インターフェイス ギガビット 0/4 で一般モードを設定し、VLAN 1、10、13、14 を許可しますが、VLAN 15 と 16 は許可しません。

console#config
console(config)#interface gi0/4
console(config-if)#switchport mode general
console(config-if)#switchport general allowed vlan add 10,13-14 tagged

一般モードでは、デフォルトではタグなしVLANは渡されません。タグなしVLANを設定するには、タグなしVLANを追加し、PVIDを設定する必要があります。次の例では、16をタグなしとして設定します。

console(config-if)#switchport general allowed vlan add 16 untagged
console(config-if)#switchport general pvid 16

ポートからVLANを削除するには、次のコマンドを実行します。

console(config-if)#switchport general allowed vlan remove 10

を削除するには pvid コマンドで、次のコマンドを実行します。

console(config-if)#no switchport general pvid

インターフェイスから一般モードを削除するには、次の手順を実行します。

console(config-if)#no switchport mode

 

注:LAGのVLANを構成する場合は、物理インターフェイスではなくポート チャネル インターフェイスを使用します。
console(config)#Interface port-channel 1

Affected Products

POWEREDGE VRTX
Article Properties
Article Number: 000120575
Article Type: How To
Last Modified: 03 Dec 2024
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.