I want to configure IPv6. I see that my ISP is providing IPv6 recently and I want to connect with OpenWrt. For reference here is the data from one of the other customers' routers:
(wan)
(lan)
As you can see, the router has a different IP than the clients. And on a client connected to that router I get these IPs:
Client:
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether fa:63:14:8a:13:6a brd ff:ff:ff:ff:ff:ff permaddr 18:d6:c7:11:b3:6c
inet 192.168.0.223/24 brd 192.168.0.255 scope global dynamic noprefixroute wlan0
valid_lft 3589sec preferred_lft 3589sec
inet6 2800:2145:1000:6c8::c0e3/128 scope global dynamic noprefixroute
valid_lft 3589sec preferred_lft 3589sec
inet6 2800:2145:1000:6c8:eb70:ea74:a88d:5697/64 scope global dynamic noprefixroute
valid_lft 298sec preferred_lft 298sec
inet6 fe80::2dbf:fb6e:2b7f:6a8/64 scope link noprefixroute
valid_lft forever preferred_lft forever
As you can see, the router has a different IP than the clients. I get an IPv6 on WAN like the one in the "Dirección IPv6 WAN (IPv6):
As far as I know, I am not having IPv6 on either the lan
or the invitados
interface.
root@mr70x:~# cat /etc/config/network
config globals 'globals'
option packet_steering '2'
option ula_prefix 'fd84:d35d:406e::/48'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.20.1'
option netmask '255.255.255.0'
option defaultroute '0'
option delegate '0'
option ip6assign '64'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
option metric '1'
option peerdns '0'
config interface 'invitados'
option proto 'static'
option device 'br-invitados'
option ipaddr '192.168.50.1'
option netmask '255.255.255.0'
option defaultroute '0'
option delegate '0'
option ip6assign '64'
config device
option name 'wan'
config interface 'wan6'
option proto 'dhcpv6'
option device '@wan'
option reqaddress 'try'
option norelease '0'
option peerdns '0'
option reqprefix 'no'
option ip6assign '64'
root@mr70x:~# cat /etc/config/firewall
config defaults
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
list network 'wg0'
config zone
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
list network 'wan'
list network 'wan2'
list network 'wwan'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
list src_ip 'fc00::/6'
list dest_ip 'fc00::/6'
config rule
option name 'Allow-MLD'
option src 'wan'
option proto 'icmp'
option src_ip 'fe80::/10'
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family 'ipv6'
option target 'ACCEPT'
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 zone
option name 'invitados'
option input 'DROP'
option output 'ACCEPT'
option forward 'DROP'
list network 'invitados'
config forwarding
option src 'invitados'
option dest 'wan'
Client:
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 18:d6:c7:11:b3:6c brd ff:ff:ff:ff:ff:ff
inet 192.168.20.195/24 brd 192.168.20.255 scope global dynamic noprefixroute wlan0
valid_lft 86034sec preferred_lft 86034sec
inet6 fd84:d35d:406e:1::7e7/128 scope global dynamic noprefixroute
valid_lft 86038sec preferred_lft 86038sec
inet6 fd84:d35d:406e:1:a13:16bc:59fa:925a/64 scope global noprefixroute
valid_lft forever preferred_lft 604691sec
inet6 fe80::629d:927b:f513:9060/64 scope link noprefixroute
valid_lft forever preferred_lft forever
I've already asked the ISP and they say "we only support our device and not customer routers."