This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

Virtual Network Interface Application

Overview

This sample application creates a sample virtual network interface for demostrative 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: samples/net/virtual.

Building and Running

The net-tools project provides a configuration that can be used to create a sample tunnels in host side.

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:

west build -b <board to use> samples/net/virtual