I'd appreciate to get some help about IPv6 configuration on Barrier
Breaker. I've configured two interfaces, lan and wlan, both with
option ip6assign '60'. But after reboot, it's only the lan interface
that has working IPv6.

odhcpd outputs: A default route is present but there is no public
prefix on br-wlan thus we don't announce a default route!

ifstate wan6 outputs:

{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "uptime": 20467,
        "l3_device": "eth0.2",
        "proto": "dhcpv6",
        "device": "eth0.2",
        "metric": 0,
        "delegation": true,
        "ipv4-address": [
                
        ],
        "ipv6-address": [
                {
                        "address": "2a02:fe0:c100:2:68d4:68f4:337d:cbf5",
                        "mask": 128,
                        "preferred": 584332,
                        "valid": 1189132
                }
        ],
        "ipv6-prefix": [
                {
                        "address": "2a02:fe0:c120:2780::",
                        "mask": 60,
                        "preferred": 584332,
                        "valid": 1189132,
                        "class": "wan6",
                        "assigned": {
                                "lan": {
                                        "address": "2a02:fe0:c120:2780::",
                                        "mask": 60
                                }
                        }
                }
        ],
        "ipv6-prefix-assignment": [
                
        ],
        "route": [
                {
                        "target": "::",
                        "mask": 0,
                        "nexthop": "fe80::214:f1ff:fee6:3531",
                        "metric": 512,
                        "valid": 8976,
                        "source": "2a02:fe0:c120:2780::\/60"
                },
                {
                        "target": "::",
                        "mask": 0,
                        "nexthop": "fe80::214:f1ff:fee6:3531",
                        "metric": 512,
                        "valid": 8976,
                        "source": "::\/128"
                },
                {
                        "target": "::",
                        "mask": 0,
                        "nexthop": "fe80::214:f1ff:fee6:3531",
                        "metric": 512,
                        "valid": 8976,
                        "source": "2a02:fe0:c100:2:68d4:68f4:337d:cbf5\/128"
                }
        ],
        "dns-server": [
                "2a02:fe0:1:2:1:0:1:110",
                "2a02:fe0:1:2:1:0:1:111"
        ],
        "dns-search": [
                
        ],
        "inactive": {
                "ipv4-address": [
                        
                ],
                "ipv6-address": [
                        
                ],
                "route": [
                        
                ],
                "dns-server": [
                        
                ],
                "dns-search": [
                        
                ]
        },
        "data": {
                "passthru": 
"001700202a020fe00001000200010000000101102a020fe0000100020001000000010111"
        }
}

uci show network outputs:

network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.globals=globals
network.globals.ula_prefix=fda4:f0f0:5137::/48
network.lan=interface
network.lan.ifname=eth0.1 tap0
network.lan.force_link=1
network.lan.type=bridge
network.lan.proto=static
network.lan.ipaddr=10.0.1.1
network.lan.netmask=255.255.255.0
network.lan.ip6assign=60
network.wlan=interface
network.wlan.ifname=wlan0 wlan1
network.wlan.type=bridge
network.wlan.proto=static
network.wlan.ipaddr=192.168.2.1
network.wlan.netmask=255.255.255.0
network.wlan.ip6assign=60
network.wan=interface
network.wan.ifname=eth0.2
network.wan.proto=dhcp
network.wan6=interface
network.wan6.ifname=@wan
network.wan6.proto=dhcpv6
network.@switch[0]=switch
network.@switch[0].name=switch0
network.@switch[0].reset=1
network.@switch[0].enable_vlan=1
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device=switch0
network.@switch_vlan[0].vlan=1
network.@switch_vlan[0].ports=0t 2 3 4 5
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device=switch0
network.@switch_vlan[1].vlan=2
network.@switch_vlan[1].ports=0t 1

Why don't odhcpd setup a working IPv6 also on wlan? Do you have any
hint? Please tell me if you need some more information to answer the question.

Thanks and regards,

Lars

