Hello,
I am not aware of static ipv6 assigment.
I have done it with a shell provider like this:
config.vm.define 'z2-3a' do |z23a|
z23a.vm.provision :shell, run: "always", inline: "ifconfig eth1
inet6 add 2605:4480:6:26::52:175:0/96 && route -A inet6 add default gw
fe80::6:26:1 eth1 2>&1"
end
as ipv4 doesn't set router for ipv4, I end using this to set both,
ipv4+ipv6 and default gw
config.vm.define 'z2-3a' do |z23a|
z23a.vm.hostname = "z2-3a.kikitux.net"
z23a.vm.network "public_network", ip: "166.253.133.175", bridge:
"en0: Ethernet", :auto_config => "false"
z23a.vm.provision :shell, run: "always", inline: "ifconfig eth1
166.253.133.175 netmask 255.255.255.0 up && route add default gw
166.253
.133.1 2>&1"
z23a.vm.provision :shell, run: "always", inline: "ifconfig eth1
inet6 add 2205:4480:6:26::52:175:0/96 && route -A inet6 add default gw
ff80::6:26:1 eth1 2>&1"
z23a.vm.provision :shell, run: "always", inline: "eval `route -n |
awk '{ if ($8 ==\"eth0\" && $2 != \"0.0.0.0\") print \"route del
default gw \" $2; }'`"
end
Hope this helps
Alvaro
On Tue, Jul 7, 2015 at 1:11 AM, Micky Maus <[email protected]> wrote:
> Hi,
>
> I would like to assign static ipv6 addresses to my nodes like it is possible
> with ipv4: https://docs.vagrantup.com/v2/networking/private_network.html
>
> Is there an option like ip6 or something similar?
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/88fcd61f-ccf8-476c-8b05-8511dba19258%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/CAHqq0ewLUURr6r08USMqFZuPK%3D2iu%3DZME0zZrCijmC5CP2r8Fg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.