[Ninux-Calabria] IPv6 con Tim

Cristian Astorino cristian.astorino a gmail.com
Gio 19 Maggio 2016 19:39:00 UTC


Mi sta cacciando un po pazzo sta storia. Ora ho riflashato CC sulla rspro.
Ho lasciato tutto standard, ho cambiato solo il file /etc/config/network:

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

config globals 'globals'
        option ula_prefix 'fdef:8f07:2880::/48'

config interface 'lan'
        option ifname 'eth1'
        option force_link '1'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '64'

config interface 'wan'
        option ifname 'eth0'
        option _orig_ifname 'eth0'
        option _orig_bridge 'false'
        option proto 'pppoe'
        option username 'adsl a alice6.it'
        option password 'IPV6 a alice6'
        option ipv6 '1'

config interface 'wan6'
        option proto 'dhcpv6'
        option _orig_ifname 'eth0'
        option _orig_bridge 'false'
        option ifname '@wan'
        option reqaddress 'try'
        option reqprefix 'auto'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '0 1 2 3 4'

Output di route -Ainet6:

Kernel IPv6 routing table
Destination                                 Next
Hop                                Flags Metric Ref    Use Iface
::/0
fe80::90:1a00:1a4:d80f                  UG    512    0        0 pppoe-wan
2a01:2000:2000:d01::/64
::                                      U     256    0        0 pppoe-wan
fdef:8f07:2880::/64
::                                      U     1024   0        0 br-lan
fe80::/64
::                                      U     256    0        0 br-lan
fe80::/64
::                                      U     256    0        0 eth0
fe80::/10
::                                      U     1      0        0 pppoe-wan
fe80::/10
::                                      U     256    0        0 pppoe-wan
::1/128
::                                      U     0      0        1 lo
2a01:2000:2000:d01::/128
::                                      U     0      0        1 lo
2a01:2000:2000:d01::1/128
::                                      U     0      0        1 lo
fdef:8f07:2880::/128
::                                      U     0      0        1 lo
fdef:8f07:2880::1/128
::                                      U     0      0        1 lo
fe80::/128
::                                      U     0      0        1 lo
fe80::/128
::                                      U     0      0        1 lo
fe80::/128
::                                      U     0      0        1 lo
fe80::1/128
::                                      U     0      0        1 lo
fe80::15:6dff:fec6:8265/128
::                                      U     0      0        1 lo
fe80::215:6dff:fec6:8265/128
::                                      U     0      0        1 lo
ff02::1/128
::                                      UC    0      6        0 pppoe-wan
ff02::1/128
::                                      UC    0      5        0 br-lan
ff02::2/128
::                                      UC    0      4        0 br-lan
ff02::1:2/128
::                                      UC    0      7        0 pppoe-wan
ff00::/8
::                                      U     256    0        2 br-lan
ff00::/8
::                                      U     256    0        0 eth0
ff00::/8
::                                      U     256    0        2 pppoe-wan

