From fe05be110db034e72f027315cac365f30ad61a80 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Sun, 4 Nov 2018 08:59:41 +0100 Subject: [PATCH] Unix port setup-tapif: Add bridge to TAP interface --- contrib/ports/unix/setup-tapif | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/contrib/ports/unix/setup-tapif b/contrib/ports/unix/setup-tapif index 3846e966..75a603f6 100755 --- a/contrib/ports/unix/setup-tapif +++ b/contrib/ports/unix/setup-tapif @@ -6,10 +6,14 @@ # http://backreference.org/2010/03/26/tuntap-interface-tutorial/ # After executing this script, start unixsim/simhost. -# Enter 192.168.0.2 or "http://simhost.local/" (Zeroconf) +# Enter 192.168.1.200 or "http://simhost.local/" (Zeroconf) # in your webbrowser to see simhost webpage. -sudo ip tuntap add dev tap0 mode tap user `whoami` -sudo ip link set tap0 up -sudo ip addr add 192.168.0.1/24 dev tap0 export PRECONFIGURED_TAPIF=tap0 + +sudo ip tuntap add dev $PRECONFIGURED_TAPIF mode tap user `whoami` +sudo ip link set $PRECONFIGURED_TAPIF up +sudo brctl addbr lwipbridge +sudo brctl addif lwipbridge $PRECONFIGURED_TAPIF +sudo ip addr add 192.168.1.1/24 dev lwipbridge +sudo ip link set dev lwipbridge up