NAT の受け皿になるネットワークを設定する。
hostonly network を一つ余計に作成する。
多くの場合、hostonly network を2つ作ることになる。
vmware-config.pl の editor モードで hostonly network を追加し vmnet2 とする。
- editor で vmnet2 に hostonly network を追加する。
- 適当な IP ADDRESS と マスクを設定する(仮に 192.168.200.0/24 とする)。
下記に実行例を表示しておきます。
Network Address は VMware-config.pl で自動作成しても、適当な値を指定しても同じです。
ハイフンで囲んだ部分は vmware-config.pl が表示してくる一覧表です。
<<-- に続く情報は手入力の必要な部分です。
Do you wish to make additional changes to the current virtual networks
settings? (yes/no) [yes] <<-- CR 入力
Which virtual network do you wish to configure? (0-99) 2
What type of virtual network do you wish to set vmnet2?
(bridged,hostonly,nat,none) [none] hostonly <<-- hostonly 入力
Configuring a host-only network for vmnet2.
Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes] <<-- CR 入力
+------------------------------------------------------------------+
|. vmnet0 is bridged to eth0 |
|. vmnet1 is a host-only network on private subnet 192.168.1.0. |
|. vmnet2 is a host-only network on private subnet 192.168.200.0. |
|. vmnet8 is a NAT network on private subnet 192.168.27.0. |
+------------------------------------------------------------------+
Probing for an unused private subnet (this can take some time)...
The subnet 192.168.200.0/255.255.255.0 appears to be unused.
The following virtual networks have been defined:
Do you wish to make additional changes to the current virtual networks
settings? (yes/no) [yes] no <<-- no 入力
None of the pre-built vmnet modules for VMware Workstation is suitable for your
running kernel. Do you want this program to try to build the vmnet module for
your system (you need to have a C compiler installed on your system)? [yes]