source: azure_iot_hub_f767zi/trunk/asp_baseplatform/lwip/contrib-2.1.0/ports/unix/setup-tapif@ 457

Last change on this file since 457 was 457, checked in by coas-nagasima, 4 years ago

ファイルを追加

File size: 551 bytes
Line 
1#!/bin/bash
2
3# Run me using "source setup-tapif" to get exported PRECONFIGURED_TAPIF variable
4# Alternatively, add "export PRECONFIGURED_TAPIF=tap0" to ~/.bashrc
5
6# http://backreference.org/2010/03/26/tuntap-interface-tutorial/
7
8# After executing this script, start unixsim/simhost.
9# Enter 192.168.0.2 or "http://simhost.local/" (Zeroconf)
10# in your webbrowser to see simhost webpage.
11
12sudo ip tuntap add dev tap0 mode tap user `whoami`
13sudo ip link set tap0 up
14sudo ip addr add 192.168.0.1/24 dev tap0
15export PRECONFIGURED_TAPIF=tap0
Note: See TracBrowser for help on using the repository browser.