Skip to content

Instantly share code, notes, and snippets.

@vancanhuit
Last active January 2, 2021 11:21
Show Gist options
  • Save vancanhuit/494cce044089891fd0225b352bb4af6b to your computer and use it in GitHub Desktop.
Save vancanhuit/494cce044089891fd0225b352bb4af6b to your computer and use it in GitHub Desktop.
Simple vagrant setup with internal network.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "vancanhuit/debian10"
config.vm.base_mac = nil
config.vm.define "node1" do |node|
node.vm.hostname = "node1"
node.vm.network "private_network", ip: "192.168.10.5", virtualbox__intnet: "inet1"
end
config.vm.define "node2" do |node|
node.vm.hostname = "node2"
node.vm.network "private_network", ip: "192.168.10.6", virtualbox__intnet: "inet1"
node.vm.network "private_network", ip: "192.168.11.6", virtualbox__intnet: "inet2"
end
config.vm.define "node3" do |node|
node.vm.hostname = "node3"
node.vm.network "private_network", ip: "192.168.11.5", virtualbox__intnet: "inet2"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment