rafaelstz
5/15/2017 - 3:02 PM

Static IP on VirtualBox Ubuntu 16.04

Static IP on VirtualBox Ubuntu 16.04

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# File /etc/network/interfaces
source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp0s3
iface enp0s3 inet static
	address 10.0.21.104
        netmask 255.255.255.0
        broadcast 10.0.10.255
        network 10.0.21.0
        gateway 10.0.21.1
# This is an autoconfigured IPv6 interface
iface enp0s3 inet6 auto