Chinaunix首页 | 论坛 | 博客
  • 博客访问: 297438
  • 博文数量: 40
  • 博客积分: 2500
  • 博客等级: 少校
  • 技术积分: 535
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-17 14:08
文章分类

全部博文(40)

文章存档

2011年(1)

2010年(10)

2009年(29)

我的朋友

分类: LINUX

2009-02-21 21:44:37

VMware Workstation provides several ways you can configure a virtual machine for virtual networking.
(1).Bridged networking configures your virtual machine as a unique identity on the network, separate and unrelated to its host.
(2).Network address translation (NAT) configures your virtual machine to share the IP and MAC addresses of the host. The virtual machine and the host share a single network identity that is not visible outside the network. NAT can be useful when you are allowed a single IP address or MAC address by your network administrator. You might also use NAT to configure separate virtual machines for handling http and ftp requests, with both virtual machines running off the same IP address or domain.
(3).Host-only networking configures your virtual machine to allow network access only to the host. This can be useful when you want a secure virtual machine that is connected to the host network, but available only through the host machine.
 
Virtual switch
Like a physical switch, a virtual switch lets you connect other networking components together. Virtual switches are created as needed by the VMware Workstation software, up to a total of nine switches. You can connect one or more virtual machines to a switch.
By default, a few of the switches and the networks associated with them are used for special named configurations:
(1).The bridged network uses VMnet0. 
(2).The host-only network uses VMnet1. 
(3).The NAT network uses VMnet8. 
The other available networks are simply named VMnet2, VMnet3, VMnet4, and so on.
To connect a virtual machine to a switch: In the virtual machine settings editor, select the virtual network adapter to connect, and then configure the adapter to use the desired virtual network. 
 
Bridged Networking
   
 
 
Network Address Translation (NAT)
   

 
Host-Only Networking
  
 
So,In your windows,you can see network using ifconfig
Windows IP Configuration

Ethernet adapter VMware Network Adapter VMnet8:
        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 192.168.153.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :
Ethernet adapter VMware Network Adapter VMnet1:
        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 192.168.231.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :
Ethernet adapter 无线网络连接 2:
        Connection-specific DNS Suffix  . : lan
        IP Address. . . . . . . . . . . . : 192.168.1.65
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.1.254
 
if using NAT,then you will use VMnet8 network.
if using hostonly,then you will use VMnet1 network.
阅读(1430) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~