VirtualBox

source: vbox/trunk/doc/manual/en_US/dita/topics/nat-address-config.dita@ 106807

最後變更 在這個檔案從106807是 105335,由 vboxsync 提交於 7 月 前

FE/Qt: bugref:10705. Merging r6149 from doc team's repo.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.3 KB
 
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>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette