clean syntax for dual stack or multiple addresses on private network?

14 views
Skip to first unread message

pixel fairy

unread,
Mar 22, 2016, 5:10:37 PM3/22/16
to Vagrant
is there a clean syntax for multiple addresses on the same private network link?

ive been doing it like this

foo.vm.network "private_network", ip: "1.2.3.4"
foo
.vm.provision "shell", inline: "ip address add 2001:db8::1234 dev eth1"


but thats messy and obviously not portable.

Alvaro Miranda Aguilera

unread,
Mar 22, 2016, 9:48:49 PM3/22/16
to vagra...@googlegroups.com
any particular reason you need multiple address on the same nic?

if you put private network ipv4
and private network ipv6

will be more portable, and the box will get the both ip you are after.


--
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 vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/498e63c1-eb38-46fc-804d-d5209cd0a794%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages