Openwrt ipv6 leases

Hello!

I have the Openwrt router connect to another router which connect to the internet through PPPoE.

I tried configuring the openwrt router and do not have dhcpv6 leases on wlan, also ipv6 works from router diagnostic page but not for clients on wlan ...

Now it seems the router gives ipv6 leases only on lan, not wlan ...


root@LEDE:~# ip -6 a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
    inet6 2a02:xxxx:xxxx:xxxx:cc76:deff:fe9d:138f/64 scope global dynamic
       valid_lft 86242sec preferred_lft 14242sec
    inet6 fe80::cc76:deff:fe9d:138f/64 scope link
       valid_lft forever preferred_lft forever
8: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
    inet6 fe80::202:3ff:fe04:506/64 scope link
       valid_lft forever preferred_lft forever
  • Are you stating an issue or a problem?
  • OpenWrt is setup with DHCPv6 by default

What version of OpenWrt are you running?

1 Like

The prefix you receive is the minimum and cannot be used on the wireless interface as well.

  1. You could bridge them.
  2. You could request from the other router a prefix for delegation.
  3. You could enable NDP proxy.
2 Likes

17.01.4 is the version and is a problem probably of configuration one, ipv6 does not work on wlan.

How can I request a prefix from other router?

LE:


config interface 'lan'                                                                     option proto 'static'                                                              option ipaddr '192.168.1.1'                                                        option netmask '255.255.255.0'                                                     option metric '1'                                                                  option ipv6 'auto'                                                                 option ip6assign '64'                                                              option reqprefix '64'                                                      

config interface 'wan'                                                                     option ifname 'eth0'                                                               option proto 'dhcp'                                                                option macaddr 'xx:xx:xx:xx:xx:xx'                                                 option ipv6 'auto'                                                                 option broadcast '1'                                                       

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

config interface 'ipv6'                                                                    option proto 'dhcpv6'                                                              option ifname 'eth0'                                                               option ipv6 'auto'                                                                 option reqaddress 'try'                                                            option ip6prefix '2A02:xxxx:xxxx::'                                                option reqprefix '64'                                                      config route6                                                                              

option interface 'lan'                                                             option target 'fe80::202:3ff:fe04:506/64'                                          option gateway 'fe80::e80:63ff:fee7:2384'                                  

config route6                                                                              option interface 'lan'                                                             option target 'fe80::202:3ff:fe04:506/64'                                          option gateway 'fe80::e80:63ff:fee7:2384'


17.01 is old and unsupported.

Please run the following commands (copy-paste the whole block) and paste the output here, using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have

ubus call system board; \
uci export network; uci export wireless; \
uci export dhcp; uci export firewall; \
head -n -0 /etc/firewall.user; \
ip -4 addr ; ip -4 ro li tab all ; ip -4 ru; \
ip -6 addr ; ip -6 ro li tab all ; ip -6 ru; \
ls -l  /etc/resolv.* /tmp/resolv.* /tmp/resolv.*/* ; head -n -0 /etc/resolv.* /tmp/resolv.* /tmp/resolv.*/*
1 Like