1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
2 | <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
|
---|
3 | <topic xml:lang="en-us" id="nat-address-config">
|
---|
4 | <title>Configuring the Address of a NAT Network Interface</title>
|
---|
5 |
|
---|
6 | <body>
|
---|
7 | <p>In NAT mode, the guest network interface is assigned to the IPv4 range
|
---|
8 | <codeph>10.0.<varname>x</varname>.0/24</codeph> by default where <varname>x</varname> corresponds to the
|
---|
9 | instance of the NAT interface +2. So <varname>x</varname> is 2 when there is only one NAT instance active. In that
|
---|
10 | case the guest is assigned to the address <codeph>10.0.2.15</codeph>, the gateway is set to
|
---|
11 | <codeph>10.0.2.2</codeph> and the name server can be found at <codeph>10.0.2.3</codeph>. </p>
|
---|
12 | <p>If the NAT network needs to be changed, use the following command: </p>
|
---|
13 | <pre xml:space="preserve">$ VBoxManage modifyvm <varname>VM-name</varname> \
|
---|
14 | --natnet1 "192.168/16"</pre>
|
---|
15 | <p>This command would reserve the network addresses from <codeph>192.168.0.0</codeph> to
|
---|
16 | <codeph>192.168.254.254</codeph> for the first NAT network instance of <varname>VM-name</varname> The guest IP
|
---|
17 | would be assigned to <codeph>192.168.0.15</codeph> and the default gateway could be found at
|
---|
18 | <codeph>192.168.0.2</codeph>. </p>
|
---|
19 | </body>
|
---|
20 |
|
---|
21 | </topic>
|
---|