update README

This commit is contained in:
Jörg Thalheim 2014-12-25 15:26:48 +01:00
parent a8ac16bbe2
commit 21faeb2fc4

29
README
View File

@ -0,0 +1,29 @@
0. Choose a Subnet/Hostname
ex: eve/172.23.75.2/32
1. Install tinc-pre
2. Clone hosts
$ mkdir /etc/tinc/evenet
$ chown $USER /etc/tinc/evenet
$ git clone gitlab@git.higgsboson.tk:Mic92/evenet.git /etc/tinc/evenet
3. Start tinc interactive mode
$ tinc -c /etc/tinc/evenet
tinc> init <HOST>
tinc> set Subnet <HOST>
tinc> set Mode switch
tinc> set Hostnames yes
tinc> set Port 666 # optional, wenn anderer Port gewünscht
tinc> add ConnectTo=eve
tinc> add ConnectTo=ohorn
tinc> exit
4. Adapt tinc-up/tinc-down
$ cp tinc-up-linux tinc-up # replace linux with your os
$ sed -i 's/%IP%/<HOST>/g' tinc-up
Linux iproute2
$ ip addr add address/prefixlength dev interface
Linux/Freebsd/OpenBSD/NetBSD/Solaris/MacOS X
$ ifconfig interface address netmask netmask
Windows
$ netsh interface ip set address interface static address netmask