You can use a Samba server for bridged or host-only networking.

Procedure

  1. Open the Samba configuration file (/etc/samba/smb.conf) in a text editor.
  2. Add the interfaces parameter and set it to VMnet interface.
    You can define the interface parameter so that the Samba server serves multiple interfaces. This example tells the Samba server to monitor and use both the eth0 and vmnet1 interfaces, which are the networks that bridged and host-only networking use
    For example: interface = eth0 vmnet1
  3. Restart Samba.