Hello to everyone,
I have an interesting question here: Can I provide by Vagrantfile the configuration of /etc/network/interfaces, namely, can I add in the etc/network/interfaces the following:
# The USB-Ethernet interface 2
allow-hotplug eth2
iface eth2 inet dhcp
The another question is: can I define by Vagrantfile the following dhcpd.conf file?
/etc/dhcp/dhcpd.conf : /etc/dhcp/dhcpd.conf
I have set it like this:
## cat /etc/dhcp/dhcpd.conf
##
## DHCP Server Configuration file.
## see /usr/share/doc/dhcp-server/dhcpd.conf.example
## see dhcpd.conf(5) man page
##
default-lease-time 600;
max-lease-time 18000;
subnet 192.168.15.0 netmask 255.255.255.0 {
## interface enp0s25;
range dynamic-bootp 192.168.15.100 192.168.15.200;
option broadcast-address 192.168.15.255;
next-server 192.168.15.2;
option subnet-mask 255.255.255.0;
}
host bbb {
hardware ethernet D0:5F:B8:FF:F8:69;
fixed-address 192.168.15.20;
filename "bbb-image";
}
host pdu {
hardware ethernet 88:b6:27:01:62:43;
fixed-address 192.168.15.21;
filename "pdu-image";
}
Or I can import the files, written in some other languages (.xml, .json, .jinja2 or something else)?
Any examples of the shelf for these cases?
Thank you,
Zoran (I use this account, since my primary account is on other three Open Source mailing lists)
config.vm.network "public_network", auto_config: false--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/7b7a6c7b-4e85-4fb1-889c-e6e549196bbe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# Forward port 8888 for the internal REST server
config.vm.network :forwarded_port, guest: 8888, host: 8888
# Forward port 8010 for the Storage Server
config.vm.network :forwarded_port, guest: 8010, host: 8010
# Forward port 5000 for the KernelCI Frontend Web Server
config.vm.network :forwarded_port, guest: 5000, host: 5000
# Forward port 80 for the http Lava Frontend Web Server
config.vm.network :forwarded_port, guest: 8080, host: 8080
# Forward port 443 for the https Lava Frontend Web Server
config.vm.network :forwarded_port, guest: 443, host: 4443
# Configure network accessibility for tftp server
config.vm.network "public_network", :dev => "eth1", use_dhcp_assigned_default_route: true
config.vm.network "private_network", bridge: "eth2", ip: "192.168.15.2"vbox.customize ["modifyvm", :id, "--usb", "on"]
vbox.customize ["modifyvm", :id, "--usbehci", "on"]
vbox.customize ["usbfilter", "add", "0",
"--target", :id,
"--name", "ASIX Electronics Corp. AX88772 [0001]",
"--vendorid", "0B95",
"--productid", "7720",
"--revision", "0001",
"--manufacturer", "ASIX Electronics Corp.",
"--product", "AX88772"]
root@stretch:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::a00:27ff:fe8d:c04d prefixlen 64 scopeid 0x20<link>
ether 08:00:27:8d:c0:4d txqueuelen 1000 (Ethernet)
RX packets 3235 bytes 290021 (283.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2492 bytes 461392 (450.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::a00:27ff:fe57:855c prefixlen 64 scopeid 0x20<link>
ether 08:00:27:57:85:5c txqueuelen 1000 (Ethernet)
RX packets 6498 bytes 658331 (642.9 KiB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 119 bytes 28152 (27.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.15.2 netmask 255.255.255.0 broadcast 192.168.15.255
inet6 fe80::a00:27ff:fec9:a365 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:c9:a3:65 txqueuelen 1000 (Ethernet)
RX packets 80 bytes 7816 (7.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 108 bytes 8436 (8.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 28690 bytes 9108243 (8.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 28690 bytes 9108243 (8.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@stretch:~# --
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/1e5c7b37-094c-4856-ac4b-e3624834c3f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.