IPv6 on WAN

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page 1, 2  Next
Author Message
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Mon Nov 14, 2016 11:00    Post subject: IPv6 on WAN Reply with quote
Good morning,

I don't know if this is the case for advanced networking but I would appreciate some pointers.

My ISP started its IPv6 transition, so if I connect the modem directly to my computer I receive both an IPv6 IP and an IPv4 IP.

For now I don't care much about having IPv6 on my LAN, in fact I prefer not having it, but can someone help me get both IPs on WAN?

My ISP uses PPPoE and my router is an ASUS RT-N16, currently running Kong's kingkong 21661 build.

Thanks in advance!
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6868
Location: Romerike, Norway

PostPosted: Mon Nov 14, 2016 11:22    Post subject: Reply with quote
Do you have the Setup->IPV6 Tab?

If not, get a newer Build.
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Mon Nov 14, 2016 11:31    Post subject: Reply with quote
Do you recommend an specific build number for this router?

I don't have Setup->IPv6 tab, but it might be because IPv6 support is disabled in Administration tab, could be it?

Thanks for your quick response!
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6868
Location: Romerike, Norway

PostPosted: Mon Nov 14, 2016 11:39    Post subject: Reply with quote
ftp://ftp.dd-wrt.com/betas/2016/11-01-2016-r30826/broadcom_K3X/dd-wrt.v24-30826_NEWD-2_K3.x_mega_RT-N16.trx
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Mon Nov 14, 2016 11:44    Post subject: Reply with quote
Ok, I tend to prefer Kong's builds, but I will check this one.

Assuming I have Setup->IPv6 tab, what do I have to do in terms of configuration? Can I leave my LAN with IPv4?

Thanks!
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6868
Location: Romerike, Norway

PostPosted: Mon Nov 14, 2016 11:47    Post subject: Reply with quote
Kong does not make builds for the N16 anymore
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Mon Nov 14, 2016 11:53    Post subject: Reply with quote
Hum, that is sad to hear..

What about my question? Any comments?
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6868
Location: Romerike, Norway

PostPosted: Mon Nov 14, 2016 12:13    Post subject: Reply with quote
It mostly depends of your isp.

Set ipv6 with prefix delegation and s prefix length between 48 snd 64.
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Sun Nov 27, 2016 2:00    Post subject: Reply with quote
To update my thread:

I'm now with build BS 30880 big, IPv6 works on WAN, but ipv6-test.com from clients reports it as "not supported".

I've set "Setup->IPv6" with "DHCPv6 with Prefix Delegation", "Prefix length" of 64. I've also enabled DHCPv6s with default settings and radvd with default settings.

Below some useful information for you guys to help me:

Quote:
root@madmax:~# ps
PID USER VSZ STAT COMMAND
1 root 1628 S /sbin/init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [kworker/0:0]
5 root 0 SW< [kworker/0:0H]
6 root 0 SW [kworker/u2:0]
7 root 0 SW< [khelper]
8 root 0 SW [kworker/u2:1]
83 root 0 SW< [writeback]
86 root 0 SW< [bioset]
87 root 0 SW< [crypto]
89 root 0 SW< [kblockd]
127 root 0 SW [kswapd0]
128 root 0 SW [fsnotify_mark]
300 root 1760 S process_monitor
304 root 1652 S inadyn -u <inadyn user> -p <inadyn pass> --input_file /tmp/ddns/inadyn.conf
307 root 1768 S upnp -D -W ppp0
310 root 1696 S wland
317 root 1828 S nas -P /tmp/nas.wl0lan.pid -H 34954 -l br0 -i eth1 -A -m 128 -k <my wifi pass> -s <my ssid> -w 4 -g 3600
375 root 1760 S resetbutton
378 root 1200 S syslogd -L
382 root 1200 S klogd
736 root 0 SW< [deferwq]
975 root 912 S /sbin/hotplug2 --set-rules-file /etc/hotplug2.rules --persistent
979 root 1760 S watchdog
1005 root 0 SW [khubd]
1936 root 1048 S dropbear -b /tmp/loginprompt -r /tmp/root/.ssh/ssh_host_rsa_key -p 22
1937 root 1212 S -sh
6904 root 0 SW [kworker/0:1]
7100 root 1760 S /tmp/ppp/redial 30
8163 root 1452 S radvd -C /tmp/radvd.conf
8164 root 1452 S radvd -C /tmp/radvd.conf
8169 root 976 S dhcp6s -c /tmp/dhcp6s.conf -D br0
15543 root 1204 R ps
32483 root 980 S dropbear -b /tmp/loginprompt -r /tmp/root/.ssh/ssh_host_rsa_key -p 22
32493 root 1236 S dnsmasq -u root -g root --conf-file=/tmp/dnsmasq.conf --cache-size=1500
32497 root 884 S cron
32582 root 4104 S httpd -p 80
32618 root 1160 S pppd file /tmp/ppp/options.pppoe
32623 root 1880 S ttraff
32652 root 972 S dhcp6c -c /tmp/dhcp6c.conf -T LL ppp0
root@madmax:~#


