Setting Static IP of NAT network interface in VirtualBox

Posted by admin on Feb 9, 2012 in Unix |

In NAT mode, the guest network interface is assigned to the IPv4 range 10.0.x.0/24 by default
where x corresponds to the instance of the NAT interface +2.
So x is 2 when there is only one NAT instance active.
In that case the guest is assigned to the address, the gateway is set to
and the name server can be found at

This means that for Ubuntu, the /etc/network/interfaces entry for the network card settings are something as below:

iface inet static
address (e.g.

Also, add the following nameserver entry to /etc/resolv.conf


Leave a Reply

XHTML: You can use these tags:' <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Copyright © 2008-2018 Brinsmead Data Services All rights reserved.