Add documentation for BindToAddress.
[tinc] / 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 the Linux tun/tap device $INTERFACE is set to the right name,
6 # but for ethertap and FreeBSD this is tap0, tap1, tap2 etcetera,
7 # for Solaris and OpenBSD it is tun0, tun1, etcetera.
8
9 # Set hardware ethernet address, needed on Linux when in router mode
10 ifconfig $INTERFACE hw ether fe:fd:0:0:0:0
11
12 # Give it the right ip and netmask. Remember, the subnet of the
13 # tap device must be larger than that of the individual Subnets
14 # as defined in the host configuration file!
15 ifconfig $INTERFACE 192.168.1.1 netmask 255.255.0.0
16
17 # Disable ARP, needed on Linux when in router mode
18 ifconfig $INTERFACE -arp