Added sample configuration directory.
[oweals/tinc.git] / doc / sample-config / tinc-up
1 #!/bin/sh
2 # This file sets up the tap device.
3 # It gives you the freedom to do anything you want with it.
4 # Use the correct name for the tap device:
5 # For ethertap this is tap0, tap1, tap2 etcetera,
6 # but for the universal tun/tap device use $NETNAME.
7
8 # Set hardware ethernet address (required!)
9 ifconfig tap0 hw ether fe:fd:0:0:0:0
10
11 # Give it the right ip and netmask. Remember, the subnet of the
12 # tap device must be larger than that of the individual Subnets
13 # as defined in the host configuration file!
14 ifconfig tap0 192.168.1.1 netmask 255.255.0.0 -arp