Wan6 Setup IPV6

I currently cant get wan6 to work, it shows

Error: Connection attempt failed < on the wan6 but i also have this thats popped up

Protocol: Virtual dynamic interface (DHCPv6 client)

My isp does support it, but looking at someones TPlink setup it shows the bellow thats working, how do I set this up in openwrt with these settings

PPPOE < i have user name set up
Share the same PPPOE with ipv4 ? ?
Assignment type: SLAAC+Stateless DHCP??

Configure your pppoe credentials and leave all the rest on its default value and see what happens.
Then please show us the result and your current network config in text form here.

1 Like

yeah ive set the PPPOE like i did on ipv4, but get this

Error: Connection attempt failed

Not changed anything else

how can i share the rest in text form? is there a command in ssh or a download?

The most likely problem is that you have the the device for the wan6 interface set incorrectly. It should be @wan (which is the pppoe tunnel) not wan(the physical device).
If that doesnt fix it then as suggested above , post your configuration details.
Connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:

Remember to redact passwords, MAC addresses and any public IP addresses you may have:


cat /etc/config/network
cat /etc/config/firewall

Cheers it was set to eth0, but changed it to @wan, but still fails with

Protocol: Alias Interface (PPPoE)
Error: Unknown error (OPTION_ERROR)

Heres detials from SSH

cat /etc/config/network

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

config globals 'globals'
        option ula_prefix ''

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'eth1'

config device
        option name 'eth1'
        option macaddr ''

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr '192.168.0.1'
        list dns '192.168.0.1'

config device
        option name 'eth0'
        option macaddr ''

config interface 'wan'
        option device 'eth0'
        option proto 'pppoe'
        option username 'bthomehub@btbroadband.com'
        option ipv6 'auto'

config interface 'wan6'
        option device '@wan'
        option proto 'pppoe'
        option username 'bthomehub@btbroadband.com'
        option ipv6 'auto'




cat /etc/config/firewall

config defaults
        option syn_flood '1'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'REJECT'

config zone 'lan'
        option name 'lan'
        list network 'lan'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'
        list device 'tun+'

config zone 'wan'
        option name 'wan'
        list network 'wan'
        list network 'wan6'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option masq '1'
        option mtu_fix '1'

config forwarding
        option src 'lan'
        option dest 'wan'

config rule
        option name 'Allow-DHCP-Renew'
        option src 'wan'
        option proto 'udp'
        option dest_port '68'
        option target 'ACCEPT'
        option family 'ipv4'

config rule
        option name 'Allow-Ping'
        option src 'wan'
        option proto 'icmp'
        option family 'ipv4'
        list icmp_type 'echo-request'
        option target 'DROP'

config rule
        option name 'Allow-IGMP'
        option src 'wan'
        option proto 'igmp'
        option family 'ipv4'
        option target 'DROP'

config rule
        option name 'Allow-DHCPv6'
        option src 'wan'
        option proto 'udp'
        option src_ip 'fc00::/6'
        option dest_ip 'fc00::/6'
        option dest_port '546'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-MLD'
        option src 'wan'
        option proto 'icmp'
        option family 'ipv6'
        list src_ip 'fe80::/10'
        option target 'DROP'

config rule
        option name 'Allow-ICMPv6-Input'
        option src 'wan'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        list icmp_type 'router-solicitation'
        list icmp_type 'neighbour-solicitation'
        list icmp_type 'router-advertisement'
        list icmp_type 'neighbour-advertisement'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-ICMPv6-Forward'
        option src 'wan'
        option dest '*'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-IPSec-ESP'
        option src 'wan'
        option dest 'lan'
        option proto 'esp'
        option target 'ACCEPT'

config rule
        option name 'Allow-ISAKMP'
        option src 'wan'
        option dest 'lan'
        option dest_port '500'
        option proto 'udp'
        option target 'ACCEPT'

Remove option proto and option username. You only need the pppoe credentials on wan. Wan6 is a virtual interface.

what should the proto be set to Static, DHCPv6, Unmanaged?

heres what i see

Running https://test-ipv6.com/ shows no ipv6 address detected

The wan6 interface should be set to DHCPv6 client.
You should also change the wan interface settings.
Change the 'Obtain IPV6 address' to Manual in advanced settings. With it set to Automatic its creating the wan_6 interface dynamically. Set to manual it will use the wan6 interface.
OR you could just keep it simple, leave the wan 'Obtain IPv6 address' set to automatic and delete the wan6 interface completely!

You do not need anything with the defaults. Only proto pppoe and the credentials.
Per default wan6 is set to dhcpv6 client and tries to request an address and a delegated prefix too.

cheers it shows the below

but the test shows

so how would i know if its working? if the above shows its not?

Dont know if this would affect it but my IPV6 shows the below , someone on same ISP shows /64

IPv6/60
IPv6 /128
IPv6-PD /56

How do I should know if you use pictures and no text and delete all meaningful information?

Again. The defaulta on OpenWrt gives you a delegated prefix if the ISP handes it out and OpenWrt assigns a prefix to lan by default too.
I don't know what you configured on your clients.

You still have two IPv6 intefaces , either remove the wan6 one, leaving the wan 'Obtain IPv6 address' set to automatic or set it to manual, save and reboot and the wan_6 interface should disappear

sorry, I missed the step on the wan to se the ipv6 dhcp to manual, that has removed the virtual one

As far as im aware, the only thing I changed was wan6 to PPPoE and have chnged this back

test site still shows no IPv6

That screenshot shows you're getting an IPv6 prefix allocated and the router is being assigned an IPv6 address. It looks like your devices on the LAN arent being assigned IPv6. Check the 'IPv6 prefix filter' on the LAN Advanced settings, make sure its set to wan6.

Your LAN section of /etc/config/network should then look something like this

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.x.x'
        option netmask '255.255.255.0'
        option ip6assign '64'
        list ip6class 'wan6'

and the wan6 section like

config interface 'wan6'
        option proto 'dhcpv6'
        option device '@wan'
        option reqaddress 'try'
        option reqprefix 'auto'
        list ip6class 'wan6'
        option peerdns '0'
 

I'm out of this thread. Why is nobody listing and just leaves the defaults alone?
If you have no idea what you are doing then please don't fiddle with stuff you don't understand.

Yes, I agree but @cah1982 HAS changed from the defaults and the config needs checking to get it back to something like the default unless he/she is prepared to reset it all and start again...

I honestly didnt know i was changing any defaults if i had just switch protocals to PPPoE and added the user name, changing it back, I thought it would go back to defaults

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '64'
        option ipaddr '192.168.0.1'
        list dns '192.168.0.1'
        list ip6class 'wan6'

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

I cant see these in Luci, what are they called

    list ip6class 'wan6'
    option peerdns '0'

Its fine, you can ignore those, its just how I've got my config.
So your LAN devices ought to be getting IPv6 addresses.
Assuming you have a windows device , what does IPCONFIG show ?

Yeah this shows

But could the bellow test be showing ipv6 not detected

because Im running adgaurd on the router?

You are not getting routed GUA (globally unique) IPv6 addresses allocated on the LAN. The fd98... addresses are ULA (Unique local). Hence the test is failing.
I'm not familiar with the use of Adguard but I wouldnt expect that to be an issue.
Two options:-

  1. have a read through this guide https://openwrt.org/docs/guide-user/network/ipv6/configuration and check your configuration against it
  2. do as @_bernd says, reset to defaults and start again