> For the complete documentation index, see [llms.txt](https://krjaeh0.gitbook.io/j-log/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krjaeh0.gitbook.io/j-log/network/routing-and-switching/vtp.md).

# VTP

* VLAN Trunking Protocol의 약자
* VLAN 정보를 동기화 하는데 사용되는 기능
* 3가지 모드: Server, Client, Transparent

## 모드 설명

{% stepper %}
{% step %}

### Server

* VLAN 설정을 공유하는 주체
* [Revision](broken://pages/dbc82795fca78905d8a046559c3f7714a76d8bb4) 값이 높은 Server 모드의 Switch를 기준으로 VLAN 설정을 공유한다.
* 공유를 위해 VTP Domain이 같아야 하며, 스위치들이 [Trunk](broken://pages/dbc82795fca78905d8a046559c3f7714a76d8bb4)로 연결되어야 한다.
  {% endstep %}

{% step %}

### Client

* 서버와 동기화, VLAN의 정보를 받아온다.
* VLAN 정보를 생성하거나 삭제할 수 없음
  {% endstep %}

{% step %}

### Transparent

* Server/Client 와 VLAN 정보를 동기화 하지 않는다.
* 단, 중간 다리 역할로 다른 Client로 Server의 VLAN 정보를 넘겨주기는 함
* Client와 달리 VLAN 정보를 생성/삭제 할 수 있지만 공유할 수는 없다.
* 완전 독립 모드
  {% endstep %}
  {% endstepper %}

## 명령어

* `vtp mode <모드>`
  * 스위치의 모드를 설정한다. (예: server, client, transparent)
* `vtp domain <이름>`
  * 스위치의 도메인 이름을 설정한다.
* `show vtp status`
  * VTP 설정 상태 확인
* 그 외
  * `vtp password` (비밀번호 설정/확인)
  * `vtp version` (VTP 버전 설정/확인)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://krjaeh0.gitbook.io/j-log/network/routing-and-switching/vtp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
