VLAN 소개 및 산업용 SIP 전화 구성

VLAN 개요

VLAN란 무엇인가

이더넷은 CSMA/CD(반송파 감지 다중 접속 및 충돌 감지) 기반의 공유 매체 네트워크 기술입니다. 다수의 호스트로 인해 심각한 충돌, 브로드캐스트 폭주, 성능 저하 및 네트워크 장애가 발생합니다. 스위치는 충돌을 줄이지만 브로드캐스트 트래픽을 격리할 수 없습니다.

VLAN(가상 근거리 통신망) 기술은 물리적 LAN을 다수의 논리적 브로드캐스트 도메인으로 분할하여 이 문제를 해결합니다. 동일 VLAN 내 기기는 마치 하나의 LAN처럼 통신하며, 서로 다른 VLAN은 직접 통신할 수 없어 브로드캐스트를 제한합니다.

VLAN 상호 연결 논리도

VLAN은 물리적 위치에 제한받지 않습니다. 기기는 동일 스위치에 연결되거나, 여러 스위치를 경유하거나, 라우터를 넘어서도 동일 VLAN에 속할 수 있습니다.

VLAN 장점:

  1. 브로드캐스트 도메인 제한, 라우팅 부하 감소, 지연 시간 단축, 대역폭 절약 및 네트워크 성능 향상

  2. 보안 강화: VLAN 간 2계층 격리. 통신 시 3계층 라우팅이 필요합니다.

  3. 유연한 가상 작업 그룹: 물리적 케이블 변경 없이 사용자를 논리적으로 그룹화할 수 있습니다.

VLAN 원리

VLAN 프레임을 식별하기 위해 데이터 링크 계층(2계층) 이더넷 헤더에 VLAN 태그를 추가합니다.

1999년 IEEE는 802.1Q 프로토콜로 VLAN 태깅을 표준화했으며, 이더넷 패킷에 VLAN 정보를 표기하는 표준 방식을 정의합니다.

802.1Q는 출처 MAC 주소와 이더타입 필드 사이에 4바이트 태그를 삽입합니다:

  • 2바이트: TPID(태그 프로토콜 식별자)

  • 2바이트: TCG(태그 제어 정보)

TCI에는 PCP(우선 순위 코드), CFI(정식 형식 표시자) 및 VID(VLAN ID)가 포함됩니다.

기존 이더넷 프레임 형식

그림 1-2 기존 이더넷 프레임 형식

VLAN 태그 구조

그림 1-3 VLAN 태그 필드

VLAN 태그 필드:

  1. TPID: 16비트, 802.1Q 태그 식별; 기본값 0x8100

  2. 우선 순위: 3비트, 802.1p 서비스 클래스(CoS)

  3. CFI: 1비트, MAC 주소 형식; 0 = 표준 형식, 기본값 0

  4. VLAN ID: 12비트, VLAN 식별; 유효 범위 1~4094(0, 4095는 예약됨)

참고: 이중 태그(QinQ) 프레임의 경우 스위치는 외부 태그만 처리하며, 내부 태그는 페이로드로 취급됩니다.

VLAN 활용

2.3.1 LLDP 소개

LLDP(링크 계층 검색 프로토콜)는 기기가 로컬 네트워크에서 이웃 기기 정보를 광고하고 수신할 수 있게 합니다. 정보는 MIB에 저장되며 SNMP로 조회할 수 있습니다(RFC 2922).

LLDP는 TLV(유형/길이/값) 구조로 기기 정보를 전달하며, 다중 TLV가 결합되어 LLDPDU를 구성합니다.

유형길이
7비트9비트0~511바이트

그림 1-4 TLV 구조

LLDP-MED(미디어 단말기 검색)는 VoIP 기기용 확장 규격으로 다음 기능을 제공합니다:

  • 기능 검색

  • 음성 VLAN 설정

  • PoE 전원 관리

  • 자산 관리

  • 긴급 통화 위치 식별

