X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=doc%2Fsample-config%2Ftinc-up;fp=doc%2Fsample-config%2Ftinc-up;h=8f05c4a58c60383293504378c1514161837e31fe;hp=0000000000000000000000000000000000000000;hb=462ab530e546f5732dfd51134751da6f6910d679;hpb=e64ef59df44d39c76c00dee22841bbcce7c24e47 diff --git a/doc/sample-config/tinc-up b/doc/sample-config/tinc-up new file mode 100644 index 00000000..8f05c4a5 --- /dev/null +++ b/doc/sample-config/tinc-up @@ -0,0 +1,15 @@ +#!/bin/sh +# This file sets up the tap device. +# It gives you the freedom to do anything you want with it. +# Use the correct name for the tap device: +# For the Linux tun/tap device $INTERFACE is set to the right name, +# but for ethertap and FreeBSD this is tap0, tap1, tap2 etcetera, +# for Solaris and OpenBSD it is tun0, tun1, etcetera. + +# Set hardware ethernet address (required!) +ifconfig $INTERFACE hw ether fe:fd:0:0:0:0 + +# Give it the right ip and netmask. Remember, the subnet of the +# tap device must be larger than that of the individual Subnets +# as defined in the host configuration file! +ifconfig $INTERFACE 192.168.1.1 netmask 255.255.0.0 -arp