File:  [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / uboot / rc.d / 014.gif.stop
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Mon Feb 13 16:52:47 2017 UTC (7 years, 10 months ago) by misho
Branches: MAIN
CVS tags: elwix2_8, elwix2_7, elwix2_6, HEAD, ELWIX2_7, ELWIX2_6, ELWIX2_5
ELWIX 2.5

#!/bin/sh

IFACE="gif0"

TUNNEL="172.31.1.1 172.31.1.2"

OPTS="mtu 1500"
#IP="10.10.10.1/24 10.10.10.2"
IP=""

[ -z "$IFACE" ] && exit

echo "Config GIF network interface $IFACE ..."

ifconfig $IFACE create || exit
ifconfig $IFACE tunnel $TUNNEL
if [ -n "$IP" ]; then
	ifconfig $IFACE inet $IP
fi
ifconfig $IFACE $OPTS up

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>