Penguin
Blame: WanDaemonHeadHowto
EditPageHistoryDiffInfoLikePages
Annotated edit history of WanDaemonHeadHowto version 6, including all changes. View license author blame.
Rev Author # Line
1 DanielLawson 1 This describes how to set up the "HEAD" branch of the Etud/wand code. This code may break at any time, so be warned.
2
3 Follow the instructions in MetaNet on getting an IP range. Use the following instructions for compiling and setting up Etud and wand, and use the instructions in MetaNet related to zebra and ospfd, and DNS and other issues.
4
5 Repeat: this document only describes how to set up the "HEAD" branch of the Etud/wand code. Its not a complete HOWTO for connecting to the MetaNet.
6
7 To check out the codebase:
6 CraigBox 8 <verbatim>
9 cvs -d:pserver:anonymous@cvs.wand.sourceforge.net:/cvsroot/wand login
10 </verbatim>
1 DanielLawson 11
12 when prompted for a password press enter.
13 Now type:
14
6 CraigBox 15 <verbatim>
16 cvs -z3 -d:pserver:anonymous@cvs.wand.sourceforge.net:/cvsroot/wand co -r HEAD wand
1 DanielLawson 17
6 CraigBox 18 cd wand
19 make
20 make install
21 </verbatim>
1 DanielLawson 22
23 Yeah, it is that easy. This should have compiled cleanly. If it hasn't, ask on the meta-admin mailing list, or find someone who knows about this on IRC to ask about why its not working. It's probably a broken CVS commit, so it should be fixed fairly quickly.
24
6 CraigBox 25 Check the config files - they are placed in /usr/local/etc by default.
1 DanielLawson 26
6 CraigBox 27 /usr/local/etc/etud.conf:
28 <verbatim>
29 daemonise true
30 module "/usr/local/lib/wand/drivers/tuntap.so"
31 macaddr "00:01:02:03:04:05"
32 udpport 22222
33 mtu 1280
34 </verbatim>
1 DanielLawson 35
6 CraigBox 36 The macaddr is IMPORTANT. Make sure you pick one that you know wont conflict with anything else *on the metanet*. We typically use the MAC of an ethernet card on the machine we run Etud on - eg, eth0. udpport is probably not needed any more, but keep it there. The only other driver you can use is 'ethertap.so' instead of 'tuntap.so' but I recommend using tuntap.so.
1 DanielLawson 37
6 CraigBox 38 /usr/local/etc/wand.conf:
1 DanielLawson 39
6 CraigBox 40 <verbatim>
41 udpport 44444
42 server "some.server.name"
43 </verbatim>
1 DanielLawson 44
45 udpport isn't needed - it defaults to 44444 anyway. you need to get the right server entry in there - get hold of one of the metanet admins for that.
46
6 CraigBox 47 !Notes
1 DanielLawson 48
49 Again, you need a 2.4.x series kernel. We've not tried it under 2.5.x, and we know if wont work under 2.2.
50
51 Having netlink_dev and ethertap compiled (modules) into your kernel is still perhaps a good thing to do, however you really want to use the new TUN/TAP support
52 CONFIG_TUN is the option to look for. Again, modules are good.
53
6 CraigBox 54 You might still need /sbin/ip (see iproute(8)), this usually comes in a package called iproute (eg Debian) or iproute2 depending on your distribution.
1 DanielLawson 55
56 The CVS tree contains some debian-style init scripts that will start things up nicely. They are placed in misc/debian/etc/init.d/ . If you are running debian, feel
57 free to copy these to /etc/init.d and use update-rc.d to get debian to run them on startup. I put Etud at level 19, and wand at level 20.
6 CraigBox 58
1 DanielLawson 59 These scripts rely on having an entry in /etc/network/interfaces for your Etud device - typically wan0
60
6 CraigBox 61 <verbatim>
62 noauto wan0
63 iface wan0 inet static
64 address <your 192.168 ip address>
65 netmask 255.255.0.0
66 network 192.168.0.0
67 broadcast 192.168.255.255
68 </verbatim>
1 DanielLawson 69
6 CraigBox 70 The init scripts then call 'ifup wan0'.
1 DanielLawson 71
72 Alternatively, you can ignore the init scripts and run Etud/wand simply, assuming you have good config files as mentioned earlier, by doing:
73
74 /usr/local/sbin/Etud
2 DanielLawson 75 ifconfig wan0 <192.168 ip address> netmask 255.255.0.0 broadcast 192.168.255.255
1 DanielLawson 76 /usr/local/sbin/wand
77
2 DanielLawson 78 NOTE: the mtu is IMPORTANT if you want zebra/ospfd to work. All OSPFD talkers must have the same MTU. 1280 is the MTU for ipv6, which we *are* going to play with at some point. As of 7 Dec 1:51 pm, the mtu is being set via the config file so you should check it here.
3 JohnMcPherson 79
80 !! Error Messages
6 CraigBox 81 * <tt>Didn't write 'GETMAC'/etc/init.d/wand: line 73: 9371 Segmentation fault start-stop-daemon --start --quiet --pidfile ${PID_FILE} --exec $DAEMON</tt>
3 JohnMcPherson 82
6 CraigBox 83 Did you try to start wand before starting Etud?
4 JohnMcPherson 84
6 CraigBox 85 * <tt>Failed to initialise interface. Aborting...</tt>
4 JohnMcPherson 86
6 CraigBox 87 Did you try to start Etud when another Etud was already running?
5 AristotlePagaltzis 88
89 ----
90 CategoryHowto

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 2 times)