Hi!
I just installed OpenWrt 19.07.3 r11063-85e04e9f46 on a TP-Link C7 v2 and can't get Ipv6 Working.
I have my ISP router Conected to the C7 Wan port with an static Ip4 Address "192.168.0.100".
I tried http://test-ipv6.com/ with my notebook conected directly to my isp router and all passed OK.
If i try it connected to my C7 it fails in:
Test with IPv4 DNS record||ok (0.662s) using ipv4|
|Test with IPv6 DNS record||bad (0.237s)|
|Test with Dual Stack DNS record||ok (0.652s) using ipv4|
|Test for Dual Stack DNS and large packet||ok (0.574s) using ipv4|
|Test IPv4 without DNS||ok (0.419s) using ipv4|
|Test IPv6 without DNS||bad (0.011s)|
|Test IPv6 large packet||bad (0.224s)|
|Test if your ISP's DNS server uses IPv6||ok (1.721s) using ipv4|
|Find IPv4 Service Provider||ok (0.736s) using ipv4 ASN 27747|
|Find IPv6 Service Provider||bad (0.217s)|
First problem i detect is wan6 is not up
{
"up": false,
"pending": true,
"available": true,
"autostart": true,
"dynamic": false,
"proto": "dhcpv6",
"device": "eth0.2",
"data": {
}
}
uci show network
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='fdde:e6dc:1be4::/48'
network.lan=interface
network.lan.type='bridge'
network.lan.ifname='eth1.1'
network.lan.proto='static'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.lan.ipaddr='192.168.2.1'
network.lan.ip6hint='10'
network.wan=interface
network.wan.ifname='eth0.2'
network.wan.proto='static'
network.wan.gateway='192.168.0.1'
network.wan.ipaddr='192.168.0.100'
network.wan.dns='200.115.192.28' '200.115.192.29' '8.8.8.8'
network.wan.type='bridge'
network.wan.netmask='255.255.255.0'
network.wan.ipv6='1'
network.wan6=interface
network.wan6.ifname='eth0.2'
network.wan6.proto='dhcpv6'
network.wan6.reqprefix='auto'
network.wan6.reqaddress='try'
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[0].vid='1'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].ports='6t 1'
network.@switch_vlan[1].vid='2'
network.GUEST=interface
network.GUEST.proto='static'
network.GUEST.ipaddr='192.168.5.1'
network.GUEST.netmask='255.255.255.0'
uci show firewall
firewall.@redirect[0]=redirect
firewall.@redirect[0].target='DNAT'
firewall.@redirect[0].src='wan'
firewall.@redirect[0].dest='lan'
firewall.@redirect[0].proto='tcp udp'
firewall.@redirect[0].src_dport='33476'
firewall.@redirect[0].dest_ip='192.168.2.125'
firewall.@redirect[0].dest_port='33476'
firewall.@redirect[0].name='Torrent'
firewall.@redirect[1]=redirect
firewall.@redirect[1].target='DNAT'
firewall.@redirect[1].src='wan'
firewall.@redirect[1].dest='lan'
firewall.@redirect[1].proto='tcp'
firewall.@redirect[1].src_dport='32400'
firewall.@redirect[1].dest_ip='192.168.2.125'
firewall.@redirect[1].dest_port='32400'
firewall.@redirect[1].name='PLEX'
firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood='1'
firewall.@defaults[0].input='ACCEPT'
firewall.@defaults[0].output='ACCEPT'
firewall.@defaults[0].forward='REJECT'
firewall.@defaults[0].flow_offloading='1'
firewall.@zone[0]=zone
firewall.@zone[0].name='lan'
firewall.@zone[0].input='ACCEPT'
firewall.@zone[0].output='ACCEPT'
firewall.@zone[0].forward='ACCEPT'
firewall.@zone[0].network='lan'
firewall.@zone[1]=zone
firewall.@zone[1].name='wan'
firewall.@zone[1].input='REJECT'
firewall.@zone[1].output='ACCEPT'
firewall.@zone[1].forward='REJECT'
firewall.@zone[1].masq='1'
firewall.@zone[1].mtu_fix='1'
firewall.@zone[1].network='wan wan6'
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src='lan'
firewall.@forwarding[0].dest='wan'
firewall.@rule[0]=rule
firewall.@rule[0].name='Allow-DHCP-Renew'
firewall.@rule[0].src='wan'
firewall.@rule[0].proto='udp'
firewall.@rule[0].dest_port='68'
firewall.@rule[0].target='ACCEPT'
firewall.@rule[0].family='ipv4'
firewall.@rule[1]=rule
firewall.@rule[1].name='Allow-Ping'
firewall.@rule[1].src='wan'
firewall.@rule[1].proto='icmp'
firewall.@rule[1].icmp_type='echo-request'
firewall.@rule[1].family='ipv4'
firewall.@rule[1].target='ACCEPT'
firewall.@rule[2]=rule
firewall.@rule[2].name='Allow-IGMP'
firewall.@rule[2].src='wan'
firewall.@rule[2].proto='igmp'
firewall.@rule[2].family='ipv4'
firewall.@rule[2].target='ACCEPT'
firewall.@rule[3]=rule
firewall.@rule[3].name='Allow-DHCPv6'
firewall.@rule[3].src='wan'
firewall.@rule[3].proto='udp'
firewall.@rule[3].src_ip='fc00::/6'
firewall.@rule[3].dest_ip='fc00::/6'
firewall.@rule[3].dest_port='546'
firewall.@rule[3].family='ipv6'
firewall.@rule[3].target='ACCEPT'
firewall.@rule[4]=rule
firewall.@rule[4].name='Allow-MLD'
firewall.@rule[4].src='wan'
firewall.@rule[4].proto='icmp'
firewall.@rule[4].src_ip='fe80::/10'
firewall.@rule[4].icmp_type='130/0' '131/0' '132/0' '143/0'
firewall.@rule[4].family='ipv6'
firewall.@rule[4].target='ACCEPT'
firewall.@rule[5]=rule
firewall.@rule[5].name='Allow-ICMPv6-Input'
firewall.@rule[5].src='wan'
firewall.@rule[5].proto='icmp'
firewall.@rule[5].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type' 'router-solicitation' 'neighbour-solicitation' 'router-advertisement' 'neighbour-advertisement'
firewall.@rule[5].limit='1000/sec'
firewall.@rule[5].family='ipv6'
firewall.@rule[5].target='ACCEPT'
firewall.@rule[6]=rule
firewall.@rule[6].name='Allow-ICMPv6-Forward'
firewall.@rule[6].src='wan'
firewall.@rule[6].dest='*'
firewall.@rule[6].proto='icmp'
firewall.@rule[6].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type'
firewall.@rule[6].limit='1000/sec'
firewall.@rule[6].family='ipv6'
firewall.@rule[6].target='ACCEPT'
firewall.@rule[7]=rule
firewall.@rule[7].name='Allow-IPSec-ESP'
firewall.@rule[7].src='wan'
firewall.@rule[7].dest='lan'
firewall.@rule[7].proto='esp'
firewall.@rule[7].target='ACCEPT'
firewall.@rule[8]=rule
firewall.@rule[8].name='Allow-ISAKMP'
firewall.@rule[8].src='wan'
firewall.@rule[8].dest='lan'
firewall.@rule[8].dest_port='500'
firewall.@rule[8].proto='udp'
firewall.@rule[8].target='ACCEPT'
firewall.@include[0]=include
firewall.@include[0].path='/etc/firewall.user'
firewall.@rule[9]=rule
firewall.@rule[9].enabled='1'
firewall.@rule[9].target='ACCEPT'
firewall.@rule[9].src='wan'
firewall.@rule[9].proto='tcp'
firewall.@rule[9].dest_port='32400'
firewall.@rule[9].name='Plex'
firewall.@rule[9].dest='lan'
firewall.@rule[9].dest_ip='192.168.2.125'
firewall.@zone[2]=zone
firewall.@zone[2].name='guest'
firewall.@zone[2].input='ACCEPT'
firewall.@zone[2].output='ACCEPT'
firewall.@zone[2].network='GUEST'
firewall.@zone[2].forward='ACCEPT'
firewall.@zone[2].mtu_fix='1'
firewall.@forwarding[1]=forwarding
firewall.@forwarding[1].dest='wan'
firewall.@forwarding[1].src='guest'
uci show dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].boguspriv='1'
dhcp.@dnsmasq[0].filterwin2k='0'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.@dnsmasq[0].local='/lan/'
dhcp.@dnsmasq[0].domain='lan'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].nonegcache='0'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.auto'
dhcp.@dnsmasq[0].nonwildcard='1'
dhcp.@dnsmasq[0].localservice='1'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='100'
dhcp.lan.leasetime='12h'
dhcp.lan.limit='100'
dhcp.lan.force='1'
dhcp.lan.dhcp_option='6,192.168.2.5,192.168.2.6'
dhcp.lan.dns='fdc3:64c:a099:0:ebff:7469:a854:1f0f'
dhcp.lan.ra='server'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra_management='1'
dhcp.wan=dhcp
dhcp.wan.interface='wan'
dhcp.wan.ignore='1'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='4'
dhcp.GUEST=dhcp
dhcp.GUEST.start='100'
dhcp.GUEST.leasetime='12h'
dhcp.GUEST.limit='150'
dhcp.GUEST.interface='GUEST'
tcpdump -i eth0.2 -vn -c 100 ip6 or udp port 547
tcpdump: listening on eth0.2, link-type EN10MB (Ethernet), capture size 262144 bytes
19:56:30.465668 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 136) fe80::2a9e:fcff:fe0f:f87d > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 136
hop limit 64, Flags [managed, other stateful], pref medium, router lifetime 1800s, reachable time 0ms, retrans timer 0ms
prefix info option (3), length 32 (4): 2800:810:485:8455::/64, Flags [onlink, auto], valid time 2139802s, pref. time 2139802s
route info option (24), length 24 (3): 2800:810:485:8455::/64, pref=medium, lifetime=2139802s
rdnss option (25), length 56 (7): lifetime 2139802s, addr: 2800:810:100::11 addr: 2800:810:100:3:200:115:192:89 addr: 2800:810:100:2:190:55:60:129
source link-address option (1), length 8 (1): 28:9e:fc:0f:f8:7d
19:57:00.478450 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 136) fe80::2a9e:fcff:fe0f:f87d > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 136
hop limit 64, Flags [managed, other stateful], pref medium, router lifetime 1800s, reachable time 0ms, retrans timer 0ms
prefix info option (3), length 32 (4): 2800:810:485:8455::/64, Flags [onlink, auto], valid time 2139802s, pref. time 2139802s
route info option (24), length 24 (3): 2800:810:485:8455::/64, pref=medium, lifetime=2139802s
rdnss option (25), length 56 (7): lifetime 2139802s, addr: 2800:810:100::11 addr: 2800:810:100:3:200:115:192:89 addr: 2800:810:100:2:190:55:60:129
source link-address option (1), length 8 (1): 28:9e:fc:0f:f8:7d
ping6 ipv6.google.com
PING ipv6.google.com (2800:3f0:4002:80d::200e): 56 data bytes
ping6: sendto: Permission denied
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:ac brd ff:ff:ff:ff:ff:ff
inet6 fe80::a62b:b0ff:fea5:acac/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:ab brd ff:ff:ff:ff:ff:ff
inet6 fe80::a62b:b0ff:fea5:acab/64 scope link
valid_lft forever preferred_lft forever
7: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:ab brd ff:ff:ff:ff:ff:ff
inet 192.168.2.1/24 brd 192.168.2.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 fdde:e6dc:1be4:10::1/60 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::a62b:b0ff:fea5:acab/64 scope link
valid_lft forever preferred_lft forever
8: eth1.1@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:ab brd ff:ff:ff:ff:ff:ff
11: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:ab brd ff:ff:ff:ff:ff:ff
inet6 fe80::a62b:b0ff:fea5:acab/64 scope link
valid_lft forever preferred_lft forever
12: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:aa brd ff:ff:ff:ff:ff:ff
inet6 fe80::a62b:b0ff:fea5:acaa/64 scope link
valid_lft forever preferred_lft forever
14: br-wan6: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether be:18:00:28:1b:e8 brd ff:ff:ff:ff:ff:ff
15: br-wan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:ac brd ff:ff:ff:ff:ff:ff
inet 192.168.0.100/24 brd 192.168.0.255 scope global br-wan
valid_lft forever preferred_lft forever
inet6 fe80::a62b:b0ff:fea5:acac/64 scope link
valid_lft forever preferred_lft forever
16: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-wan state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:ac brd ff:ff:ff:ff:ff:ff
in my computer: Ipconfig -all
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:ac brd ff:ff:ff:ff:ff:ff
inet6 fe80::a62b:b0ff:fea5:acac/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:ab brd ff:ff:ff:ff:ff:ff
inet6 fe80::a62b:b0ff:fea5:acab/64 scope link
valid_lft forever preferred_lft forever
7: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:ab brd ff:ff:ff:ff:ff:ff
inet 192.168.2.1/24 brd 192.168.2.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 fdde:e6dc:1be4:10::1/60 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::a62b:b0ff:fea5:acab/64 scope link
valid_lft forever preferred_lft forever
8: eth1.1@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:ab brd ff:ff:ff:ff:ff:ff
11: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:ab brd ff:ff:ff:ff:ff:ff
inet6 fe80::a62b:b0ff:fea5:acab/64 scope link
valid_lft forever preferred_lft forever
12: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:aa brd ff:ff:ff:ff:ff:ff
inet6 fe80::a62b:b0ff:fea5:acaa/64 scope link
valid_lft forever preferred_lft forever
14: br-wan6: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether be:18:00:28:1b:e8 brd ff:ff:ff:ff:ff:ff
15: br-wan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:ac brd ff:ff:ff:ff:ff:ff
inet 192.168.0.100/24 brd 192.168.0.255 scope global br-wan
valid_lft forever preferred_lft forever
inet6 fe80::a62b:b0ff:fea5:acac/64 scope link
valid_lft forever preferred_lft forever
16: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-wan state UP group default qlen 1000
link/ether a4:2b:b0:a5:ac:ac brd ff:ff:ff:ff:ff:ff
Any ideas??
Thanks in advance
Update
Removed: network.wan.type='bridge'
And now wan6 is up
ping6 ipv6.google.com
PING ipv6.google.com (2800:3f0:4002:80d::200e): 56 data bytes
64 bytes from 2800:3f0:4002:80d::200e: seq=0 ttl=56 time=9.107 ms
64 bytes from 2800:3f0:4002:80d::200e: seq=1 ttl=56 time=10.438 ms
64 bytes from 2800:3f0:4002:80d::200e: seq=2 ttl=56 time=8.809 ms
Works ok.
My local computer ipconfig has this:
Adaptador de Ethernet Ethernet:
Sufijo DNS específico para la conexión. . : lan
Descripción . . . . . . . . . . . . . . . : Intel(R) Ethernet Connection (2) I219-V
Dirección física. . . . . . . . . . . . . : E0-D5-5E-47-F3-C1
DHCP habilitado . . . . . . . . . . . . . : sí
Configuración automática habilitada . . . : sí
Vínculo: dirección IPv6 local. . . : fe80::d9fb:832:5541:7260%19(Preferido)
Dirección IPv4. . . . . . . . . . . . . . : 192.168.2.125(Preferido)
Máscara de subred . . . . . . . . . . . . : 255.255.255.0
Concesión obtenida. . . . . . . . . . . . : domingo, 31 de mayo de 2020 19:05:51
La concesión expira . . . . . . . . . . . : lunes, 1 de junio de 2020 07:05:51
Puerta de enlace predeterminada . . . . . : 192.168.2.1
Servidor DHCP . . . . . . . . . . . . . . : 192.168.2.1
IAID DHCPv6 . . . . . . . . . . . . . . . : 65066334
DUID de cliente DHCPv6. . . . . . . . . . : 00-01-00-01-23-8A-8A-5F-E0-D5-5E-47-F3-C1
Servidores DNS. . . . . . . . . . . . . . : 192.168.2.5
192.168.2.6
NetBIOS sobre TCP/IP. . . . . . . . . . . : habilitado
But http://test-ipv6.com/ stills fails:
Test with IPv4 DNS record
ok (0.455s) using ipv4
Test with IPv6 DNS record
bad (0.021s)
Test with Dual Stack DNS record
ok (0.468s) using ipv4
Test for Dual Stack DNS and large packet
ok (0.444s) using ipv4
Test IPv4 without DNS
ok (0.449s) using ipv4
Test IPv6 without DNS
bad (0.006s)
Test IPv6 large packet
bad (0.021s)
Test if your ISP's DNS server uses IPv6
ok (0.454s) using ipv4
Find IPv4 Service Provider
ok (0.446s) using ipv4 ASN 27747
Find IPv6 Service Provider
bad (0.034s)
How shouild i configure: ipv6 dhcp settings:
Router Advertisement-Service
DHCPv6-Service
NDP-Proxy
??