On ti., april 07, 2015 at 11:08:12 +0200, Lars Bjørndal wrote:
> Replying to myself
> 
> On Sun, Apr 05, 2015 at 10:04:59PM +0200, Lars Bjørndal wrote:
> > Hello list
> > 
> > On an Barrier breaker installation, I get the log filled up with
> > messages like this:
> > 
> > Sun Apr  5 19:34:16 2015 daemon.warn odhcpd[846]: A default route is
> > present but there is no public prefix on br-wlan thus we don't announce
> > a default route!
> > 
> > I've configured separate networks for lan and wlan, so these networks
> > are not bridged, as the default configuration does. Hope someone here
> > can help me fix the problem. Some details:
> > 
> > From /etc/config/wireless:
> > 
> > config wifi-device  radio0
> > 
> >   ...
> > 
> > config wifi-iface
> >         option device   radio0
> >         option network  wlan
> >         option mode     ap
> >         option ssid     example
> >         option encryption none
> > 
> > config wifi-device  radio1
> >   ...
> > 
> > config wifi-iface
> >         option device   radio1
> >         option network  wlan
> >         option mode     ap
> >         option ssid     example
> >         option encryption none
> > 
> > From /etc/config/network
> > 
> > config interface 'loopback'
> >   ...
> > 
> > config globals 'globals'
> >         option ula_prefix 'fda4:f0f0:5137::/48'
> > 
> > config interface 'lan'
> >         option ifname 'eth0.1 tap0'
> >         option force_link '1'
> >         option type 'bridge'
> >         option proto 'static'
> >         option ipaddr '10.0.1.1'
> >         option netmask '255.255.255.0'
> >         option ip6assign '60'
> > 
> > config interface 'wan'
> >    ...
> > 
> > config interface 'wan6'
> >    ...
> > 
> > config interface wlan
> >         option ifname 'wlan'
> >         option type 'bridge'
> >         option proto 'static'
> >         option ipaddr '192.168.2.1'
> >         option netmask '255.255.255.0'
> >         option ip6assign '60'
> > 
> > 'brctl show' outputs
> > bridge name     bridge id               STP enabled     interfaces
> > br-lan          7fff.e8de27ffaf78       no              eth0.1
> >                                                         tap0
> > br-wlan         7fff.e8de27ffaf79       no              wlan0
> >                                                         wlan1
> > 
> > /etc/config/dhcp
> > 
> > config dnsmasq
> >     option domainneeded '1'
> >     option boguspriv '1'
> >     option filterwin2k '0'
> >     option localise_queries '1'
> >     option rebind_protection '1'
> >     option rebind_localhost '1'
> >     option local '/lan/'
> >     #option domain 'lan'
> >     option domain 'example.com'
> >     option expandhosts '1'
> >     option nonegcache '0'
> >     option authoritative '1'
> >     option readethers '1'
> >     option leasefile '/tmp/dhcp.leases'
> >     option resolvfile '/tmp/resolv.conf.auto'
> > 
> > config dhcp 'lan'
> >     option interface 'lan'
> >     option start '100'
> >     option limit '150'
> >     option leasetime '12h'
> >     option dhcpv6 'server'
> >     option ra 'server'
> > 
> > config dhcp 'wlan'
> >     option interface 'wlan'
> >     option start '100'
> >     option limit '150'
> >     option leasetime '12h'
> >     option dhcpv6 'server'
> >     option ra 'server'
> > 
> > 
> > config dhcp 'wan'
> >     option interface 'wan'
> >     option ignore '1'
> > 
> > config odhcpd 'odhcpd'
> >     option maindhcp '0'
> >     option leasefile '/tmp/hosts/odhcpd'
> >     option leasetrigger '/usr/sbin/odhcpd-update'
> 
> 
> I can 'ping6 www.get.no' from a machine connected to teh lan
> interface, but not from a machine connected to wlan. Hope someone has
> a clue.
> 
> Lars
> _______________________________________________
> openwrt-users mailing list
> [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
> 
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to