참고: 동일 포트에서 LLDP와 LLDP-MED를 동시에 실행할 수 없습니다.

IP 전화기의 LLDP 기능

LLDP를 활성화하면 전화기는 주기적으로 자기 정보를 알리고 스위치 정보를 수신합니다. 애플리케이션 유형 = 음성일 경우, 스위치에서 음성 VLAN ID를 자동으로 수신하고 설정을 갱신한 후 재시작하여 VLAN을 적용합니다.

LLDP 설정 방법(웹 관리자 화면)

  1. admin/admin 계정으로 웹 화면에 로그인합니다.

  2. 네트워크 → 고급 설정으로 이동합니다.

  3. LLDP를 활성화합니다.

  4. 전송 주기를 설정합니다(1~3600초).

  5. 적용을 클릭하고 전화기를 재시작합니다.

LLDP 설정 웹 화면

그림 1-5 LLDP 설정 화면

LLDP 활성화 후 전화기 동작:

  • 다중 전송 LLDP 패킷을 주기적으로 전송

  • WAN/LAN 포트에서 LLDP 패킷 수신

  • MAC/PHY 설정 지원

  • 네트워크 정책 TLV에서 VLAN을 수신(수동 설정보다 우선)

전화기에서 전송하는 LLDP 패킷전화기에서 수신하는 LLDP 패킷VLAN 수신 후 전송하는 LLDP 패킷

2.3.2 CDP 소개

CDP(시스코 검색 프로토콜)는 시스코 자체 2계층 프로토콜로 기기 검색에 사용됩니다.

IP 전화기의 CDP 기능
전화기는 자기 정보를 광고하고 스위치의 CDP 패킷을 수신합니다. 음성 VLAN ID를 자동으로 인식하고 설정을 업데이트한 후 재시작합니다.

CDP 설정 방법(웹 관리자 화면)

  1. admin/admin으로 로그인합니다.

  2. 네트워크 → 고급 설정으로 이동합니다.

  3. CDP를 활성화합니다.

  4. 메시지 전송 주기를 설정합니다(1~3600초).

  5. 적용을 클릭합니다.

CDP 설정 화면

그림 1-6 CDP 설정 화면

전화기에서 전송하는 CDP 패킷전화기에서 수신하는 CDP 패킷VLAN 수신 후 전송하는 CDP 패킷

2.3.3 DHCP VLAN

전화기는 DHCP 기반 VLAN 검색을 지원합니다. 기본적으로 옵션 132를 사용해 VLAN ID를 획득하며, 최대 5개의 사용자 정의 DHCP 옵션을 설정할 수 있습니다.

DHCP VLAN 설정 방법(웹 관리자 화면)

  1. admin/admin으로 로그인합니다.

  2. 네트워크 → 고급 설정으로 이동합니다.

  3. DHCP VLAN을 활성화합니다.

  4. DHCP 옵션 번호를 입력합니다(예: 132).

  5. 적용을 클릭합니다.

DHCP VLAN 설정 화면

그림 1-7 DHCP VLAN 설정 화면

작동 과정

  1. 전화기가 DHCP Discover 브로드캐스트를 전송

  2. 서버가 옵션 132(VLAN ID)를 포함해 응답

  3. 전화기가 기존 IP를 해제하고 수신한 VLAN 태그를 모든 트래픽에 적용한 후 재 DHCP 요청 실행

전화기에서 전송하는 DHCP Discover전화기가 수신하는 DHCP Offer

2.3.4 수동 VLAN 설정

VLAN은 기본적으로 비활성화 상태입니다. WAN(인터넷) 포트와 LAN(PC) 포트에 각각 VLAN ID 및 802.1p 우선 순위(0~7, 숫자가 높을수록 우선)를 개별 설정할 수 있습니다.

