Part 1
요약·해설
Host tunnel configuration과 board Ethernet 요구 사항을 원문 계층대로 보존합니다.
4 total
IPv4 · IPv6 · nested
IPIP
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
7DF558178D9A9B37B9C1711F1F0D33E07DC6DD580027388626F49C619726A0BD
.. zephyr:code-sample:: virtual-network-interface
:name: Virtual network interface
:relevant-api: virtual virtual_mgmt
Create a sample virtual network interface.
Overview
********
This sample application creates a sample virtual network interface for
demonstrative purposes, it does not do anything useful here.
There are total 4 network interfaces.
Ethernet network interface is providing the real network interface and
all the virtual interfaces are running on top of it.
On top of Ethernet interface there are two virtual network interfaces,
one provides only IPv6 tunnel, and the other only IPv4. These two tunnels
are provided by IPIP tunnel.
The sample provides tunnel interface which runs on top of the IPv6 tunnel.
The source code for this sample application can be found at:
:zephyr_file:`samples/net/virtual`.
Requirements
************
- :ref:`networking_with_host`
Building and Running
********************
The `net-tools`_ project provides a configuration that can be used
to create a sample tunnels in host side.
.. code-block:: console
net-setup.sh -c zeth-tunnel.conf
Note that the sample application expects that the board provides
an Ethernet network interface. Build the sample application like this:
.. zephyr-app-commands::
:zephyr-app: samples/net/virtual
:board: <board to use>
:goals: build
:compact:
.. _`net-tools`: https://github.com/zephyrproject-rtos/net-tools
Part 3
한국어 전문 번역
개요
이 sample application은 demonstration을 위해 sample virtual network interface를 생성합니다. 여기에서는 실제로 유용한 작업을 수행하지 않으며 network interface는 모두 네 개입니다.
- Ethernet network interface가 실제 network interface를 제공하며 모든 virtual interface는 그 위에서 실행됩니다.
- Ethernet interface 위에 virtual network interface 두 개가 있습니다. 하나는 IPv6 tunnel만, 다른 하나는 IPv4 tunnel만 제공합니다. 두 tunnel 모두 IPIP tunnel로 제공합니다.
- Sample은 IPv6 tunnel 위에서 실행되는 추가 tunnel interface도 제공합니다.
이 sample application의 source code는 samples/net/virtual에서 찾을 수 있습니다.
요구 사항
빌드 및 실행
net-tools project는 host side에 sample tunnel을 생성하는 데 사용할 수 있는 configuration을 제공합니다.
net-setup.sh -c zeth-tunnel.conf
Sample application은 board가 Ethernet network interface를 제공한다고 가정합니다. Application은 다음과 같이 build합니다.
west build -b <board to use> samples/net/virtual
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.