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