| Zeile 104: |
Zeile 104: |
| | | | |
| | </pre> | | </pre> |
| | + | |
| | + | ===Unsere 2te Konfig=== |
| | + | <pre> |
| | + | - openWRT rc6 flashenm vorher NVRAM loeschen |
| | + | |
| | + | passwd root |
| | + | admin |
| | + | admin |
| | + | |
| | + | - Internet an WAN anschliessen und |
| | + | |
| | + | ipkg update |
| | + | ipkg list|grep madwifi |
| | + | ipkg install paket1 |
| | + | ipkg install paket2 |
| | + | |
| | + | |
| | + | |
| | + | |
| | + | - neue Konfig schreiben lassen. (Echo1 = Anschluss AUX, Echo2 waehre dann "MAIN") |
| | + | - anderes Geraet dann entsprechend managed und nicht master, den channel befehl auch wegmachen, mode1 = 802.11a only |
| | + | |
| | + | cat >/etc/init.d/S20madwifi <<EOF |
| | + | #!/bin/sh |
| | + | iwconfig ath0 mode master |
| | + | iwconfig ath0 essid weimar.freifunk.net_backbone |
| | + | iwconfig ath0 channel 36 |
| | + | iwpriv ath0 mode 1 |
| | + | echo 0 > /proc/sys/dev/ath0/diversity |
| | + | echo 1 > /proc/sys/dev/ath0/txantenna |
| | + | echo 1 > /proc/sys/dev/ath0/rxantenna |
| | + | EOF |
| | + | |
| | + | - neue Konfig schreiben lassen, wifi rausnehmen und interfaces werden hochgefahren |
| | + | |
| | + | cat >/etc/init.d/S40network <<EOF |
| | + | #!/bin/sh |
| | + | case "$1" in |
| | + | start|restart) |
| | + | rm -f /tmp/resolv.conf |
| | + | ln -s /tmp/resolv.conf.auto /tmp/resolv.conf |
| | + | ifup_interfaces=$(nvram get ifup_interfaces) |
| | + | ifup_interfaces=${ifup_interfaces:-"lan wan"} |
| | + | for iface in $ifup_interfaces; do |
| | + | ifup $iface |
| | + | if [ "$iface" = "wifi" ]; then |
| | + | $iface up |
| | + | fi |
| | + | done |
| | + | ;; |
| | + | esac |
| | + | |
| | + | ifconfig ath0 10.63.1.193 broadcast 10.255.255.255 netmask 255.0.0.0 up |
| | + | iptables -I INPUT -j ACCEPT |
| | + | iptables -I OUTPUT -j ACCEPT |
| | + | iptables -I FORWARD -j ACCEPT |
| | + | olsrd |
| | + | EOF |
| | + | |
| | + | - aktuelles OLSRd installieren |
| | + | |
| | + | ipkg install http://download.olsrexperiment.de/sven-ola/testing/packages/freifunk-olsrd_0.5.0_mipsel.ipk |
| | + | ipkg install http://download.olsrexperiment.de/sven-ola/testing/packages/freifunk-olsrd-libs_0.5.0_mipsel.ipk |
| | + | |
| | + | - konfig von OLSRd schreiben lassen, das LAN und das WIFI muss eingetragen sein: |
| | + | |
| | + | cat >/etc/olsrd.conf <<EOF |
| | + | DebugLevel 0 |
| | + | IpVersion 4 |
| | + | AllowNoInt yes |
| | + | Pollrate 0.5 |
| | + | TcRedundancy 2 |
| | + | MprCoverage 7 |
| | + | LinkQualityFishEye 1 |
| | + | LinkQualityWinSize 100 |
| | + | LinkQualityDijkstraLimit 0 7.0 |
| | + | |
| | + | IpcConnect { |
| | + | MaxConnections 1 |
| | + | Host 127.0.0.1 |
| | + | |
| | + | } |
| | + | |
| | + | LoadPlugin "olsrd_txtinfo.so.0.1" { |
| | + | PlParam "Accept" "127.0.0.1" |
| | + | } |
| | + | |
| | + | Hna4 { |
| | + | 10.63.1.192 255.255.255.192 |
| | + | } |
| | + | |
| | + | LinkQualityLevel 2 |
| | + | UseHysteresis no |
| | + | |
| | + | Interface "ath0" { |
| | + | HelloInterval 5.0 |
| | + | HelloValidityTime 90.0 |
| | + | TcInterval 3.0 |
| | + | TcValidityTime 270.0 |
| | + | MidInterval 15.0 |
| | + | MidValidityTime 270.0 |
| | + | HnaInterval 15.0 |
| | + | HnaValidityTime 90.0 |
| | + | Ip4Broadcast 255.255.255.255 |
| | + | } |
| | + | |
| | + | Interface "br0" { |
| | + | HelloInterval 5.0 |
| | + | HelloValidityTime 90.0 |
| | + | TcInterval 3.0 |
| | + | TcValidityTime 270.0 |
| | + | MidInterval 15.0 |
| | + | MidValidityTime 270.0 |
| | + | HnaInterval 15.0 |
| | + | HnaValidityTime 90.0 |
| | + | Ip4Broadcast 255.255.255.255 |
| | + | } |
| | + | EOF |
| | + | |
| | + | reboot! |
| | + | WIFI = eigenes IP-Schema |
| | + | LAN = eigenes IP-Schema |
| | + | |
| | + | </pre> |
| | + | |
| | [[Kategorie:Howto]] | | [[Kategorie:Howto]] |