ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/doc/gvpe.osdep.5.pod
Revision: 1.2
Committed: Thu Jan 27 07:04:51 2005 UTC (19 years, 3 months ago) by pcg
Branch: MAIN
CVS Tags: rel-1_7
Changes since 1.1: +1 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 pcg 1.1 =head1 NAME
2    
3     gvpe.osdep - os dependent information
4    
5     =head1 DESCRIPTION
6    
7     This file tries to capture OS-dependent configuration or build issues,
8     quirks and platform limitations, as known.
9    
10     =head2 TUN vs. TAP interface
11    
12     Most operating systems nowadays support something called a
13     I<tunnel>-device, which makes it possible to divert IPv4 (and often other
14     protocols, too) into a userspace daemon like C<gvpe>. This is being
15     referred to as a TUN-device.
16    
17     This is fine for point-to-point tunnels, but for a virtual ethernet, an
18     additional ethernet header is needed. This functionality (called a TAP
19     device here) is only provided by a subset of the configurations.
20    
21     On platforms only supporting a TUN-device, gvpe will invoke it's magical
22     ethernet emulation package, which currently only handles ARP requests for
23     the IPv4 protocol (but more could be added, bu the tincd network drivers
24     might need to be modified for this to work). This means that on those
25     platforms, only IPv4 will be supported.
26    
27     Also, since there is no way (currently) to tell gvpe which IP subnets are
28     found on a specific host, you will either need to hardwire the MAC address
29     for TUN-style hosts on all networks (and avoid ARP altogether, which is
30     possible), or you need to send a packet from these hosts into the vpn
31     network to tell gvpe the local interface address.
32    
33     =head2 native/linux
34    
35     TAP-device is already part of the kernel (only 2.4 supported, but see
36     tincd/linux). This is the configuration tested best, as gvpe is being
37     developed on this platform.
38    
39     To configure the interface, use either iproute2:
40    
41     ip set $IFNAME address $MAC mtu $MTU up
42     ip addr add $IFNAME 10.11.12.13
43     ip route add $IFNAME 10.11.12.13/8
44    
45     Or ifconfig:
46    
47     ifconfig $IFNAME hw ether $MAC mtu $MTU
48     ifconfig $IFNAME 10.11.12.13 netmask 255.0.0.0
49    
50     To hardwire ARP addresses, use iproute2 (ifconfig can do it, too):
51    
52     MAC=fe:fd:80:00:00:$(printf "%02x" $NODEID)
53     ip neighbour add 10.11.12.13 lladdr $MAC nud permanent dev $IFNAME
54    
55     =head2 tincd/linux
56    
57     TAP-device is already part of the kernel (2.2 and 2.4 supported, only 2.4
58     tested). See C<native/linux> for more info.
59    
60     =head2 native/cygwin
61    
62     TAP-device. The MAC need not be set (and in fact I<cannot> be set). The
63 pcg 1.2 MAC address is dynamically being patched into packets and ARP-requests, so
64 pcg 1.1 only IPv4 works with ARP on this platform.
65    
66     The TAP device to be used must either be the CIPE driver
67     (C<http://cipe-win32.sourceforge.net/>), or the newer TAP-Win32 driver
68     bundled with openvpn (http://openvpn.sf.net/). Just download and run the
69     openvpn installer. The only option you need to select is the TAP driver.
70    
71     =head2 tincd/freebsd
72    
73     TAP-device is part of kernel (since 4.x, maybe earlier). To initialize the
74     interface, use this command:
75    
76     ifconfig $IFNAME ether $MAC mtu $MTU up
77    
78     =head2 tincd/netbsd
79    
80     TUN-device. The interface is a point to point-device. To initialize it,
81     you currently need to configure it as such, giving it an address on your
82     vpn (the exact address doesn't matter), like this:
83    
84     ifconfig $IFNAME mtu $MTU up
85     ifconfig $IFNAME 10.11.12.13 10.55.66.77
86     route add -net 10.0.0.0 10.55.66.77 255.0.0.0
87     ping -c1 10.55.66.77 # ping once to tell gvpe your gw ip
88    
89     =head2 tincd/openbsd
90    
91     TUN-device is already part of the kernel. See C<tincd/netbsd> for more information.
92    
93     =head2 tincd/darwin
94    
95     TUN-device. See C<tincd/netbsd> for more information.
96    
97     The necessary kernel extension can be found here:
98    
99     http://chrisp.de/en/projects/tunnel.html
100    
101     =head2 tincd/solaris
102    
103     TUN-device is already part of the kernel. see C<tincd/netbsd> for more information. Completey untested so far.
104    
105     =head2 tincd/mingw
106    
107     TAP-device, see C<native/cygwin> for more information. Completey untested so far.
108    
109     =head2 tincd/cygwin
110    
111     Known to be broken.
112    
113    
114     =head1 SEE ALSO
115    
116     gvpe(5).
117    
118     =head1 AUTHOR
119    
120     Marc Lehmann <gvpe@plan9.de>
121