I'm trying to configure a virtual network in VirtualBox with a central node as gateway & DHCP & DNS server (I'm using the dnsmasq).
Central node has two interfaces:
- enp03 which faces the host network. It configured by host network DHCP and has a dynamic IP address.
- enp08 which faces the virtual network. dnsmasq is listening this interfase.
Now I want to set some static configuration for enp08.
Is it possible to do something like that in /etc/network/interfaces:
auto enp03
iface enp03 inet dhcp
auto enp08
iface enp08 inet static
address 10.0.5.1
netmask 255.255.255.0
gateway enp03