Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


udmada

10 posts

Wannabe Geek


#309331 9-Oct-2023 13:20
Send private message

Hi all

 

 

 

I've been trying to enable ipv6 address in macvlan and host network for my docker running on a Synology NAS.

 

Enabling ipv6 for docker itself seems quite straightforward, however the subnetting ipv6 addresses is something I have no clue of. (Even at work I try not to touch anything network-y in k8s)

 

 

 

I have read the following articles:

 

- [x] Ubiquiti Edgerouter Tutorial

 

- [x] 2 Degrees Broadband, ipv6 and UniFi Security Gateway

 

- [x] [IPv6] How to set up IPv6 in ASUS Router?

 

 

 

I have got a static IP addresses (believe both v4 and v6) from 2Degrees. Say I received 2404:4400:41fd:6400::/56 from the ISP, am I doing the right thing here:

 

 

 

 

 

 

Supposedly, I am trying to achieve what I was advised from one of the comments here:

 

Say you received this prefix from 2D: 2404:4400:41fd:6400::/56, you can use any /64s between 2404:4400:41fd:6400::/64 and 2404:4400:41fd:64ff::/64.

 

So your router LAN address can be, for example 2404:4400:41fd:6401::ffff/64,

 

your DHCPv6 range can be 2404:4400:41fd:6401::1000/64 to 2404:4400:41fd:6401::1fff/64

 

and your servers could use 2404:4400:41fd:6401::1/64, 2404:4400:41fd:6401::2/64, 2404:4400:41fd:6401::3/64, ...

 

Easy to manage and easier to type... 😄

 

Just make sure you take notes of which addresses you are already using to avoid conflicts.

 

 

 

 

 

 

 

 


Create new topic
nzkc
1572 posts

Uber Geek


  #3144570 9-Oct-2023 13:37
Send private message

In the router configuration, you select DHCP (auto assigned or whatever its called). You'll just be assigned the same IP address/IPv6 subnet each time.

 

You do not configure it as static in the router.




udmada

10 posts

Wannabe Geek


  #3144592 9-Oct-2023 14:47
Send private message

I understand what you were saying, and I believe this is the solution provided by ASUS themselves: https://www.asus.com/support/FAQ/113990/

 

I guess the complexity here is that I need to specify a CIDR (fixed-cidr-v6) for Docker to assign a subnet to the default bridge network, enabling dynamic IPv6 address allocation, as per Docker documentation: https://docs.docker.com/config/daemon/ipv6/#use-ipv6-for-the-default-bridge-network. And I need a static ipv6 address for one of my docker container to work properly

 

 

 

And I believe because 2Degrees gives non-standard /56 ipv6 blocks, my router or the docker daemon wouldn't be able to automatically get the /64 needed. Hence I was trying to assign static ipv6 blocks at my router level. 


nzkc
1572 posts

Uber Geek


  #3144654 9-Oct-2023 16:10
Send private message

udmada:

 

And I believe because 2Degrees gives non-standard /56 ipv6 blocks, my router or the docker daemon wouldn't be able to automatically get the /64 needed. Hence I was trying to assign static ipv6 blocks at my router level. 

 

 

Its not non standard. Its reasonably common for a /56 to be allocated to a residential address.

 

You can then carve up that subnet however you like (you get 256 /64 ranges in a /56). Im not running an Asus router anymore, however, IIRC my clients all got a /64 address (the first one in the /56 range as it happens).

 

You can allocate _another_ /64 range if you like and reserve that yourself for docker. You'll probably want to allocate a manual IP address from that range to the docker host. Not in place of the IPv6 address it gets from your router but to accompany it.


Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.