Unable to get my public IPV6 adress

Hi there,

I´m trying to set up Wireguard but can´t get my public IP adress.
Network config is using ds-lite and seems to work fine.

cat /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 'fd58:e1e3:43ed::/48'

config atm-bridge 'atm'
        option vpi '1'
        option vci '32'
        option encaps 'llc'
        option payload 'bridged'
        option nameprefix 'dsl'

config dsl 'dsl'
        option ds_snr_offset '0'
        option annex 'j'

config interface 'lan'
        option type 'bridge'
        option ifname 'eth0.1'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr '192.168.0.1'

config interface 'wan'
        option ifname 'dsl0.40'
        option proto 'pppoe'
        option username '***'
        option password '***'
        option ipv6 '1'

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

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '0 2 4 5 6t'

config interface 'wan6'
        option proto 'dhcpv6'
        option ifname '@wan'
        option reqaddress 'try'
        option reqprefix 'auto'

config interface 'wan4'
        option proto 'dslite'
        option ifname 'wan'
        option encaplimit 'ignore'
        option peeraddr '***'
        option tunlink 'wan6'

But I can't understand why the router gets just the prefix back while everything is ok for clients?

 wget -d -O- http://checkipv6.dyndns.com
Setting --output-document (outputdocument) to -
Setting --output-document (outputdocument) to -
DEBUG output created by Wget 1.20.3 on linux-gnu.

Reading HSTS entries from /root/.wget-hsts
--2020-12-16 17:40:32--  http://checkipv6.dyndns.com/
Resolving checkipv6.dyndns.com... 2600:2004:3001::70, 2600:2002:3001::70, 2600:200b:0:1::1, ...
Caching checkipv6.dyndns.com => 2600:2004:3001::70 2600:2002:3001::70 2600:200b:0:1::1 2a02:e183:1::70
Connecting to checkipv6.dyndns.com|2600:2004:3001::70|:80... connected.
Created socket 3.
Releasing 0x77d98fe0 (new refcount 1).

---request begin---
GET / HTTP/1.1
User-Agent: Wget/1.20.3 (linux-gnu)
Accept: */*
Accept-Encoding: identity
Host: checkipv6.dyndns.com
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
Content-Type: text/html
Server: DynDNS-CheckIP/1.0.1
Connection: close
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 113

---response end---
200 OK
Length: 113 [text/html]
Saving to: 'STDOUT'

-                               0%[                                                  ]       0  --.-KB/s               <html><head><title>Current IP Check</title></head><body>Current IP Address: ***</body></html>
-                             100%[=================================================>]     113  --.-KB/s    in 0s

Closed fd 3
2020-12-16 17:40:32 (1.04 MB/s) - written to stdout [113/113]

I don't understand the problem. The address shown as "Current IP Address" isn't a prefix, it's an IPv6 address as it should be.

2 Likes

Okay I'm confused because the adress will be filled with zeros and ddns rejects it. Also in a Browser i get this result, shouldn't it be the same?

Current IP Address: 2001:a61:***

Only if you run the browser and wget on the same computer, since each device and computer will have its own global IPv6 address(es).

1 Like

Thanks I should have realised that there is no NAT... Seems to be a problem in my DDNS config and i went down the wrong street completely.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.