From ed9dabe08817cee1437ff78833bf94cfb96e6f19 Mon Sep 17 00:00:00 2001 From: James Peach Date: Sun, 24 Mar 2024 11:52:34 +0000 Subject: [PATCH] contrib/ports: Add explanation to using static ip This took some figuring out, it might be obvious to those familiar with lwipcfg.h but for someone picking this up for the first time to experiment on linux, this helpful comment would have helped enormously. --- contrib/ports/unix/setup-tapif | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/ports/unix/setup-tapif b/contrib/ports/unix/setup-tapif index d5c4935d..eecc23bd 100755 --- a/contrib/ports/unix/setup-tapif +++ b/contrib/ports/unix/setup-tapif @@ -12,6 +12,9 @@ # Enter 192.168.1.200 or "http://lwip.local/" (Zeroconf) # in your webbrowser to see example_app webpage. +# N.b. you must disable USE_DHCP and USE_AUTOIP in lwipcfg.h for the static +# ip 192.168.1.200 to work in tapif + export PRECONFIGURED_TAPIF=tap0 sudo ip tuntap add dev $PRECONFIGURED_TAPIF mode tap user `whoami`