Lines Matching +full:host +full:- +full:interface

13 This paragraph describes how to set up a virtual network between a (Linux) host
16 In this example, the :zephyr:code-sample:`sockets-echo-server` sample application from
18 native_sim board instance is connected to a Linux host using a tuntap device
19 which is modeled in Linux as an Ethernet network interface.
24 On the Linux Host, find the Zephyr `net-tools`_ project, which can either be
25 found in a Zephyr standard installation under the ``tools/net-tools`` directory
28 .. code-block:: console
30 git clone https://github.com/zephyrproject-rtos/net-tools
38 * Terminal #1 is terminal window with net-tools being the current
39 directory (``cd net-tools``)
45 Step 1 - Create Ethernet interface
46 ----------------------------------
48 Before starting native_sim with network emulation, a network interface
53 .. code-block:: console
55 ./net-setup.sh
57 You can tweak the behavior of the net-setup.sh script. See various options
58 by running ``net-setup.sh`` like this:
60 .. code-block:: console
62 ./net-setup.sh --help
65 Step 2 - Start app in native_sim board
66 --------------------------------------
72 .. zephyr-app-commands::
73 :zephyr-app: samples/net/sockets/echo_server
74 :host-os: unix
80 Step 3 - Connect to console (optional)
81 --------------------------------------
87 .. code-block:: console
93 .. code-block:: console
101 setup a virtual network interface on the host machine. This means that no
104 Step 1 - Start app in native_sim board
109 .. zephyr-app-commands::
110 :zephyr-app: samples/net/sockets/echo_server
111 :host-os: unix
113 :gen-args: -DEXTRA_CONF_FILE=overlay-nsos.conf
117 Step 2 - run echo-client from net-tools
120 On the Linux Host, find the Zephyr `net-tools`_ project, which can either be
121 found in a Zephyr standard installation under the ``tools/net-tools`` directory
124 .. code-block:: console
126 git clone https://github.com/zephyrproject-rtos/net-tools
131 network interface/namespace as any other (Linux) application that uses BSD
132 sockets API. This means that :zephyr:code-sample:`sockets-echo-server` and
133 ``echo-client`` applications will communicate over localhost/loopback
134 interface (address ``127.0.0.1``).
138 .. code-block:: console
140 ./echo-client 127.0.0.1
144 .. code-block:: console
146 ./echo-client -t 127.0.0.1
148 Setting interface name from command line
151 By default the Ethernet interface name used by native_sim is determined by
153 to set it from the command line using ``--eth-if=<interface_name>``.
158 .. code-block:: console
160 ./zephyr.exe --eth-if=zeth2
162 .. _`net-tools`: https://github.com/zephyrproject-rtos/net-tools