Quote:
root@madmax:~# ifconfig
br0 Link encap:Ethernet HWaddr 20:CF:30:CE:0E:E6
inet addr:172.17.82.23 Bcast:172.17.82.255 Mask:255.255.255.0
inet6 addr: 2804:7f1:2280:45d5:200:ff:fe00:0/64 Scope:Global
inet6 addr: fe80::22cf:30ff:fece:ee6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2957976 errors:0 dropped:366 overruns:0 frame:0
TX packets:2760627 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:615256505 (586.7 MiB) TX bytes:1625123486 (1.5 GiB)

br0:0 Link encap:Ethernet HWaddr 20:CF:30:CE:0E:E6
inet addr:169.254.255.1 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

eth0 Link encap:Ethernet HWaddr 20:CF:30:CE:0E:E4
inet6 addr: fe80::22cf:30ff:fece:ee4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5298228 errors:0 dropped:0 overruns:0 frame:0
TX packets:5253235 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2127768123 (1.9 GiB) TX bytes:2055131548 (1.9 GiB)
Interrupt:4 Base address:0x2000

eth1 Link encap:Ethernet HWaddr 20:CF:30:CE:0E:E6
inet6 addr: fe80::22cf:30ff:fece:ee6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:203314 errors:0 dropped:31 overruns:0 frame:4878399
TX packets:277998 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:133501088 (127.3 MiB) TX bytes:240075946 (228.9 MiB)
Interrupt:3 Base address:0x1000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MULTICAST MTU:65536 Metric:1
RX packets:85 errors:0 dropped:0 overruns:0 frame:0
TX packets:85 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7174 (7.0 KiB) TX bytes:7174 (7.0 KiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:179.182.148.3 P-t-P:189.59.241.234 Mask:255.255.255.255
inet6 addr: 2804:7f1:240e:ae75:5d40:8ab:f1b9:5674/64 Scope:Global
inet6 addr: fe80::5d40:8ab:f1b9:5674/10 Scope:Link
UP POINTOPOINT RUNNING MULTICAST MTU:1492 Metric:1
RX packets:1632198 errors:0 dropped:0 overruns:0 frame:0
TX packets:1513165 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1184876112 (1.1 GiB) TX bytes:227840437 (217.2 MiB)

vlan1 Link encap:Ethernet HWaddr 20:CF:30:CE:0E:E4
inet6 addr: fe80::22cf:30ff:fece:ee4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2667890 errors:0 dropped:85 overruns:0 frame:0
TX packets:2511058 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:471617699 (449.7 MiB) TX bytes:1391670518 (1.2 GiB)

vlan2 Link encap:Ethernet HWaddr 20:CF:30:CE:0E:E5
inet6 addr: fe80::22cf:30ff:fece:ee5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2630338 errors:0 dropped:0 overruns:0 frame:0
TX packets:2742170 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1539589408 (1.4 GiB) TX bytes:642447460 (612.6 MiB)

vlan2:0 Link encap:Ethernet HWaddr 20:CF:30:CE:0E:E5
inet addr:192.168.25.2 Bcast:192.168.25.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

root@madmax:~#


Quote:
root@madmax:~# ip -6 route
2804:7f1:2280:45d5::/64 dev br0 proto kernel metric 256
2804:7f1:240e:ae75::/64 dev ppp0 proto kernel metric 256
fe80::/64 dev eth0 proto kernel metric 256
fe80::/64 dev br0 proto kernel metric 256
fe80::/64 dev vlan1 proto kernel metric 256
fe80::/64 dev eth1 proto kernel metric 256
fe80::/64 dev vlan2 proto kernel metric 256
fe80::/10 dev ppp0 metric 1
fe80::/10 dev ppp0 proto kernel metric 256
default via fe80::230:88ff:fe04:714a dev ppp0 proto ra metric 1024 expires 1758sec hoplimit 64
unreachable default dev lo proto kernel metric -1 error -128
ff00::/8 dev eth0 metric 256
ff00::/8 dev br0 metric 256
ff00::/8 dev vlan1 metric 256
ff00::/8 dev eth1 metric 256
ff00::/8 dev vlan2 metric 256
ff00::/8 dev ppp0 metric 256
unreachable default dev lo proto kernel metric -1 error -128
root@madmax:~#


Quote:
root@madmax:~# cat /tmp/dhcp6c.conf
interface ppp0 {
send ia-pd 0;
send rapid-commit;
request domain-name-servers;
script "/sbin/dhcp6c-state";
};
id-assoc pd 0 {
prefix-interface br0 {
sla-id 0;
sla-len 0;
};
};
id-assoc na 0 { };
root@madmax:~#


Quote:
root@madmax:~# cat /tmp/radvd.conf
interface br0
{
IgnoreIfMissing on;
AdvSendAdvert on;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
AdvHomeAgentFlag off;
AdvManagedFlag off;
AdvOtherConfigFlag on;
AdvLinkMTU 1452;
prefix 2804:7f1:2280:45d5::/64
{
AdvOnLink on;
AdvAutonomous on;
};
RDNSS 2804:7f4:2002:1005::98 2804:7f4:2002:1005::99 {};
};
root@madmax:~#


Quote:
root@madmax:~# cat /tmp/dhcp6s.conf
option refreshtime 900;
option domain-name-servers 2804:7f4:2002:1005::98 2804:7f4:2002:1005::99 ;

interface br0 {
allow rapid-commit;
};
root@madmax:~#


Quote:
root@madmax:~# radvdump
#
# radvd configuration generated by radvdump 2.13
# based on Router Advertisement from fe80::22cf:30ff:fece:ee6
# received by interface br0
#

interface br0
{
AdvSendAdvert on;
# Note: {Min,Max}RtrAdvInterval cannot be obtained with radvdump
AdvManagedFlag off;
AdvOtherConfigFlag on;
AdvReachableTime 0;
AdvRetransTimer 0;
AdvCurHopLimit 64;
AdvDefaultLifetime 30;
AdvHomeAgentFlag off;
AdvDefaultPreference medium;
AdvLinkMTU 1452;
AdvSourceLLAddress on;

prefix 2804:7f1:2280:45d5::/64
{
AdvValidLifetime 86400;
AdvPreferredLifetime 14400;
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr off;
}; # End of prefix definition


RDNSS 2804:7f4:2002:1005::98 2804:7f4:2002:1005::99
{
AdvRDNSSLifetime 10;
}; # End of RDNSS definition

}; # End of interface definition
^C
root@madmax:~#
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6868
Location: Romerike, Norway

PostPosted: Sun Nov 27, 2016 11:32    Post subject: Reply with quote
Is 64 the correct prefix length?

These two addresses is not in the same network

2804:7f1:2280:45d5::/64 dev br0
2804:7f1:240e:ae75::/64 dev ppp0

They are equal in /32 which is what your ISP is getting.

Your prefix length should be between 48 and 64

With 64 you get only one sub-net

With 60 you get 16 sub-nets and can have one for br0, ppp0 and br1 etc.

2804:7f1:240e:ae70::/60

2804:7f1:240e:ae70::/64 for ppp0
2804:7f1:240e:ae71::/64 for br0
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Sun Nov 27, 2016 14:48    Post subject: Reply with quote
I don't know, how can I be sure?

I've seen other users from my ISP saying they are only giving /64, but is this trial & error or if I plug it to my computer I can discover?

Thanks!
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Sun Dec 04, 2016 16:53    Post subject: Reply with quote
first start by getting the /64 assigned working before trying larger prefix.

from the dhcp6c log in your PM and the posts in this thread the issue seems on the lan side. to be sure from the cli can you run

ping6 ipv6.google.com

also what are the clients? windows pcs, linux, apple? have you tried rebooting clients after setting up the router
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Sun Dec 04, 2016 17:01    Post subject: Reply with quote
Hi James,

From the router I can ping ipv6.google.com fine. My client is Windows 10.

So just to be sure I have to:

- Set "DHCPv6 with Prefix Delegation" in IPv6 Type with Prefix Length 64
- Enable DHCP6s and Radvd

Am I correct?

The setting I pasted to you in PM is with IPv6 Type "Native IPv6 from ISP"
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6868
Location: Romerike, Norway

PostPosted: Sun Dec 04, 2016 17:45    Post subject: Reply with quote
Does the client get a Link Local Address (fe80:Smile in addition to the Global Address?
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Sun Dec 04, 2016 17:54    Post subject: Reply with quote
Yes, as you can see below (unfortunately it is in my native language, but I guess you can understand):

It seems that DNS is broken in Windows 10 according to here: https://social.technet.microsoft.com/Forums/office/en-US/b16e7d78-e390-4ada-a24b-3ccba60fa571/no-ipv6-dns-statelessdhcp-since-windows-10-anniversary-update?forum=win10itpronetworking

My current settings is:

- IPv6 Type: DHCPv6 with Prefix Delegation
- DHCPv6s enabled with default settings
- Radvd enabled with default settings

Adaptador Ethernet Ethernet:

Sufixo DNS específico de conexão. . . . . . :
Descrição . . . . . . . . . . . . . . . . . : Intel(R) Ethernet Connection (2) I219-V
Endereço Físico . . . . . . . . . . . . . . : D0-50-99-XX-XX-XX
DHCP Habilitado . . . . . . . . . . . . . . : Sim
Configuração Automática Habilitada. . . . . : Sim
Endereço IPv6 . . . . . . . . . . : 2804:7f1:2280:1143:ed3c:6c6a:a146:a64d(Preferencial)
Endereço IPv6 Temporário. . . . . . . . : 2804:7f1:2280:1143:4e:fe07:51cd:caec(Preferencial)
Endereço IPv6 de link local . . . . . . . . : fe80::ed3c:6c6a:a146:a64d%2(Preferencial)
Endereço IPv4. . . . . . . . . . . . . . . : 172.17.82.104(Preferencial)
Máscara de Sub-rede . . . . . . . . . . . . : 255.255.255.0
Concessão Obtida. . . . . . . . . . . . . . : domingo, 4 de dezembro de 2016 15:40:15
Concessão Expira. . . . . . . . . . . . . . : segunda-feira, 5 de dezembro de 2016 15:40:15
Gateway Padrão. . . . . . . . . . . . . . . : fe80::22cf:30ff:fece:ee6%2
172.17.82.23
Servidor DHCP . . . . . . . . . . . . . . . : 172.17.82.23
IAID de DHCPv6. . . . . . . . . . . . . . . : 63983769
DUID de Cliente DHCPv6. . . . . . . . . . . : 00-01-00-01-1F-01-C3-2D-D0-50-99-95-88-8E
Servidores DNS. . . . . . . . . . . . . . . : 2804:7f4:2002:1005::98
2804:7f4:2002:1005::99
172.17.82.23
NetBIOS em Tcpip. . . . . . . . . . . . . . : Habilitado
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum