1 (edytowany przez qwerty 2011-02-07 21:56:28)

Temat: Aiccu + openwrt

Staram się zrobić ipv6 na openwrt zgodnie z tym tutorialem: http://openwrt.pl/doku.php/zastosowania:ipv6
Skonfigurowałem plik /etc/aiccu.conf zgodnie z opisem i mam problem z następnym podpunktem

Testujemy tunel ipv6. Uruchamiamy aiccu:
/etc/init.d/aiccu start

Oto co router "wypluwa":

root@WRT1043ND:~# /etc/init.d/aiccu start
Unknown configuration statement on line 1 of /tmp/run/aiccu-cfg02ec04.conf: "usernam"
Unknown configuration statement on line 2 of /tmp/run/aiccu-cfg02ec04.conf: "passwor"

Zawartość utworzonego pliku aiccu-cfg02ec04.conf:

username
password
behindnat true
daemonize true
pidfile /var/run/aiccu-cfg02ec04.pid

Gdzie jest błąd?
Zawartość aiccu.conf

username XXXXX-SIXXS
password XXXXXXXX
server tic.sixxs.net
ipv6_interface sixxs
tunnel_id T55689
verbose false
daemonize true
automatic true
requiretls false
pidfile /var/run/aiccu.pid
defaultroute true

oraz zawartość skryptu /etc/init.d/aiccu

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org

START=51
config_cb() {
    local cfg_type="$1"
    local cfg_name="$2"

    case "$cfg_type" in
        aiccu)
            append cfgs_sections "$cfg_name" "$N"
        ;;
    esac
}

start() {
    config_load aiccu
    for cfgs_section in $cfgs_sections; do
        config_get username $cfgs_section username
        config_get password $cfgs_section password
        config_get server $cfgs_section server
        config_get protocol $cfgs_section protocol
        config_get interface $cfgs_section interface
        config_get tunnel_id $cfgs_section tunnel_id
        config_get_bool requiretls $cfgs_section requiretls 0
        config_get_bool defaultroute $cfgs_section defaultroute 1
        config_get_bool nat $cfgs_section nat 1
        config_get_bool heartbeat $cfgs_section heartbeat 1
        mkdir -p /tmp/run
        echo "username $username" > /tmp/run/aiccu-${cfgs_section}.conf
        echo "password $password" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ -n "$server" ] && echo "server $server" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ -n "$protocol" ] && echo "protocol $protocol" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ -n "$interface" ] && echo "ipv6_interface $interface" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ -n "$tunnel_id" ] && echo "tunnel_id $tunnel_id" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ "$requiretls" = "1" ] && echo "requiretls true" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ "$defaultroute" != "1" ] && echo "defaultroute false" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ "$nat" = "1" ] && echo "behindnat true" >> /tmp/run/aiccu-${cfgs_section}.conf
        [ "$heartbeat" != "1" ] && echo "makebeats false" >> /tmp/run/aiccu-${cfgs_section}.conf
        echo 'daemonize true' >> /tmp/run/aiccu-${cfgs_section}.conf
        echo "pidfile /var/run/aiccu-${cfgs_section}.pid" >> /tmp/run/aiccu-${cfgs_section}.conf
   
        aiccu start /tmp/run/aiccu-$cfgs_section.conf
    done
}

stop() {
    config_load aiccu
    for cfgs_section in $cfgs_sections; do
        aiccu stop /tmp/run/aiccu-$cfgs_section.conf
    done
}

Skąd router wytrzasnął "usernam" "passwor"?

2

Odp: Aiccu + openwrt

A pokażesz /etc/config/aiccu? Bo tam trzeba skonfigurować parametry...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3 (edytowany przez qwerty 2011-02-07 23:05:25)

Odp: Aiccu + openwrt

Cezary napisał/a:

A pokażesz /etc/config/aiccu? Bo tam trzeba skonfigurować parametry...

Jesteś geniuszem. smile Nie był skonfigurowany. Fakt, że zostawiłem puste pole na     option protocol        '', ale ping6 śmiga. smile
EDIT: Przez przypadek zauważyłem, że z tego co widzę mój ISP wykorzystuje tcp ip v6:

eth0.1    Link encap:Ethernet  HWaddr 94:0C:6D:XX:XX:XX
          inet6 addr: fe80::960c:6dff:feee:7a5e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:37718 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34473 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4026864 (3.8 MiB)  TX bytes:19684235 (18.7 MiB)

Jednak jak wyłączę sixxs to mam  root@WRT1043ND:~# traceroute6 www.sixxs.net
connect: Network is unreachable Dziwne...

4 (edytowany przez snifer 2011-02-07 23:37:41)

Odp: Aiccu + openwrt

