tinc-up 656 B

123456789101112131415
  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. # Set hardware ethernet address (required!)
  9. ifconfig $INTERFACE hw ether fe:fd:0:0:0:0
  10. # Give it the right ip and netmask. Remember, the subnet of the
  11. # tap device must be larger than that of the individual Subnets
  12. # as defined in the host configuration file!
  13. ifconfig $INTERFACE 192.168.1.1 netmask 255.255.0.0 -arp