-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
62 lines (47 loc) · 1.76 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Vagrant.configure("2") do |config|
config.vm.define "rt1" do |server|
server.vm.box = "higebu/vyos"
# for outside world
server.vm.network "private_network", ip: "10.10.0.10", netmask: "255.255.255.0"
# for inside world
server.vm.network "private_network", ip: "172.20.10.10", netmask: "255.255.255.0"
server.vm.provider "virtualbox" do |virtualbox|
# Enable promiscuous mode so the server can receive traffic
# for the virtual machines and containers.
virtualbox.customize [
"modifyvm", :id,
"--nicpromisc2", "allow-all"
]
end
end
config.vm.define "rt2" do |server|
server.vm.box = "higebu/vyos"
# for outside world
server.vm.network "private_network", ip: "10.10.0.20", netmask: "255.255.255.0"
# for inside world
server.vm.network "private_network", ip: "172.20.20.10", netmask: "255.255.255.0"
server.vm.provider "virtualbox" do |virtualbox|
# Enable promiscuous mode so the server can receive traffic
# for the virtual machines and containers.
virtualbox.customize [
"modifyvm", :id,
"--nicpromisc2", "allow-all"
]
end
end
config.vm.define "rt3" do |server|
server.vm.box = "higebu/vyos"
# for outside world
server.vm.network "private_network", ip: "10.10.0.30", netmask: "255.255.255.0"
# for inside world
server.vm.network "private_network", ip: "172.20.30.10", netmask: "255.255.255.0"
server.vm.provider "virtualbox" do |virtualbox|
# Enable promiscuous mode so the server can receive traffic
# for the virtual machines and containers.
virtualbox.customize [
"modifyvm", :id,
"--nicpromisc2", "allow-all"
]
end
end
end