WAN VLAN 설정(웹 화면)

  1. admin/admin으로 로그인합니다.

  2. 네트워크 → 고급 설정으로 이동합니다.

  3. VLAN을 활성화합니다.

  4. WAN VLAN ID를 설정합니다(1~4094).

  5. 우선 순위를 설정합니다(0~7).

  6. 적용을 클릭합니다.

WAN VLAN 설정 화면

그림 1-8 WAN VLAN 설정

LAN VLAN 설정(웹 화면)

  1. admin/admin으로 로그인합니다.

  2. 네트워크 → 고급 설정으로 이동합니다.

  3. LAN VLAN 모드 및 ID를 설정합니다.

  4. 우선 순위를 설정합니다.

  5. 적용을 클릭합니다.

LAN VLAN 설정 화면

그림 1-9 LAN VLAN 설정

전화기 LCD 화면 VLAN 설정

메뉴 → 고급 설정(비밀번호:123) → 네트워크 → QoS&Vlan → WAN VLAN / LAN VLAN

WAN VLAN LCD 화면LAN VLAN LCD 화면

설정 검증
패킷 캡처를 통해 SIP 및 RTP 프레임의 802.1Q 태그, VLAN ID, 802.1p 우선 순위를 확인합니다.

패킷 캡처 화면패킷 캡처 화면

스위치 VLAN 설정

Trunk, Access, Hybrid, Tagged, Untagged 개념

이더넷 스위치 포트는 3가지 작동 모드를 지원합니다:

  • Access: 단일 VLAN에 속하며 PC 등 단말 기기에 사용

  • Trunk: 다중 VLAN 트래픽을 전달하며 스위치 간 연결에 사용

  • Hybrid: 다중 VLAN을 지원하며 사용자 정의 비태그 송신을 지원

주요 규칙

  • Tagged: 프레임 전송 시 802.1Q VLAN 태그 유지

  • Untagged: 스위치가 송신 전 VLAN 태그를 제거

  • PVID(포트 VLAN ID): 비태그 수신 프레임에 할당되는 기본 VLAN

포트 유형수신 처리송신 처리
비태그 프레임 수신태그 프레임 수신
AccessPVID 태그 추가VLAN 불일치 시 프레임 폐기태그 제거 후 전달
Trunk허용 시 PVID 태그 추가허용 VLAN일 경우 수락VLAN=PVID일 때만 태그 제거
Hybrid허용 시 PVID 태그 추가허용 VLAN일 경우 수락포트 설정에 따라 태그 유지/제거

Cisco 2960 스위치 VLAN 설정

기본 이더넷 VLAN 설정값

매개변수기본값범위
VLAN ID11~4094
VLAN 이름VLANxxxx
MTU15001500~18190
상태활성활성/일시 정지

VLAN 생성 및 수정

단계명령어설명
1configure terminal전역 설정 모드 진입
2vlan VLAN 생성/편집
3name VLAN 이름 지정
4end특권 모드로 복귀
5show vlan설정 확인
6copy running-config startup-config설정 저장

VLAN 삭제

단계명령어설명
1configure terminal전역 설정 모드 진입
2no vlan 지정 VLAN 삭제
3end설정 모드 종료
4show vlan brief삭제 여부 확인

포트를 VLAN에 할당(Access 포트)

단계명령어설명
1configure terminal전역 설정
2interface 포트 선택
3switchport mode accessAccess 포트로 지정
4switchport access vlan VLAN 할당
5end설정 종료

Trunk 포트 설정

단계명령어설명
1configure terminal전역 설정
2interface 포트 선택
3switchport mode trunkTrunk 포트로 지정
4switchport trunk native vlan 기본 VLAN 설정
5end설정 종료

Trunk 허용 VLAN 설정

switchport trunk allowed vlan { add | all | except | remove }

기본(Native) VLAN 설정

switchport trunk native vlan

적용 기기

Cisco 2960 시리즈 스위치

카탈로그
고객 서비스 전화
We use cookie to improve your online experience. By continuing to browse this website, you agree to our use of cookie.

Cookies

