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.
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
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
[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.
How to Access Linux Server from Windows Remotely
Configure SSH Passwordless Login Authentication (SSH-keygen)
How to Create LVM Partition in Linux – LVM Tutorial
Install & Configure Samba Server on Linux (RHEL7 / CentOS7)