How to set static IPv6 on wan?

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
isaacx123
DD-WRT Novice


Joined: 01 Oct 2020
Posts: 6

PostPosted: Thu Sep 15, 2022 2:43    Post subject: How to set static IPv6 on wan? Reply with quote
So I requested a static IPv6 to my fiber ISP, they gave me one(yes I know, only one) and now I am wondering how do I set it in dd-wrt.
I am using a R7000 with build r47033, the ISP told me that the port 4 of the ONU was now on bridge mode and they gave me two IPs, one private IPv4 and one public IPv6, they told I should dual stack because not all websites and services work with IPv6 yet.

This is what they gave me in the email:
IPv6:
2001:redacted for privacy /126
2001:redacted for privacy
DNS:
2001:4860:4860::8888
2001:4860:4860::8844

IPv4:
192.168.199.34 IP
255.255.255.0
192.168.199.1 Gateway
DNS:
8.8.8.8
8.8.4.4

My questions is, how do I configure the IPv6s, why did they gave me two, one with a prefix and the other none? And finally, why I can't type 3 digits in the prefix length?

Sponsor
isaacx123
DD-WRT Novice


Joined: 01 Oct 2020
Posts: 6

PostPosted: Mon Sep 19, 2022 1:18    Post subject: I give up. Reply with quote
Well I give up Neutral , I couldn't figure it out, I even tried through SSH with the /etc/config/network file but it doesn't exist for some reason.
I'll have to get an R7800 and install OpenWRT on it.
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Mon Sep 19, 2022 6:06    Post subject: Reply with quote
A prefix is between 48 and 64.

Looks like your ISP is going outside of the standard.

You can add addresses with ifconfig in startup.
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Mon Sep 19, 2022 6:25    Post subject: Reply with quote
What is the default nvram name and value for Prefix Length? ipv6_pf_len=64? nvram set ipv6_pf_len=126
Or, in browser right click in prefix length field inspect element set maxlength to 3 (temporary workaround).
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Mon Sep 19, 2022 7:38    Post subject: Re: How to set static IPv6 on wan? Reply with quote
isaacx123 wrote:

This is what they gave me in the email:
IPv6:
2001:redacted for privacy /126
2001:redacted for privacy
DNS:


You have massedrap out to much information. Mask 4 digits in the middle.

Is the second address a /64?

It's probably for your lan.
isaacx123
DD-WRT Novice


Joined: 01 Oct 2020
Posts: 6

PostPosted: Mon Sep 19, 2022 15:08    Post subject: Reply with quote
blkt wrote:
What is the default nvram name and value for Prefix Length? ipv6_pf_len=64? nvram set ipv6_pf_len=126
Or, in browser right click in prefix length field inspect element set maxlength to 3 (temporary workaround).


The hacky inspect field thingy didn't work:


I rebooted the router and the setting was maintained but IPv6 connectivity still doesn't work.
isaacx123
DD-WRT Novice


Joined: 01 Oct 2020
Posts: 6

PostPosted: Mon Sep 19, 2022 15:39    Post subject: Re: How to set static IPv6 on wan? Reply with quote
Per Yngve Berg wrote:
isaacx123 wrote:

This is what they gave me in the email:
IPv6:
2001:redacted for privacy /126
2001:redacted for privacy
DNS:


You have massedrap out to much information. Mask 4 digits in the middle.

Is the second address a /64?

It's probably for your lan.


The IPv6 my ISP gave me does work, I've confirmed by bypassing the R7000 and connecting my PC directly into the ONU and setting the IPv6 in the Windows's control panel, in the change adapter options settings:





Per Yngve Berg
DD-WRT Guru


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

PostPosted: Mon Sep 19, 2022 18:39    Post subject: Reply with quote
ip -6 addr add 2001:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:yyyy:/128 dev `get_wanface`

Instead of writing all the zeros, you can use a double colon:

2001::1 means all digits between is zero.


Now you have an address on the WAN interface, but you also need a delegated prefix to handle out addresses on the LAN side of the router to clients.
isaacx123
DD-WRT Novice


Joined: 01 Oct 2020
Posts: 6

PostPosted: Mon Sep 19, 2022 19:14    Post subject: gateway Reply with quote
And how do I specified the gateway address?
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Tue Sep 20, 2022 7:50    Post subject: Reply with quote
There is no gateway in IPv6.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14223
Location: Texas, USA

PostPosted: Tue Sep 20, 2022 17:59    Post subject: Reply with quote
isaacx123 wrote:
And how do I specified the gateway address?

Per Yngve Berg wrote:
There is no gateway in IPv6.

The default ipv6 gateway is usually the fe80* link-local address. IOW, you don't have to specify the gateway address.

IPv6 deployment: Using IPv6 link-local addresses as default gateway
How to retrieve my IPv6 default gateway? - netgate forum
FE80::1 is a Perfectly Valid IPv6 Default Gateway Address - infoblox blog

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions 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 can attach files in this forum
You can download files in this forum