To co widzisz to jest tzw adres link-local czyli efekt tego że masz załadowane moduły odpowiedzialne za ipv6 i nie otrzymałeś go od dostawcy tylko system sam sobie taki ustalił na podstawie mac adresu karty, stąd network unreachable, niestety twój dostawca jeszcze jest "do tyłu" :-)

Archer C7 v.2 + LEDE by Cezary http://beta.speedtest.net/pl/result/6621599402

5 (edytowany przez qwerty 2011-02-14 17:44:57)

Odp: Aiccu + openwrt

No i klops. Postanowiłem zrobić ipv6 dla podsieci.
Dostałem e-mailem:

PoP Name     : plwaw01 (pl.icm [AS8664])
  Subnet IPv6  : 2001:6a0:1d5::/48
  Routed to    : 2001:6a0:200:250::2/64
  Your IPv4    : ayiya

Utworzyłem plik /etc/radvd.conf z zawartością:

interface eth0
{
      AdvSendAdvert on;
      MinRtrAdvInterval 3;
      MaxRtrAdvInterval 10;
      AdvLinkMTU 1280;
      prefix 2001:6a0:1d5:1111::/64
      {
              AdvOnLink on;
              AdvAutonomous on;
              AdvRouterAddr on;
      };

};

i dopisałem do /etc/config/network, że wygląda następująco:

config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'

config 'interface' 'lan'
option 'ifname' 'eth0.1'
option 'type' 'bridge'
option 'proto' 'static'
option 'ipaddr' '192.168.1.1'
option 'netmask' '255.255.255.0'
option 'dns' '192.168.1.1'

config 'interface' 'wan'
option 'ifname' 'eth0.2'
option 'proto' 'dhcp'

config 'switch'
option 'name' 'rtl8366rb'
option 'reset' '1'
option 'enable_vlan' '1'
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '1'
option 'ports' '1 2 3 4 5t'

config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '2'
option 'ports' '0 5t'

config 'interface' 'lan'
option 'ifname'   'eth0'
option 'proto'    'static'
option 'ipaddr'   '10.0.0.1'
option 'netmask'  '255.255.255.0'
option 'ip6addr'  '2001:6a0:1d5:1111::1/64'

Nie powinno być option 'ifname'   'eth0.1' oraz inny option 'ipaddr' ? Teraz router się uruchamia, ale nie mam dostępu do niego, ani do routera (przez przewód i wi-fi). W jaki sposób podmontować pliki z extoot, gdyż mount -t jffs2 /dev/sda1 /dane , ale nie pomogło

6

Odp: Aiccu + openwrt

mount /dev/sda1 /dane lub mount -t ext2 /dev/sda1 /dane. Na pewno nie jffs2 smile

Zauważyłeś że masz dwie sekcje lan?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: Aiccu + openwrt

Cezary napisał/a:

mount /dev/sda1 /dane lub mount -t ext2 /dev/sda1 /dane. Na pewno nie jffs2 smile

Zauważyłeś że masz dwie sekcje lan?

Odpaliłem ubuntu live, odpaliłem na roocie i udało się usunąć zmiany. Sugerujesz, żeby zmienić nazwę na lan2? Rozumiem, że ma pozostać option 'ifname' na 'eth0' i ma wyglądać:

config 'interface' 'lan2'
option 'ifname'   'eth0'
option 'proto'    'static'
option 'ipaddr'   '10.0.0.1'
option 'netmask'  '255.255.255.0'
option 'ip6addr'  '2001:6a0:1d5:1111::1/64'

8

Odp: Aiccu + openwrt

eth0 to u ciebie cały switch. Lan to eth0.1. Dlaczego chcesz użyć eth0?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: Aiccu + openwrt

dopisz do istniejącej sekcji lan
ip6addr a nie twórz nowej sekcji

możesz wspomóc się
http://rpc.one.pl/index.php/lista-artyk … t-hertbeat

10

Odp: Aiccu + openwrt

Chodzi został ostatni najmniejszy problem. Da się ustawić, aby adres ipv6 komputera był stały?
Wczoraj miałem:  2001:6A0:1D5:1111:1D1D:12DB:1D4D:6A72
dziś natomiast: 2001:6a0:1d5:1111:698d:55b9:850b:90ec
Zawartość /etc/dhcp6s.conf:

option domain-name-servers 2001:470:20::2;
option domain-name "domena.dyndns.org";
#option ntp-servers 2001:6a0:1d5:1111::1;

host rpc-seven {
duid 00:01:00:01:12:73:30:82:00:50:8D:E7:8C:8C;
#address 2001:6a0:1d5:1111::4 infinity;
address 2001:6a0:1d5:1111::4 1800 7200;
};

interface eth0.1 {
address-pool domena.dyndns.org 3600;
preference 10;
};

pool domena.dyndns.org {
range 2001:6a0:1d5:1111 ::1000 to 2001:6a0:1d5:1111::2000 ;
};