Output di logread:
[...]
Thu May 19 19:18:19 2016 daemon.info procd: - init complete -
Thu May 19 19:18:20 2016 kern.info kernel: [   19.850000] device eth1
entered promiscuous mode
Thu May 19 19:18:20 2016 daemon.notice netifd: Interface 'lan' is enabled
Thu May 19 19:18:20 2016 daemon.notice netifd: Interface 'lan' is setting
up now
Thu May 19 19:18:20 2016 kern.info kernel: [   19.870000] IPv6:
ADDRCONF(NETDEV_UP): br-lan: link is not ready
Thu May 19 19:18:20 2016 daemon.notice netifd: Interface 'lan' is now up
Thu May 19 19:18:20 2016 daemon.notice netifd: Interface 'loopback' is
enabled
Thu May 19 19:18:20 2016 daemon.notice netifd: Interface 'loopback' is
setting up now
Thu May 19 19:18:20 2016 daemon.notice netifd: Interface 'loopback' is now
up
Thu May 19 19:18:20 2016 daemon.notice netifd: Interface 'wan' is enabled
Thu May 19 19:18:20 2016 kern.info kernel: [   19.910000] IPv6:
ADDRCONF(NETDEV_UP): eth0: link is not ready
Thu May 19 19:18:20 2016 daemon.notice netifd: Network device 'lo' link is
up
Thu May 19 19:18:20 2016 daemon.notice netifd: Interface 'loopback' has
link connectivity
Thu May 19 19:18:20 2016 user.notice firewall: Reloading firewall due to
ifup of lan (br-lan)
Thu May 19 19:18:22 2016 kern.debug kernel: [   21.640000] ar71xx: pll_reg
0xb8050014: 0x110000
Thu May 19 19:18:22 2016 kern.info kernel: [   21.640000] eth1: link up
(1000Mbps/Full duplex)
Thu May 19 19:18:22 2016 kern.info kernel: [   21.640000] br-lan: port
1(eth1) entered forwarding state
Thu May 19 19:18:22 2016 kern.info kernel: [   21.650000] br-lan: port
1(eth1) entered forwarding state
Thu May 19 19:18:22 2016 daemon.notice netifd: Network device 'eth1' link
is up
Thu May 19 19:18:22 2016 kern.info kernel: [   21.650000] IPv6:
ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Thu May 19 19:18:22 2016 daemon.notice netifd: Bridge 'br-lan' link is up
Thu May 19 19:18:22 2016 daemon.notice netifd: Interface 'lan' has link
connectivity
Thu May 19 19:18:23 2016 kern.debug kernel: [   22.640000] ar71xx: pll_reg
0xb8050010: 0x1099
Thu May 19 19:18:23 2016 kern.info kernel: [   22.640000] eth0: link up
(100Mbps/Full duplex)
Thu May 19 19:18:23 2016 kern.info kernel: [   22.640000] IPv6:
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Thu May 19 19:18:23 2016 daemon.notice netifd: Network device 'eth0' link
is up
Thu May 19 19:18:23 2016 daemon.notice netifd: Interface 'wan' has link
connectivity
Thu May 19 19:18:23 2016 daemon.notice netifd: Interface 'wan' is setting
up now
Thu May 19 19:18:23 2016 daemon.info pppd[971]: Plugin rp-pppoe.so loaded.
Thu May 19 19:18:23 2016 daemon.info pppd[971]: RP-PPPoE plugin version
3.8p compiled against pppd 2.4.7
Thu May 19 19:18:23 2016 daemon.notice pppd[971]: pppd 2.4.7 started by
root, uid 0
Thu May 19 19:18:23 2016 daemon.info dnsmasq[968]: started, version 2.73
cachesize 150
Thu May 19 19:18:23 2016 daemon.info dnsmasq[968]: compile time options:
IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP
no-conntrack no-ip$
Thu May 19 19:18:23 2016 daemon.info dnsmasq[968]: DNS service limited to
local subnets
Thu May 19 19:18:23 2016 daemon.info dnsmasq-dhcp[968]: DHCP, IP range
192.168.1.100 -- 192.168.1.249, lease time 12h
Thu May 19 19:18:23 2016 daemon.info dnsmasq[968]: using local addresses
only for domain lan
Thu May 19 19:18:23 2016 daemon.warn dnsmasq[968]: no servers found in
/tmp/resolv.conf.auto, will retry
Thu May 19 19:18:23 2016 daemon.info dnsmasq[968]: read /etc/hosts - 1
addresses
Thu May 19 19:18:23 2016 daemon.info dnsmasq[968]: read /tmp/hosts/dhcp - 1
addresses
Thu May 19 19:18:23 2016 daemon.info dnsmasq-dhcp[968]: read /etc/ethers -
0 addresses
Thu May 19 19:18:24 2016 kern.info kernel: [   23.640000] Atheros
AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 2 is up
Thu May 19 19:18:24 2016 kern.info kernel: [   23.640000] Atheros
AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 3 is up
Thu May 19 19:18:24 2016 kern.info kernel: [   23.650000] br-lan: port
1(eth1) entered forwarding state
Thu May 19 19:18:24 2016 daemon.info dnsmasq-dhcp[968]:
DHCPDISCOVER(br-lan) 192.168.1.213 00:1e:68:4a:ba:a3
Thu May 19 19:18:24 2016 daemon.info dnsmasq-dhcp[968]: DHCPOFFER(br-lan)
192.168.1.213 00:1e:68:4a:ba:a3
Thu May 19 19:18:24 2016 daemon.info dnsmasq-dhcp[968]: DHCPREQUEST(br-lan)
192.168.1.213 00:1e:68:4a:ba:a3
Thu May 19 19:18:24 2016 daemon.info dnsmasq-dhcp[968]: DHCPACK(br-lan)
192.168.1.213 00:1e:68:4a:ba:a3 L4pt0p
Thu May 19 19:18:28 2016 daemon.info pppd[971]: PPP session is 1
Thu May 19 19:18:28 2016 daemon.warn pppd[971]: Connected to
30:39:f2:ab:55:0d via interface eth0
Thu May 19 19:18:28 2016 daemon.info pppd[971]: Using interface pppoe-wan
Thu May 19 19:18:28 2016 daemon.notice pppd[971]: Connect: pppoe-wan <-->
eth0
Thu May 19 19:18:28 2016 kern.info kernel: [   28.270000] pppoe-wan:
renamed from ppp0
Thu May 19 19:18:32 2016 daemon.notice pppd[971]: PAP authentication
succeeded
Thu May 19 19:18:32 2016 daemon.notice pppd[971]: peer from calling number
30:39:F2:AB:55:0D authorized
Thu May 19 19:18:33 2016 daemon.notice pppd[971]: local  IP address
79.24.190.237
Thu May 19 19:18:33 2016 daemon.notice pppd[971]: remote IP address
192.168.100.1
Thu May 19 19:18:33 2016 daemon.notice pppd[971]: primary   DNS address
85.38.28.120
Thu May 19 19:18:33 2016 daemon.notice pppd[971]: secondary DNS address
85.38.28.121
Thu May 19 19:18:33 2016 daemon.notice pppd[971]: local  LL address
fe80::0000:0000:0000:0001
Thu May 19 19:18:33 2016 daemon.notice pppd[971]: remote LL address
fe80::0090:1a00:01a4:d80f
Thu May 19 19:18:33 2016 daemon.notice netifd: Network device 'pppoe-wan'
link is up
Thu May 19 19:18:33 2016 daemon.notice netifd: Interface 'wan6' is enabled
Thu May 19 19:18:33 2016 daemon.notice netifd: Network alias 'pppoe-wan'
link is up
Thu May 19 19:18:33 2016 daemon.notice netifd: Interface 'wan6' has link
connectivity
Thu May 19 19:18:33 2016 daemon.notice netifd: Interface 'wan6' is setting
up now
Thu May 19 19:18:33 2016 daemon.notice netifd: Interface 'wan' is now up
Thu May 19 19:18:33 2016 daemon.info dnsmasq[968]: reading
/tmp/resolv.conf.auto
Thu May 19 19:18:33 2016 daemon.info dnsmasq[968]: using local addresses
only for domain lan
Thu May 19 19:18:33 2016 daemon.info dnsmasq[968]: using nameserver
85.38.28.120#53
Thu May 19 19:18:33 2016 daemon.info dnsmasq[968]: using nameserver
85.38.28.121#53
Thu May 19 19:18:33 2016 daemon.info dnsmasq[968]: reading
/tmp/resolv.conf.auto
Thu May 19 19:18:33 2016 daemon.info dnsmasq[968]: using local addresses
only for domain lan
Thu May 19 19:18:33 2016 daemon.info dnsmasq[968]: using nameserver
85.38.28.120#53
Thu May 19 19:18:33 2016 daemon.info dnsmasq[968]: using nameserver
85.38.28.121#53
Thu May 19 19:18:33 2016 daemon.info dnsmasq[968]: using nameserver
85.38.28.120#53
Thu May 19 19:18:33 2016 daemon.info dnsmasq[968]: using nameserver
85.38.28.121#53
Thu May 19 19:18:33 2016 user.notice firewall: Reloading firewall due to
ifup of wan (pppoe-wan)
Thu May 19 19:18:34 2016 daemon.info dnsmasq[968]: exiting on receipt of
SIGTERM
Thu May 19 19:18:34 2016 daemon.info dnsmasq[1131]: started, version 2.73
cachesize 150
Thu May 19 19:18:34 2016 daemon.info dnsmasq[1131]: compile time options:
IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP
no-conntrack no-i$
Thu May 19 19:18:34 2016 daemon.info dnsmasq[1131]: DNS service limited to
local subnets
Thu May 19 19:18:34 2016 daemon.info dnsmasq-dhcp[1131]: DHCP, IP range
192.168.1.100 -- 192.168.1.249, lease time 12h
Thu May 19 19:18:34 2016 daemon.info dnsmasq[1131]: using local addresses
only for domain lan
Thu May 19 19:18:34 2016 daemon.info dnsmasq[1131]: reading
/tmp/resolv.conf.auto
Thu May 19 19:18:34 2016 daemon.info dnsmasq[1131]: using local addresses
only for domain lan
Thu May 19 19:18:34 2016 daemon.info dnsmasq[1131]: using nameserver
85.38.28.120#53
Thu May 19 19:18:34 2016 daemon.info dnsmasq[1131]: using nameserver
85.38.28.121#53
Thu May 19 19:18:34 2016 daemon.info dnsmasq[1131]: using nameserver
85.38.28.120#53
Thu May 19 19:18:34 2016 daemon.info dnsmasq[1131]: using nameserver
85.38.28.121#53
Thu May 19 19:18:34 2016 daemon.info dnsmasq[1131]: read /etc/hosts - 1
addresses
Thu May 19 19:18:34 2016 daemon.info dnsmasq[1131]: read /tmp/hosts/dhcp -
1 addresses
Thu May 19 19:18:34 2016 daemon.info dnsmasq-dhcp[1131]: read /etc/ethers -
0 addresses
Thu May 19 19:18:36 2016 daemon.notice netifd: Interface 'wan6' is now up
Thu May 19 19:18:36 2016 user.notice firewall: Reloading firewall due to
ifup of wan6 (pppoe-wan)
Thu May 19 19:18:37 2016 daemon.warn odhcpd[790]: A default route is
present but there is no public prefix on br-lan thus we don't announce a
default route!
Thu May 19 19:29:56 2016 daemon.info pppd[971]: System time change detected.
Thu May 19 19:30:07 2016 kern.notice kernel: [   71.010000] random:
nonblocking pool is initialized
Thu May 19 19:30:17 2016 daemon.warn odhcpd[790]: A default route is
present but there is no public prefix on br-lan thus we don't announce a
default route!



