X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=doc%2Fsample-config%2Ftinc-up;h=2d8b4d6b56715822a2e4bae1f4cefa77cb0d9c43;hp=98df7638143305953cd6a92bfbb3607d7e4469c1;hb=48e353e9fdf189c4fd5fa7ebc76a72535b4f6632;hpb=b195e8815f0abb2c5527119221886b524d719019 diff --git a/doc/sample-config/tinc-up b/doc/sample-config/tinc-up index 98df7638..2d8b4d6b 100644 --- a/doc/sample-config/tinc-up +++ b/doc/sample-config/tinc-up @@ -2,13 +2,10 @@ # 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: -# For ethertap this is tap0, tap1, tap2 etcetera, -# but for the universal tun/tap device use $NETNAME. - -# Set hardware ethernet address (required!) -ifconfig tap0 hw ether fe:fd:0:0:0:0 +# The environment variable $INTERFACE is set to the right name +# on most platforms, but if it doesn't work try to set it manually. # 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! -ifconfig tap0 192.168.1.1 netmask 255.255.0.0 -arp +ifconfig $INTERFACE 192.168.1.1 netmask 255.255.0.0