http://img6.imageshack.us/img6/7483/cmdyk.jpg

11

Odp: Aiccu + openwrt

No i coś się popsuło. Wgrałem najnowsze backfire i nie mogę zainstalować ipv6:
No IPv6 Stack found! Please check your kernel and module configuration

lsmod|grep v6
ip6t_ipv6header          992  0
ip6_tables              8976  8 ip6t_LOG,ip6t_rt,ip6t_hbh,ip6t_ipv6header,ip6t_frag,ip6t_ah,ip6table_raw,ip6table_filter
x_tables                9296 62 ip6t_LOG,ip6t_rt,ip6t_hbh,ip6t_mh,ip6t_ipv6header,ip6t_frag,ip6t_eui64,ip6t_ah,ip6_tables,ebt_arpnat,ebt_redirect,ebt_mark,ebt_vlan,ebt_stp,ebt_pkttype,ebt_mark_m,ebt_limit,ebt_among,ebt_802_3,ebtables,xt_IMQ,ipt_weburl,ipt_webmon,ipt_timerange,xt_iprange,xt_HL,xt_hl,xt_MARK,ipt_ECN,xt_CLASSIFY,xt_time,xt_tcpmss,xt_statistic,xt_mark,xt_length,ipt_ecn,xt_DSCP,xt_dscp,xt_string,xt_layer7,ipt_bandwidth,ipt_REDIRECT,ipt_NETMAP,ipt_MASQUERADE,iptable_nat,xt_CONNMARK,xt_recent,xt_helper,xt_conntrack,xt_connmark,xt_connbytes,xt_NOTRACK,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_comment,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp

12

Odp: Aiccu + openwrt

kmod-ipv6?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13

Odp: Aiccu + openwrt

Oczywiście, że wgrany:

root@Gargoyle:~# opkg update
Downloading http://ecco.selfip.net/backfire/packages/Packages.gz.
Inflating http://ecco.selfip.net/backfire/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/eko1.
Downloading http://downloads.openwrt.org/backfire/1 … ckages.gz.
Inflating http://downloads.openwrt.org/backfire/1 … ckages.gz.
Updated list of available packages in /var/opkg-lists/packages.
root@Gargoyle:~# opkg install kmod-ipv6 kmod-ip6tables ip6tables kmod-ip6-tunnel kmod-tun aiccu radvd
Multiple packages (kmod-ipv6 and kmod-ipv6) providing same name marked HOLD or PREFER. Using latest.
Package kmod-ipv6 (2.6.32.27-1cj) installed in root is up to date.
Multiple packages (kmod-ip6tables and kmod-ip6tables) providing same name marked HOLD or PREFER. Using latest.
Package kmod-ip6tables (2.6.32.27-1cj) installed in root is up to date.
Upgrading ip6tables on root from 1.4.6-2 to 1.4.6-2cj...
Downloading http://ecco.selfip.net/backfire/package … r71xx.ipk.
Multiple packages (kmod-ip6tables and kmod-ip6tables) providing same name marked HOLD or PREFER. Using latest.
Installing libip6tc (1.4.6-2cj) to root...
Downloading http://ecco.selfip.net/backfire/package … r71xx.ipk.
Multiple packages (kmod-ip6-tunnel and kmod-ip6-tunnel) providing same name marked HOLD or PREFER. Using latest.
Package kmod-ip6-tunnel (2.6.32.27-1cj) installed in root is up to date.
Multiple packages (kmod-tun and kmod-tun) providing same name marked HOLD or PREFER. Using latest.
Package kmod-tun (2.6.32.27-1cj) installed in root is up to date.
Package aiccu (20070115-4) installed in root is up to date.
Package radvd (1.7-1) installed in root is up to date.
Collected errors:
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-leds-wndr3700-usb.list: No such file or directory.
* check_data_file_clashes: Package libip6tc wants to install file /usr/lib/libip6tc.so.0.0.0
        But that file is already provided by package  * libiptc
* check_data_file_clashes: Package libip6tc wants to install file /usr/lib/libip6tc.so
        But that file is already provided by package  * libiptc
* check_data_file_clashes: Package libip6tc wants to install file /usr/lib/libip6tc.so.0
        But that file is already provided by package  * libiptc
* opkg_install_cmd: Cannot install package ip6tables.
root@Gargoyle:~# opkg install iputils-ping6 iputils-traceroute6
Unknown package 'iputils-ping6'.
Package iputils-traceroute6 (20071127-1) installed in root is up to date.
Collected errors:
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-leds-wndr3700-usb.list: No such file or directory.
* opkg_install_cmd: Cannot install package iputils-ping6.

Nawet jak podmontowałem "system" z externed root to ciągle mam ten sam błąd. sad