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: 이 문서에서는 VLAN을 생성하고 2401 및 2210 VRTX 스위치의 포트에 할당하는 방법에 대해 설명합니다.

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#

 

액세스 인터페이스

스위치의 액세스 인터페이스는 태그가 지정되지 않은 해당 인터페이스에 대해 하나의 VLAN을 지정합니다. 액세스 10에 대해 설정된 포트에서 수신된 모든 트래픽은 해당 트래픽을 VLAN 10에 넣습니다. 이는 하나의 VLAN만 필요한 서버 측 인터페이스에 일반적입니다. 다음 예에서는 액세스 10에 대한 서버측 인터페이스 Gigabit 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

 


트렁크 모드 인터페이스


스위치의 트렁크 인터페이스는 태그가 지정되지 않은 하나의 VLAN과 태그가 지정된 다른 모든 VLAN을 전달합니다. 이는 다른 스위치에 연결하는 인터페이스나 여러 VLAN이 필요한 VMware가 있는 서버에 일반적입니다. 이 예에서는 외부 인터페이스 Gigabit 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

 

일반 모드 인터페이스


일반 모드 인터페이스는 태그가 지정되지 않은 VLAN 1개와 태그가 지정된 여러 VLAN을 추가로 전달합니다. 일반 모드와의 차이점은 수동으로 추가할 VLAN을 지정하고 기본적으로 모든 VLAN을 자동으로 추가하지 않는다는 것입니다. 이는 VLAN 정리에 적합합니다. 이 예에서는 외부 인터페이스 Gigabit 0/4에서 일반 모드를 설정하고 VLAN 1, 10, 13, 14를 허용하지만 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.