… | |
… | |
40 | |
40 | |
41 | ip set $IFNAME address $MAC mtu $MTU up |
41 | ip set $IFNAME address $MAC mtu $MTU up |
42 | ip addr add $IFNAME 10.11.12.13 |
42 | ip addr add $IFNAME 10.11.12.13 |
43 | ip route add $IFNAME 10.11.12.13/8 |
43 | ip route add $IFNAME 10.11.12.13/8 |
44 | |
44 | |
45 | Or ifconfig: |
45 | Or C<ifconfig>: |
46 | |
46 | |
47 | ifconfig $IFNAME hw ether $MAC mtu $MTU |
47 | ifconfig $IFNAME hw ether $MAC mtu $MTU |
48 | ifconfig $IFNAME 10.11.12.13 netmask 255.0.0.0 |
48 | ifconfig $IFNAME 10.11.12.13 netmask 255.0.0.0 |
49 | |
49 | |
50 | To hardwire ARP addresses, use iproute2 (ifconfig can do it, too): |
50 | To hardwire ARP addresses, use iproute2 (C<arp> can do it, too): |
51 | |
51 | |
52 | MAC=fe:fd:80:00:00:$(printf "%02x" $NODEID) |
52 | MAC=fe:fd:80:00:00:$(printf "%02x" $NODEID) |
53 | ip neighbour add 10.11.12.13 lladdr $MAC nud permanent dev $IFNAME |
53 | ip neighbour add 10.11.12.13 lladdr $MAC nud permanent dev $IFNAME |
54 | |
54 | |
55 | =head2 tincd/linux |
55 | =head2 tincd/linux |
… | |
… | |
63 | (C<http://cipe-win32.sourceforge.net/>), or (highly recommended) the newer |
63 | (C<http://cipe-win32.sourceforge.net/>), or (highly recommended) the newer |
64 | TAP-Win32 driver bundled with openvpn (http://openvpn.sf.net/). Just |
64 | TAP-Win32 driver bundled with openvpn (http://openvpn.sf.net/). Just |
65 | download and run the openvpn installer. The only option you need to select |
65 | download and run the openvpn installer. The only option you need to select |
66 | is the TAP driver. |
66 | is the TAP driver. |
67 | |
67 | |
68 | The MAC need not be set (and in fact I<cannot> be set). The |
68 | The MAC need not be set (and in fact I<cannot> be set). The MAC address |
69 | MAC address is dynamically being patched into packets and ARP-requests, so |
69 | is dynamically being patched into packets and ARP-requests, so only IPv4 |
70 | only IPv4 works with ARP on this platform. |
70 | works with ARP on this platform. |
71 | |
71 | |
72 | =head2 tincd/freebsd |
72 | =head2 tincd/freebsd |
73 | |
73 | |
74 | TAP-device; part of the kernel (since 4.x, maybe earlier). To initialize |
74 | TAP-device; part of the kernel (since 4.x, maybe earlier). To initialize |
75 | the interface, use this command: |
75 | the interface, use this command: |