Debian virtualbox guest set static ip Nat Network

vim /etc/network/interfaces

I’m setting my static ip to 10.0.2.15

iface eth0 inet static
address 10.0.2.15
netmask 255.255.255.0
network 10.0.2.0
broadcast 10.0.2.255
gateway 10.0.2.2
vim /etc/resolv.conf

And add

nameserver 10.0.2.3

Leave a Reply

Your email address will not be published. Required fields are marked *