Part 1
요약·해설
Ethernet 제약, QEMU·FRDM 실행, Linux VLAN script와 exact build command를 보존합니다.
LLDP
Ethernet L2
VLAN
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
254C0DCA7CCF7641BC29BB423102F55E5A886BFFC33117DE88FD46D0E856EE70
.. zephyr:code-sample:: lldp
:name: Link Layer Discovery Protocol (LLDP)
:relevant-api: lldp net_l2
Enable LLDP support and setup VLANs.
Overview
********
The Link Layer Discovery Protocol sample application for Zephyr will enable
LLDP support and setup VLANs if needed.
The source code for this sample application can be found at:
:zephyr_file:`samples/net/lldp`.
Requirements
************
- :ref:`networking_with_host`
Building and Running
********************
A good way to run this sample LLDP application is inside QEMU,
as described in :ref:`networking_with_qemu` or with embedded device like
FRDM-K64F. Note that LLDP is only supported for boards that have an ethernet
port.
Follow these steps to build the LLDP sample application:
.. zephyr-app-commands::
:zephyr-app: samples/net/lldp
:board: <board to use>
:conf: prj.conf
:goals: build
:compact:
Setting up Linux Host
=====================
If you need VLAN support in your network, then the
:zephyr_file:`samples/net/vlan/vlan-setup-linux.sh` provides a script that can be
executed on the Linux host. It creates two VLANs on the Linux host and creates
routes to Zephyr.
Part 3
한국어 전문 번역
개요
Zephyr용 Link Layer Discovery Protocol(LLDP) sample application은 LLDP 지원을 활성화하고 필요하면 VLAN을 설정합니다.
Sample application source code는 samples/net/lldp에 있습니다.
요구 사항
Build와 실행
이 LLDP sample은 QEMU network 설정에 따라 QEMU 안에서 실행하거나 FRDM-K64F 같은 embedded device에서 실행하는 것이 좋습니다.
LLDP는 Ethernet port가 있는 board에서만 지원됩니다.
다음 단계로 LLDP sample application을 build합니다.
west build -b <board to use> samples/net/lldp -- -DCONF_FILE=prj.conf
Linux host 설정
Network에서 VLAN 지원이 필요하다면 samples/net/vlan/vlan-setup-linux.sh script를 Linux host에서 실행할 수 있습니다.
이 script는 Linux host에 VLAN 두 개를 만들고 Zephyr로 향하는 route를 생성합니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.