-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmlc-help.txt
93 lines (53 loc) · 2.9 KB
/
mlc-help.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
THIS file contains some configuration examples for copy and paster.
Only use them if you know what they are doing.
read HOWTO first !
. ./mlc-vars.sh
./mlc-init-host.sh
mlc_loop -i 1000 -a 1009 -cb
mlc_qdisc_prepare
for node in \$( seq 1000 109 ) ; do mlc_link_set 1 1000 1 \$node 13 ; done
mlc_net_flush
mlc_configure_line 1 3
mlc_configure_grid 1 3 3
mlc_configure_grid 1 3 0 0 0 1 1025 1000 3 0 0 5 1 # create 5x5 grid of 25 nodes
. ./mlc-vars.sh ; mlc_loop -a 1009 -u
mlc_loop -a 1009 -e "olsrd -d 0; ip rule del pref 9000 lookup 90; ip rule add pref 9000 lookup 90"
mlc_loop -a 1009 -e "babeld -w -t 111 -D eth2; ip rule del pref 10000 lookup 111; ip rule add pref 10000 lookup 111"
mlc_loop -a 1009 -e "batmand eth1"
mlc_loop -a 1009 -e "uci revert bmx6; rm /root/core*; ulimit -c 20000; bmx6 -d0 >> /root/bmx6.log & "
SIZE=1024; mlc_loop -a 1000 -e "openssl genrsa -out /etc/bmx6/rsa$SIZE.pem $SIZE; openssl rsa -in /etc/bmx6/rsa$SIZE.pem -inform PEM -out /etc/bmx6/rsa$SIZE.der -outform DER"
grep "ERR" rootfs/mlc1000/rootfs/bmx6.log
find rootfs/mlc1*/rootfs/root/core*
killall --wait bmx6; echo bmx6 killed; killall --wait olsrd; echo olsrd killed
mlc_loop -a 1009 -e "ip -6 rule del pref 9000 lookup 90; ip -6 rule add pref 9000 lookup 90; olsrd -d 0; rm /root/core*; ulimit -c 20000; bmx6 -d0 > /root/bmx6.log &"
debugging olsrd:
echo "all" | nc localhost 8080
watch -d -n1 "echo '/all' | nc localhost 8080"
debugging bmx6
bmx6 -lcd8
bmx6 -lc traffic=summary status interfaces links locals originators descriptions=255
sudo tcpdump -i mbr1 -n -s0 -w 20110501-01-olsrd-0.6.1-ipv4-grid_1_1_0_0_199.rawdump
sudo tcpdump -nve -s 200 -i ${mlc_bridge_prefix}1 icmp[icmptype] == icmp-timxceed or 'ip[8] < ( 64 - 29 )'
sudo tcpdump -nve -s 200 -i ${mlc_bridge_prefix}1 'ip6[7] < 50' and icmp6
sudo trafshow -n -i ${mlc_bridge_prefix}1 (takes a very long time to start off)
sudo bwm-ng -I ${mlc_bridge_prefix}1
#### auf server:# sudo nc -p 12345 -l ##### auf mlc1000...:# bmx6 -cd0 | nc mlc001 12345
tail -s 0.1 -f rootfs/mlc1*/root/bmx6.log | tee bmx6.log
mlc_loop -i 1000 -a 1010 -s
mlc_loop -i 1000 -a 1010 -d
# iperf -t 2 -c 172.20.1.103 #-u # iperf -t 2 -V -c 1::1:102 #-u ## tends to hang in loop, causing 100% cpuload
netperf -l 1 -H 172.20.1.105
netperf -6 -p 12866 -l 1 -H 1::1:100
#########################
bridging the digital divide (virtualization into physical network):
mlc_mac_set 3 100 eth0 00:18:84:1a:07:74 3
ssh root@mlc1000
tcpdump -i eth3 -n
bmx6 dev=eth3:5 d=3
ifconfig eth0:bmx6 10.10.5.200 netmask 255.255.255.0
ifconfig ath0:bmx6 10.10.7.200 netmask 255.255.255.0
bmx6 dev=eth0:bmx6 dev=ath0:bmx6 -d3
#########################
while true; do bmx7 -cp >/dev/null && bmx7 -lc p s s s i s l /r=2 s k /r=1 traffic=eth1; sleep 1; done
watch -n0.3 "bmx7 -c p s s s i traffic=eth1 s l s o /r=1 s tr > bmx7.dump && mv bmx7.dump bmx7.safe; cat bmx7.safe"