… | |
… | |
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: |
… | |
… | |
89 | |
89 | |
90 | =head2 tincd/openbsd |
90 | =head2 tincd/openbsd |
91 | |
91 | |
92 | TUN-device; already part of the kernel. See C<tincd/netbsd> for more information. |
92 | TUN-device; already part of the kernel. See C<tincd/netbsd> for more information. |
93 | |
93 | |
|
|
94 | =head2 native/darwin |
|
|
95 | |
|
|
96 | TAP-device; |
|
|
97 | |
|
|
98 | The necessary kernel extension can be found here: |
|
|
99 | |
|
|
100 | http://www-user.rhrk.uni-kl.de/~nissler/tuntap/ |
|
|
101 | |
|
|
102 | There are two drivers, the one to use is the "tap" driver. It driver must |
|
|
103 | be loaded before use, using C<kmodload>. |
|
|
104 | |
94 | =head2 tincd/darwin |
105 | =head2 tincd/darwin |
95 | |
106 | |
96 | TUN-device; See C<tincd/netbsd> for more information. |
107 | TUN-device; See C<tincd/netbsd> for more information. C<native/darwin> is |
|
|
108 | preferable. |
97 | |
109 | |
98 | The necessary kernel extension can be found here: |
110 | The necessary kernel extension can be found here: |
99 | |
111 | |
100 | http://chrisp.de/en/projects/tunnel.html |
112 | http://chrisp.de/en/projects/tunnel.html |
101 | |
113 | |
102 | A newer (and reportedly much more stable) driver that also supports TAP |
114 | The driver must be loaded before use: |
103 | operations is available here: |
|
|
104 | |
115 | |
105 | http://www-user.rhrk.uni-kl.de/~nissler/tuntap/ |
116 | kmodload tunnel |
106 | |
|
|
107 | But GVPE has not been used with it, and has not been ported to it's TAP |
|
|
108 | interface. Patches are welcome. |
|
|
109 | |
117 | |
110 | =head2 tincd/solaris |
118 | =head2 tincd/solaris |
111 | |
119 | |
112 | TUN-device; already part of the kernel. see C<tincd/netbsd> for more |
120 | TUN-device; already part of the kernel, or available here: |
|
|
121 | |
|
|
122 | http://vtun.sourceforge.net/tun/ |
|
|
123 | |
|
|
124 | Some precompiled tun drivers might be available here: |
|
|
125 | |
|
|
126 | http://www.monkey.org/~dugsong/fragroute/ |
|
|
127 | |
|
|
128 | See C<tincd/netbsd> for more information. |
|
|
129 | |
113 | information. Completely untested so far. |
130 | Completely unstested so far. |
114 | |
131 | |
115 | =head2 tincd/mingw |
132 | =head2 tincd/mingw |
116 | |
133 | |
117 | TAP-device; see C<native/cygwin> for more information. Completey untested so far. |
134 | TAP-device; see C<native/cygwin> for more information. |
|
|
135 | |
|
|
136 | Completely untested so far. |
|
|
137 | |
|
|
138 | =head2 tincd/raw_socket |
|
|
139 | |
|
|
140 | TAP-device; purpose unknown and untested, probably binds itself on an |
|
|
141 | existing ethernet device (given by C<ifname>), which should probably not |
|
|
142 | be configured in any way, except for setting it I<up>. |
|
|
143 | |
|
|
144 | =head2 tincd/uml_socket |
|
|
145 | |
|
|
146 | TAP-device; purpose unknown and untested, probably creates a unix datagram |
|
|
147 | socket (path given by C<ifname>) and reads and writes raw packets, so |
|
|
148 | might be useful in other than UML contexts. |
118 | |
149 | |
119 | =head2 tincd/cygwin |
150 | =head2 tincd/cygwin |
120 | |
151 | |
121 | Known to be broken. |
152 | Known to be broken, use C<native/cygwin> instead. |
122 | |
|
|
123 | |
153 | |
124 | =head1 SEE ALSO |
154 | =head1 SEE ALSO |
125 | |
155 | |
126 | gvpe(5). |
156 | gvpe(5). |
127 | |
157 | |