Watch all our Tutorials and Training Videos for Free on our Youtube Channel, Get Online Web Tools for Free on swebtools.com

Search Suggest

Best Way to Detect Network Card on RHEL 7 hosted on Vmware

rhel7 network issue, resolve linux network issue, network not detected rhel7, network not detected on linux, network card not working rhel vm

Fix to Detect RHEL 7.1 Beta Network (Ethernet) Interface on Vmware Workstation

This trick will help you to resolve these kind of network related issues and detect network card on RHEL 7.

Do you have a problem of network card detection on RHEL 7.1 which is hosted on VMWARE Workstation. On Some cases, when you have build new Linux VM's on Vmware, network card wont be detected because of wrong settings.

Even if you have tried uninstalling open-vm-tools and installed vmware-tools, but everything was failed. Ethernet Network Card not detected on Linux.

No problem, This trick will help you to resolve and detect network card on RHEL and fix these kind of network issues.

If you are interested in learning, Request you to go through the below recommended tutorial.

DevOps Full Course Tutorial for Beginners - DevOps Free Training Online
Docker Full Course Tutorial for Beginners - Docker Free Training Online
Kubernetes Full Course Tutorial for Beginners - Kubernetes Free Training Online
Ansible Full Course Tutorial for Beginners - Ansible Free Training Online
Openstack Full Course Tutorial for Beginners - Openstack Free Training Online
Learn Linux, DevOps and Cloud

Some of you may have seen the issue during the initial installation of any Linux OS especially like RHEL 7.1 anaconda reported "no ethernet network connection available" or after the Installation.

Fix for network interface card (NIC) is not detected

Modify the guest's configuration .vmx file and append the entry for each ethernet card you have installed.

How to Detect Network Card on RHEL?

Just go to the directory where your VMware machine files where created and find the .vmx extention file and edit vmx configuration file as below. (Example - C:Virtual MachinesRHEL3U8_32Red Hat Enterprise Linux 3.vmx)

1. Shut down the virtual machine.
2. Find the location of .vmx file of your installed Guest OS
3. Open the virtual machine's configuration file (.vmx) in a text editor.
4. Add or edit lines as below,
ethernet0.virtualDev = "e1000"
5. When finished, save the changes by using the save option in the text editor.
6. Exit the text editor.

The examples are based on the first Ethernet card in your system, referenced by eth0. If your system uses more Ethernet network cards, then replace the number 0 (of eth0) by the number that references your Ethernet card.

Thats it.

Power On the Guest OS RHEL 7.1, Now you can Identify the name assigned to the First Ethernet interface, using ip command.

Create Own Network Card Config File on Linux

Create a standard network card config file.

[selva@rhel7-host ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens1
DEVICE=ens1
BOOTPROTO=dhcp
TYPE=Ethernet
ONBOOT=yes
IPV6INIT=no
NM_CONTROLLED=no
USERCTL=no
PEERDNS=yes
PEERROUTES=yes

Restart Network Service on Linux

Once the network file is created, use ifup network commands to bring up the ethernet device.

[selva@rhel7-host ~]# sudo ifup ens1

If the above command not found, restart the entire network service using systemctl command on RHEL or any other related commands available on your Linux Server.

[selva@rhel7-host ~]#  sudo /etc/init.d/networking restart

or

[selva@rhel7-host ~]#  sudo systemctl restart network


That's it. Now you could see your network card detected in RHEL and ready to use it.

Related Content on Linux might be useful to you to improve your Linux Skills.


Keep practicing and have fun. Leave your comments if any.

Support Us: Share with your friends and groups.

Stay connected with us on social networking sites, Thank you.