Die Artikel im Archiv-Namespace sind veraltet und werden nur noch aus historischen Gründen aufbewahrt.
Archiv:6mesh.freifunk.net:tweaks/hacks/infos
Zur Navigation springen
Zur Suche springen
gateway
gateway olsr
root@siit-77-87-52-1:~# cat /var/etc/olsrd.conf
DebugLevel 0
IpVersion 6
AllowNoInt yes
Pollrate 0.025
TcRedundancy 2
MprCoverage 3
LinkQualityFishEye 1
LinkQualityWinSize 100
LinkQualityDijkstraLimit 0 9.0
LinkQualityLevel 2
UseHysteresis no
FIBMetric "flat"
ClearScreen yes
Willingness 3
LinkQualityAging 0.1
LinkQualityAlgorithm "etx_ff"
IpcConnect
{
MaxConnections 0
}
Hna6
{
0:0:0:0:0:FFFF:0:0 96
0:0:0:0:0:FFFF:4D57:3401 125
}
LoadPlugin "olsrd_nameservice.so.0.3"
{
PlParam "name" "siit-77-87-52-1"
PlParam "suffix" ".olsr"
PlParam "hosts-file" "/var/etc/hosts.olsr"
}
LoadPlugin "olsrd_txtinfo.so.0.1"
{
PlParam "accept" "::1"
}
Interface "ath0"
{
HelloInterval 2.0
HelloValidityTime 40.0
TcInterval 5.0
TcValidityTime 100.0
MidInterval 18.0
MidValidityTime 324.0
HnaInterval 18.0
HnaValidityTime 108.0
Ip6AddrType global
}
gateway route6
root@siit-77-87-52-1:~# route -A inet6 Kernel IPv6 routing table Destination Next Hop Flags Metric Ref Use Iface ::ffff:17.72.255.12/128 ::ffff:17.72.255.12 UC 0 1 0 siit0 ::ffff:64.161.254.20/128 ::ffff:64.161.254.20 UC 0 21 0 siit0 ::ffff:66.135.59.147/128 ::ffff:66.135.59.147 UC 0 2 0 siit0 ::ffff:76.13.18.70/128 ::ffff:76.13.18.70 UC 0 3 0 siit0 ::ffff:77.87.48.16/125 fdca:ffee:babe:dada:202:6fff:fe4a:31f5 UG 2 0 0 ath0 ::ffff:77.87.52.3/128 ::ffff:77.87.52.3 UC 0 1244 0 siit0 ::ffff:77.87.52.8/125 fdca:ffee:babe:dada:202:6fff:fe4a:31f5 UG 2 0 0 ath0 ::ffff:77.87.52.16/125 fdca:ffee:babe:dada:218:84ff:fe1a:7420 UG 2 530 0 ath0 ::ffff:77.87.52.24/125 fdca:ffee:babe:dada:218:84ff:fe1a:7420 UG 2 0 0 ath0 ::ffff:77.87.52.32/125 fdca:ffee:babe:dada:218:84ff:fe1a:7420 UG 2 37 0 ath0 ::ffff:130.133.8.2/128 ::ffff:130.133.8.2 UC 0 12 0 siit0 ::ffff:141.1.1.1/128 ::ffff:141.1.1.1 UC 0 2 0 siit0 ::ffff:205.188.7.209/128 ::ffff:205.188.7.209 UC 0 42 0 siit0 ::ffff:213.73.91.29/128 ::ffff:213.73.91.29 UC 0 2 0 siit0 ::ffff:213.73.91.78/128 ::ffff:213.73.91.78 UC 0 1216 0 siit0 ::ffff:217.7.143.1/128 ::ffff:217.7.143.1 UC 0 338 0 siit0 ::ffff:217.10.10.196/128 ::ffff:217.10.10.196 UC 0 18 0 siit0 ::ffff:0.0.0.0/96 :: U 1 0 0 siit0 fdca:ffee:babe:dada:202:6fff:fe4a:31f5/128 :: U 2 20 0 ath0 fdca:ffee:babe:dada:218:84ff:fe1a:7420/128 :: U 2 20 0 ath0 fdca:ffee:babe:dada:21d:73ff:fe05:1ba4/128 fdca:ffee:babe:dada:218:84ff:fe1a:7420 UG 2 0 0 ath0 fdca:ffee:babe:dada:21d:7eff:feed:941a/128 fdca:ffee:babe:dada:218:84ff:fe1a:7420 UG 2 0 0 ath0 fdca:ffee:babe:dada::/64 :: U 256 0 0 ath0 fe80::/64 :: U 256 0 0 ath0 fe80::/64 :: U 256 0 0 eth0 fe80::/64 :: U 256 0 0 siit0 ::1/128 :: U 0 192 1 lo fdca:ffee:babe:dada::/128 :: U 0 0 1 lo fdca:ffee:babe:dada:202:6fff:fe4a:31f4/128 :: U 0 148 1 lo fe80::/128 :: U 0 0 1 lo fe80::/128 :: U 0 0 1 lo fe80::/128 :: U 0 0 1 lo fe80::202:6fff:fe4a:31f4/128 :: U 0 76 1 lo fe80::20d:b9ff:fe14:2f00/128 :: U 0 0 1 lo fe80::1056:76ff:fe85:eea6/128 :: U 0 0 1 lo ff0e::1/128 ff0e::1 UC 0 1214 0 ath0 ff00::/8 :: U 256 0 0 ath0 ff00::/8 :: U 256 0 0 eth0 ff00::/8 :: U 256 0 0 siit0
gateway route -n
root@siit-77-87-52-1:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 77.87.52.0 0.0.0.0 255.255.255.248 U 0 0 0 eth0 81.163.28.0 0.0.0.0 255.255.254.0 U 0 0 0 eth1 77.87.52.0 0.0.0.0 255.255.252.0 U 0 0 0 siit0 0.0.0.0 81.163.28.1 0.0.0.0 UG 0 0
gateway ipconfig -a
root@siit-77-87-52-1:~# ifconfig -a
ath0 Link encap:Ethernet HWaddr 00:02:6F:4A:31:F4
inet6 addr: fdca:ffee:babe:dada:202:6fff:fe4a:31f4/64 Scope:Global
inet6 addr: fe80::202:6fff:fe4a:31f4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1200 Metric:1
RX packets:15738 errors:0 dropped:0 overruns:0 frame:0
TX packets:6655 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2270828 (2.1 MiB) TX bytes:4100737 (3.9 MiB)
eth0 Link encap:Ethernet HWaddr 00:0D:B9:14:2F:00
inet addr:77.87.52.1 Bcast:77.87.52.7 Mask:255.255.255.248
inet6 addr: fe80::20d:b9ff:fe14:2f00/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1400 Metric:1
RX packets:14548 errors:0 dropped:0 overruns:0 frame:0
TX packets:12319 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1363697 (1.2 MiB) TX bytes:8206614 (7.8 MiB)
Interrupt:10 Base address:0xc000
eth1 Link encap:Ethernet HWaddr 00:0D:B9:14:2F:01
inet addr:81.163.28.205 Bcast:81.163.29.255 Mask:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:1200 Metric:1
RX packets:9349 errors:0 dropped:0 overruns:0 frame:0
TX packets:7551 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4568971 (4.3 MiB) TX bytes:776784 (758.5 KiB)
Interrupt:12 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2251 errors:0 dropped:0 overruns:0 frame:0
TX packets:2251 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:182842 (178.5 KiB) TX bytes:182842 (178.5 KiB)
siit0 Link encap:Ethernet HWaddr 12:56:76:85:EE:A6
inet6 addr: fe80::1056:76ff:fe85:eea6/64 Scope:Link
UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:11718 errors:53 dropped:1036 overruns:0 frame:0
TX packets:10629 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:4555285 (4.3 MiB) TX bytes:4292637 (4.0 MiB)
wifi0 Link encap:UNSPEC HWaddr 00-02-6F-4A-31-F4-20-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40663 errors:0 dropped:0 overruns:0 frame:625
TX packets:8889 errors:1155 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:195
RX bytes:4731999 (4.5 MiB) TX bytes:4483649 (4.2 MiB)
Interrupt:9
wifi1 Link encap:UNSPEC HWaddr 00-15-6D-63-6A-27-20-00-00-00-00-00-00-00-00-00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:195
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:11
client
client olsrd.conf
root@siit-77-87-52-33:~# cat /var/etc/olsrd.conf
DebugLevel 0
IpVersion 6
AllowNoInt yes
Pollrate 0.025
TcRedundancy 2
MprCoverage 3
LinkQualityFishEye 1
LinkQualityWinSize 100
LinkQualityDijkstraLimit 0 9.0
LinkQualityLevel 2
UseHysteresis no
FIBMetric "flat"
ClearScreen yes
Willingness 3
LinkQualityAging 0.1
LinkQualityAlgorithm "etx_ff"
IpcConnect
{
MaxConnections 0
}
Hna6
{
0:0:0:0:0:FFFF:4D57:3421 125
}
LoadPlugin "olsrd_nameservice.so.0.3"
{
PlParam "name" "siit-77-87-52-33"
PlParam "suffix" ".olsr"
PlParam "hosts-file" "/var/etc/hosts.olsr"
}
LoadPlugin "olsrd_txtinfo.so.0.1"
{
PlParam "accept" "::1"
}
Interface "wl0"
{
HelloInterval 2.0
HelloValidityTime 40.0
TcInterval 5.0
TcValidityTime 100.0
MidInterval 18.0
MidValidityTime 324.0
HnaInterval 18.0
HnaValidityTime 108.0
Ip6AddrType global
}
client route -n
root@siit-77-87-52-33:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 77.87.52.32 0.0.0.0 255.255.255.248 U 0 0 0 br-lan 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 siit0 root@siit-77-87-52-33:~#
client route -A inet6
root@siit-77-87-52-33:~# route -A inet6 Kernel IPv6 routing table Destination Next Hop Flags Metric Ref Use Iface ::1/128 :: U 0 72 0 lo ::ffff:77.87.48.16/125 fdca:ffee:babe:dada:202:6fff:fe4a:31f5 UG 2 0 0 wl0 ::ffff:77.87.48.32/125 :: U 1 0 0 siit0 ::ffff:77.87.52.0/125 fdca:ffee:babe:dada:202:6fff:fe4a:31f4 UG 2 77 1 wl0 ::ffff:77.87.52.8/125 fdca:ffee:babe:dada:202:6fff:fe4a:31f5 UG 2 0 0 wl0 ::ffff:77.87.52.16/125 fdca:ffee:babe:dada:218:84ff:fe1a:7420 UG 2 0 0 wl0 ::ffff:77.87.52.24/125 fdca:ffee:babe:dada:21d:7eff:feed:941a UG 2 0 0 wl0 ::ffff:77.87.52.34/128 ::ffff:77.87.52.34 UC 0 98 0 siit0 ::ffff:77.87.52.32/125 :: U 1 0 0 siit0 ::ffff:0.0.0.0/96 fdca:ffee:babe:dada:202:6fff:fe4a:31f4 UG 2 27 0 wl0 fdca:ffee:babe:dada::/128 :: U 0 0 0 lo fdca:ffee:babe:dada:202:6fff:fe4a:31f4/128 :: U 2 2 0 wl0 fdca:ffee:babe:dada:202:6fff:fe4a:31f5/128 :: U 2 23 0 wl0 fdca:ffee:babe:dada:218:84ff:fe1a:7420/128 :: U 2 17 0 wl0 fdca:ffee:babe:dada:21d:73ff:fe05:1ba4/128 :: U 0 42 0 lo fdca:ffee:babe:dada:21d:7eff:feed:941a/128 :: U 2 3 0 wl0 fdca:ffee:babe:dada::/64 :: U 256 0 0 wl0 fe80::/128 :: U 0 0 0 lo fe80::21d:73ff:fe05:1ba4/128 :: U 0 0 0 lo fe80::21d:73ff:fe05:1ba5/128 :: U 0 82 0 lo fe80::c8c3:efff:feab:a12b/128 :: U 0 0 0 lo fe80::/64 :: U 256 0 0 eth0 fe80::/64 :: U 256 0 0 eth0.0 fe80::/64 :: U 256 0 0 eth0.1 fe80::/64 :: U 256 0 0 siit0 fe80::/64 :: U 256 0 0 wl0 ff0e::1/128 ff0e::1 UC 0 3382 1 wl0 ff00::/8 :: U 256 0 0 eth0 ff00::/8 :: U 256 0 0 eth0.0 ff00::/8 :: U 256 0 0 eth0.1 ff00::/8 :: U 256 0 0 siit0 ff00::/8 :: U 256 0 0 wl0 root@siit-77-87-52-33:~#
client ifconfig -a
root@siit-77-87-52-33:~# ifconfig -a
br-lan Link encap:Ethernet HWaddr 00:1D:73:05:1B:A4
inet addr:77.87.52.33 Bcast:77.87.52.39 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1240 Metric:1
RX packets:7653 errors:0 dropped:0 overruns:0 frame:0
TX packets:8165 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:633792 (618.9 KiB) TX bytes:6661054 (6.3 MiB)
eth0 Link encap:Ethernet HWaddr 00:1D:73:05:1B:A4
inet6 addr: fe80::21d:73ff:fe05:1ba4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7653 errors:0 dropped:0 overruns:0 frame:0
TX packets:8794 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:802116 (783.3 KiB) TX bytes:6980326 (6.6 MiB)
Interrupt:4
eth0.0 Link encap:Ethernet HWaddr 00:1D:73:05:1B:A4
inet6 addr: fe80::21d:73ff:fe05:1ba4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7655 errors:0 dropped:0 overruns:0 frame:0
TX packets:8171 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:664504 (648.9 KiB) TX bytes:6694226 (6.3 MiB)
eth0.1 Link encap:Ethernet HWaddr 00:1D:73:05:1B:A4
inet6 addr: fe80::21d:73ff:fe05:1ba4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:618 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:248984 (243.1 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:438 errors:0 dropped:0 overruns:0 frame:0
TX packets:438 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:36996 (36.1 KiB) TX bytes:36996 (36.1 KiB)
siit0 Link encap:Ethernet HWaddr CA:C3:EF:AB:A1:2B
inet6 addr: fe80::c8c3:efff:feab:a12b/64 Scope:Link
UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:9651 errors:468 dropped:284 overruns:0 frame:0
TX packets:8899 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:4016001 (3.8 MiB) TX bytes:3790734 (3.6 MiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wl0 Link encap:Ethernet HWaddr 00:1D:73:05:1B:A5
inet6 addr: fdca:ffee:babe:dada:21d:73ff:fe05:1ba4/64 Scope:Global
inet6 addr: fe80::21d:73ff:fe05:1ba5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1400 Metric:1
RX packets:9111 errors:0 dropped:0 overruns:0 frame:441619
TX packets:6369 errors:5 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4317939 (4.1 MiB) TX bytes:929855 (908.0 KiB)
Interrupt:2 Base address:0x5000
root@siit-77-87-52-33:~#
Advanced Stuff
Madwifi probe storm countermeasures:
Since kamikaze r13795:
config wifi-iface [...] option probereq 0
For older versions:
http://nbd.name/500-probereq.patch +
root@OpenWrt:~# cat /etc/init.d/custom-startup
#!/bin/sh /etc/rc.common
START=99
start() {
iwpriv ath0 probereq 0
}
IPv6 OLSR on lan:
uci set network.lan.mtu=1400 uci set network.lan.ip6addr=<ip6-of-ath0 + 1>/64 uci commit network ifup lan uci add olsrd Interface uci set olsrd.@Interface[-1].Ip6AddrType=global uci set olsrd.@Interface[-1].interface=lan uci commit olsrd /etc/init.d/olsrd restart