Jesin's Blog

Welcome to the Portal of Technology

  • Facebook
  • GitHub
  • RSS
  • Twitter
  • Home
  • Categories
    • Domains
    • Linux
    • Networking
    • PHP
    • Virtualization
    • Web Design
    • Web Servers
    • Windows
  • WordPress Plugins
    • Custom Error Pages
    • HTTP Digest Authentication
    • Mailgun Email Validator
  • Toolbox
    • DNS Lookup Tool
    • htdigest Generator Tool Online
    • htpasswd Generator Tool Online
    • HTTP Headers Lookup Tool
    • MD5 Encryption Tool
    • Open Port Check Tool
    • SHA-1 Encryption Tool
    • URL Encoding/Decoding Tool
  • About Me
  • Contact Me
  • Sitemap
Home ›
Virtualization ›
Adding Custom Network Adapter in VMware Player

Adding Custom Network Adapter in VMware Player

October 15, 2010 Virtualization Jesin A 1 Comment

virtualization category thumbnail

VMware player is the only way to learn networking for those who cannot afford to buy more that one computer. You can try out advanced configurations using many virtual machines, different OSes and network topologies and all this for free using VMware player. But folks who’ve used or seen the paid VMware Workstation version will feel that they are missing out something in terms of configuring network adapters. VMware Player offers three types of networking configurations vmnet0, vmnet1, vmnet8. Read Components of VMware Network for more information about Virtual Switches and DHCP servers. Even with VMware Player it is possible to add and edit custom virtual network adapters albeit with a few geeky editing of files. But its easy to do it as long as you understand what you’re doing.

Step 1:- Add a custom network adapter using vmnetcfg.exe

The file vmnetcfg.exe is the VMware Network Editor if you can’t find it or don’t know how to use it read the article Using VMware Network Editor (vmnetcfg.exe). Open the vmnetcfg.exe file and configure a Network Adapter. For this article I’ll select vmnet2 and set the type as bridged.

vmware custom network adapter vmnetcfg
The vmnet2 is set as bridged to a nvidia ethernet controller

Click ok and proceed to the next step.

Step 2:- Edit the virtual machine’s configuration file

Behind each virtual machine you see is a configuration file with a .vmx extension. This file contains all the configuration of that Virtual Machine and any change made through the GUI are stored there. First you should locate that file for the VM to which you wish to add the custom adapter. For this open the VMware player select the required Virtual Machine click edit go to the options tab and take note of the working directory. Also take note of the number of network adapters that virtual machine contains.

vmware custom network adapter working directory
Take note of the virtual machine's working directory

Navigate to that directory and open the file with a .vmx extension (VMware virtual machine configuration file) using a text editor. Now go to the end of the file and add the following lines. Before you do that take note of the last ethernetX value where X is a number if you have three network adapters for that machine you’ll have ethernet3. For this example I assume this is the first network adpter you’ll be adding to this Virtual Machine so I’ll set it to ethernet0.
ethernet0.present = "TRUE"
ethernet0.virtualDev = "vmxnet"
ethernet0.startConnected = "TRUE"
ethernet0.connectionType = "custom"
ethernet0.vnet = "vmnet2"

Don’t forget to replace ethernet3 with your corresponding number for that adapter. Lets dive in and look what is what. The startConnected is the “Connect at power on” option shown at the GUI. It can also be set to FALSE. Leave the connection type as it is and move on to vnet value, it should be set to the custom adapter’s name which was configured in the first step, in this example “vmnet2”. Save the file.

Step 3:- Test whether the network adapter has been added

Open VMware player select that virtual machine whose file you edited and a new network adapter will be displayed.

vmware custom network adapter custom adapter displayed
A new network adapter is displayed with custom configuration

Start the virtual machine and you can start using this Virtual Machine. So you’ve successfully created a custom network adapter for you’re virtual machine.

Related posts:

virtualization category thumbnailComponents of VMware Network virtualization category thumbnailUsing VMware Network Editor (vmnetcfg.exe) virtualization category thumbnailServices of VMware player virtualization category thumbnailDownload vmnetcfg.exe virtualization category thumbnailVMware Bridged Networking

Tags: custom network, vmnet2, vmnetcfg, vmware

Comments

  1. ljt says

    August 19, 2011 at 4:19 pm

    thank you so much.i have found the solution for a long time.now i find it here.you work is perfect.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Get a wealth of information delivered to your inbox. Subscribe and never miss a single article.

  • Tutorials and howtos
  • Code, scripts and commands
  • Online Tools

* No spam, unsubscribe anytime

Hire Me

  • SSL installation and hardening (A+ on Qualys SSL test)
  • Apache & Nginx configuration
  • Email deliverability improvement (10/10 on Mail Tester & MailGenius)
  • WordPress customization, optimization and migration
  • and much more…

    Tools

    • DNS Lookup Tool
    • htdigest Generator Tool Online
    • htpasswd Generator Tool Online
    • HTTP Headers Lookup Tool
    • MD5 Encryption Tool
    • Open Port Check Tool
    • SHA-1 Encryption Tool
    • URL Encoding/Decoding Tool

    Nav

    • Home
    • About Me
    • Contact Me
    • Privacy Policy
    • Sitemap
    Vultr SSD VPS

    Creative Commons License
    Jesin's Blog by Jesin A is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
    Based on a work at websistent.com.