---
title: "Comment by Rabindra Man Bajracharya on \"Assigning IPv6 directly from the primary router to Docker Containers using Macvlan\" | Hashnode"
description: "What is your configuration on the router? And won&#39;t manually adding ip be tedious as the ipv6 could be dynamic?"
url: "https://hashnode.com/posts/assigning-ipv6-directly-from-the-primary-router-to-docker-containers-using-macvlan/6517c4b7667e67019cf35396/comment/652253f5a5b624c6153e5884"
---

[Discussion](https://hashnode.com/posts/assigning-ipv6-directly-from-the-primary-router-to-docker-containers-using-macvlan/6517c4b7667e67019cf35396)

Comment [Assigning IPv6 directly from the primary router to Docker Containers using Macvlan](https://hashnode.com/posts/assigning-ipv6-directly-from-the-primary-router-to-docker-containers-using-macvlan/6517c4b7667e67019cf35396)

[Rabindra Man Bajracharya](https://hashnode.com/@rabindramb)

[Oct 8, 2023](https://hashnode.com/posts/assigning-ipv6-directly-from-the-primary-router-to-docker-containers-using-macvlan/6517c4b7667e67019cf35396/comment/652253f5a5b624c6153e5884)

What is your configuration on the router? And won't manually adding ip be tedious as the ipv6 could be dynamic?

[Bimal Dhital](https://hashnode.com/@bemole1412)

[Oct 8, 2023](https://hashnode.com/posts/assigning-ipv6-directly-from-the-primary-router-to-docker-containers-using-macvlan/6517c4b7667e67019cf35396/comment/652253f5a5b624c6153e5884#reply-6522939bf786edcd65a68d7c)

Nothing special on the router side. The server machine is connected normally, the same as other devices in my house. I have written a blog about how to enable relay mode for ipv6 for the secondary router, you can check it out here [blog.bimal1412.com.np/enable-ipv6-on-a-secondary-…](https://blog.bimal1412.com.np/enable-ipv6-on-a-secondary-router-running-openwrt)

As, for the other question, yes I am sure it will get tedious if you plan on using it to host something with ipv6 directly from the docker container without tunneling. But I am sure that can be solved by writing a bash script to automate the config to get the new ipv6 gateway if the IPv6 prefix changes.