Output di ifstatus wan6:

{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "dynamic": false,
        "uptime": 137,
        "l3_device": "pppoe-wan",
        "proto": "dhcpv6",
        "device": "pppoe-wan",
        "updated": [
                "routes"
        ],
        "metric": 0,
        "delegation": true,
        "ipv4-address": [

        ],
        "ipv6-address": [
                {
                        "address": "2a01:2000:2000:d01::1",
                        "mask": 64,
                        "preferred": 604757,
                        "valid": 2591957
                }
        ],
        "ipv6-prefix": [

        ],
        "ipv6-prefix-assignment": [

        ],
        "route": [
                {
                        "target": "2a01:2000:2000:d01::",
                        "mask": 64,
                        "nexthop": "::",
                        "metric": 256,
                        "valid": 2591977,
                        "source": "::\/0"
                }
        ],
        "dns-server": [

        ],
        "dns-search": [

        ],
        "inactive": {
                "ipv4-address": [

                ],
                "ipv6-address": [

                ],
                "route": [

                ],
                "dns-server": [

                ],
                "dns-search": [

                ]
        },
        "data": {

        }
}

Aggiungo che con questa config il router esce in ipv4 e non in ipv6, i
client non navigano nè in ipv4 nè in ipv6.

Suggerimenti?


Cristian

Il giorno 18 maggio 2016 21:09, Stefano De Carlo <stefanauss a gmail.com> ha
scritto:

> Il 18/05/2016 18:48, Cristian Astorino ha scritto:
> > Sulla br-lan mi ritrovo un indirizzo global, ma non sembra essere
> proveniente da telecom:
>
> Ah si, quello è un ULA (un "privato" di IPv6), ma in effetti ce ne
> dovrebbe essere uno public global che manca.
>
> Stefanauss.
>
>
> _______________________________________________
> Calabria mailing list
> Calabria a ml.ninux.org
> http://ml.ninux.org/mailman/listinfo/calabria
>
>
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://ml.ninux.org/pipermail/calabria/attachments/20160519/2a6dec79/attachment-0001.htm>


Maggiori informazioni sulla lista Calabria