elwix 2.2
#!/bin/sh IFACE="gre0" TUNNEL="172.31.2.1 172.31.2.2" OPT="" IP="10.10.10.1/24 10.10.10.2" echo "Config GRE network interface $IFACE ..." ifconfig $IFACE create ifconfig $IFACE tunnel $TUNNEL ifconfig $IFACE inet $IP $OPT up