Objective:
Host network segment: 192.168.1.X Mask 255.255.255.0
Virtual Machine Network segment: 192.168.2.X Mask 255.255.255.0
Host: 192.168.1.45
Client: 192.168.1.102
Virtual machine: 192.168.2.16
Because the company 192.168.1.X this network segment IP will run out, so I am ready to assign 192.168.2.X to the virtual machine
The IP address of this network segment. But other colleagues in the company (including the host itself are in 192.168.1.X) this segment
Within. How to make it possible for a colleague to connect to a Linux virtual machine on (host: 192.168.1.45)
Is what I'm going to tell you here.
Bridging mode (BRIDGE):
---host settings
In fact, it is very simple, we know that a net card can be configured multiple IP address, so I in the host
The 2 addresses on (assigned 192.168.1.45,192.168.2.45). 192.168.1.45 this address is
office network address, 192.168.2.45 is the address of the network where the Linux virtual machine resides. In assigning 192.168.2.45
This address is not added when the gateway (usually the default gateway can only have one, otherwise prone to problems)
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8A/92/wKiom1g0F3OzbCE0AAA2QyLYwlM115.png-wh_500x0-wm_3 -wmp_4-s_4003084925.png "title=" Life Calendar 20161122180053.png "alt=" Wkiom1g0f3ozbce0aaa2qylywlm115.png-wh_50 "/>
---client settings
The setting for the client is simple, just add the address of a 192.168.2.X network segment above 192.168.2.102
The gateway address (192.168.2.45), the IP address on the host, is added here.
Linux virtual machine installation configuration Preparation---VMware (Bridge)