CentOS 7 no interface, no internet! installed on VMware workstation.

Job for network.service failed because the control process exited with error code.

This is what CentOS 7 says while you are trying to restart network.servce. New bees always runs into this problem i think atleast once. Because it was me too. So here i’m writing an easy solution.

When you ran into this problem your “ifconfig” command will only show you “l0” and/or “virbr0” in the list. There is no “eth0” or “eno16777736” device there. Then it must be giving big pain to your head.

Use below command …

dhclient -v

It will bound some IP address to the interface, its taking IP from DHCP, output will look something similar like below…

[root@localhost Desktop]# dhclient -v
Internet Systems Consortium DHCP Client 4.2.5
Copyright 2004-2013 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/virbr0-nic/52:54:00:2e:2f:5f
Sending on LPF/virbr0-nic/52:54:00:2e:2f:5f
Listening on LPF/virbr0/52:54:00:2e:2f:5f
Sending on LPF/virbr0/52:54:00:2e:2f:5f
Listening on LPF/eno16777736/00:0c:29:bd:5c:3f
Sending on LPF/eno16777736/00:0c:29:bd:5c:3f
Sending on Socket/fallback
DHCPDISCOVER on virbr0-nic to 255.255.255.255 port 67 interval 4 (xid=0x7cc5ba1e)
DHCPDISCOVER on virbr0 to 255.255.255.255 port 67 interval 3 (xid=0x47fa961e)
DHCPREQUEST on eno16777736 to 255.255.255.255 port 67 (xid=0x426c09a9)
DHCPACK from 192.168.237.254 (xid=0x426c09a9)
bound to 192.168.237.128 -- renewal in 683 seconds.

And Boom!!! your VM machine will have internet again… you can create a file with this command and make it auto start in boot. then you dont have to do this again and again…

Thanks!!!

Advertisements

2 thoughts on “CentOS 7 no interface, no internet! installed on VMware workstation.

    1. Thanks for your comment. yes sometimes you wont find the ethernet device in the machine then you have to add that line in .vmx file manually. And you can find this .vmx file in your VMware installation folder….

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s