1.. zephyr:code-sample:: lldp 2 :name: Link Layer Discovery Protocol (LLDP) 3 :relevant-api: lldp net_l2 4 5 Enable LLDP support and setup VLANs. 6 7Overview 8******** 9 10The Link Layer Discovery Protocol sample application for Zephyr will enable 11LLDP support and setup VLANs if needed. 12 13The source code for this sample application can be found at: 14:zephyr_file:`samples/net/lldp`. 15 16Requirements 17************ 18 19- :ref:`networking_with_host` 20 21Building and Running 22******************** 23 24A good way to run this sample LLDP application is inside QEMU, 25as described in :ref:`networking_with_qemu` or with embedded device like 26FRDM-K64F. Note that LLDP is only supported for boards that have an ethernet 27port. 28 29Follow these steps to build the LLDP sample application: 30 31.. zephyr-app-commands:: 32 :zephyr-app: samples/net/lldp 33 :board: <board to use> 34 :conf: prj.conf 35 :goals: build 36 :compact: 37 38Setting up Linux Host 39===================== 40 41If you need VLAN support in your network, then the 42:zephyr_file:`samples/net/vlan/vlan-setup-linux.sh` provides a script that can be 43executed on the Linux host. It creates two VLANs on the Linux host and creates 44routes to Zephyr. 45