|
(view
this code in a separate window)
#!/bin/sh
#
# Note:
# Replace tap0 with $NETNAME, if you are using universal TUN/TAP driver
#
ifconfig tap0 down
ifconfig tap0 hw ether fe:fd:00:00:00:00
# tinc interface's IP address
#
# For peer A, use:
# ifconfig tap0 192.168.1.1 netmask 255.255.255.0
#
# For peer B, use:
# ifconfig tap0 192.168.1.2 netmask 255.255.255.0
# Should not be necessary in tinc v1.0
ifconfig tap0 -arp
|