This Cookie Policy explains how we use cookies and similar technologies when you access or use our website and related services. Please read this Policy together with our Terms and Conditions and Privacy Policy so that you understand how we collect, use, and protect information.

By continuing to access or use our Services, you acknowledge that cookies and similar technologies may be used as described in this Policy, subject to applicable law and your available choices.

Updates to This Cookie Policy

We may revise this Cookie Policy from time to time to reflect changes in legal requirements, technology, or our business practices. When we make updates, the revised version will be posted on this page and will become effective from the date of publication unless otherwise required by law.

Where required, we will provide additional notice or request your consent before applying material changes that affect your rights or choices.

What Are Cookies?

Cookies are small text files placed on your device when you visit a website or interact with certain online content. They help websites recognize your browser or device, remember your preferences, support essential functionality, and improve the overall user experience.

In this Cookie Policy, the term “cookies” also includes similar technologies such as pixels, tags, web beacons, and other tracking tools that perform comparable functions.

Why We Use Cookies

We use cookies to help our website function properly, remember user preferences, enhance website performance, understand how visitors interact with our pages, and support security, analytics, and marketing activities where permitted by law.

We use cookies to keep our website functional, secure, efficient, and more relevant to your browsing experience.

Categories of Cookies We Use

Strictly Necessary Cookies

These cookies are essential for the operation of the website and cannot be disabled in our systems where they are required to provide the service you request. They are typically set in response to actions such as setting privacy preferences, signing in, or submitting forms.

Without these cookies, certain parts of the website may not function correctly.

Functional Cookies

Functional cookies enable enhanced features and personalization, such as remembering your preferences, language settings, or previously selected options. These cookies may be set by us or by third-party providers whose services are integrated into our website.

If you disable these cookies, some services or features may not work as intended.

Performance and Analytics Cookies

These cookies help us understand how visitors use our website by collecting information such as traffic sources, page visits, navigation behavior, and general interaction patterns. In many cases, this information is aggregated and does not directly identify individual users.

We use this information to improve website performance, usability, and content relevance.

Targeting and Advertising Cookies

These cookies may be placed by our advertising or marketing partners to help deliver more relevant ads and measure the effectiveness of campaigns. They may use information about your browsing activity across different websites and services to build a profile of your interests.

These cookies generally do not store directly identifying personal information, but they may identify your browser or device.

First-Party and Third-Party Cookies

Some cookies are set directly by our website and are referred to as first-party cookies. Other cookies are set by third-party services, such as analytics providers, embedded content providers, or advertising partners, and are referred to as third-party cookies.

Third-party providers may use their own cookies in accordance with their own privacy and cookie policies.

Information Collected Through Cookies

Depending on the type of cookie used, the information collected may include browser type, device type, IP address, referring website, pages viewed, time spent on pages, clickstream behavior, and general usage patterns.

This information helps us maintain the website, improve performance, enhance security, and provide a better user experience.

Your Cookie Choices

You can control or disable cookies through your browser settings and, where available, through our cookie consent or preference management tools. Depending on your location, you may also have the right to accept or reject certain categories of cookies, especially those used for analytics, personalization, or advertising purposes.

Please note that blocking or deleting certain cookies may affect the availability, functionality, or performance of some parts of the website.

Restricting cookies may limit certain features and reduce the quality of your experience on the website.

Cookies in Mobile Applications

Where our mobile applications use cookie-like technologies, they are generally limited to those required for core functionality, security, and service delivery. Disabling these essential technologies may affect the normal operation of the application.

We do not use essential mobile application cookies to store unnecessary personal information.

How to Manage Cookies

Most web browsers allow you to manage cookies through browser settings. You can usually choose to block, delete, or receive alerts before cookies are stored. Because browser controls vary, please refer to your browser provider’s support documentation for details on how to manage cookie settings.

Contact Us

If you have any questions about this Cookie Policy or our use of cookies and similar technologies, please contact us at support@becke.cc .