2001-01-13 14:38:18 +00:00
|
|
|
#!/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:
|
2002-02-10 21:57:54 +00:00
|
|
|
# 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.
|
2001-01-13 14:38:18 +00:00
|
|
|
|
|
|
|
# Set hardware ethernet address (required!)
|
2002-02-10 21:57:54 +00:00
|
|
|
ifconfig $INTERFACE hw ether fe:fd:0:0:0:0
|
2001-01-13 14:38:18 +00:00
|
|
|
|
|
|
|
# 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!
|
2002-02-10 21:57:54 +00:00
|
|
|
ifconfig $INTERFACE 192.168.1.1 netmask 255.255.0.0 -arp
|