Centos 7 Connectivity Issues in VMware Workstation
Posted: 2021/02/12 12:41:12
Hi all,
I am new to CentOS and this forum too so at my part I have tried to look up the issue that I have been facing but I haven't found any desirable results. If there is already same issue posted earlier than apologies, and I would request anyone to kindly guide me to it. Anyways, coming to the problem that I am facing.
I have downloaded an ISO of Goautodial 4 which comes with CentOS 7 and asterisk 13. On my first day, I was able to login to web portal that comes by default with Goautodial after installation and I was also able to ssh it using putty. I tried rebooting the machine multiple times and everything was working at optimum. However, after doing certain tasks, I turned off my laptop and the next day, I was unable to ssh it. I was even unable to ping machine from Windows host.
At the same time, internet inside my vm is working fine apparently as I have updated my CentOS after losing access and I have tried pinging multiple sources like facebook.com, google.com, yahoo.com and even local IP of my host machine (Windows 10). I have also tried downloading multiple files using wget and no issue found. Details that might be useful up to my knowledge are provided below.
Ping from my host machine:
C:\Users\hamas.usmani>ping 192.168.227.3
Pinging 192.168.227.3 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.227.3:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Ifconfig on my CentOS machine:
/etc/resolv.conf configuration:
ping from vm to host:
route -n from vm:
[root@vag1xc01 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.227.2 0.0.0.0 UG 100 0 0 ens33
192.168.227.0 0.0.0.0 255.255.255.0 U 100 0 0 ens33
It should be noted that currently my vmnet0 is on bridge and set to auto. vmnet 8 (through which ens33 is connected) is NAT, I have tried changing the config to bridging for vmnet 8 too but after I change it from NAT to Bridge, I am unable to ping even 8.8.8.8.
Further I have also tried checking the traceroute and it is not going beyond gateway i.e 192.168.227.2. Since I am facing this issue while bridging too, and I have been searching but nothing that I have found on the forum yet, has helped me so far. Or I may have not found the correct solution.
I would request anyone to please guide me through this.
I am new to CentOS and this forum too so at my part I have tried to look up the issue that I have been facing but I haven't found any desirable results. If there is already same issue posted earlier than apologies, and I would request anyone to kindly guide me to it. Anyways, coming to the problem that I am facing.
I have downloaded an ISO of Goautodial 4 which comes with CentOS 7 and asterisk 13. On my first day, I was able to login to web portal that comes by default with Goautodial after installation and I was also able to ssh it using putty. I tried rebooting the machine multiple times and everything was working at optimum. However, after doing certain tasks, I turned off my laptop and the next day, I was unable to ssh it. I was even unable to ping machine from Windows host.
At the same time, internet inside my vm is working fine apparently as I have updated my CentOS after losing access and I have tried pinging multiple sources like facebook.com, google.com, yahoo.com and even local IP of my host machine (Windows 10). I have also tried downloading multiple files using wget and no issue found. Details that might be useful up to my knowledge are provided below.
Ping from my host machine:
C:\Users\hamas.usmani>ping 192.168.227.3
Pinging 192.168.227.3 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.227.3:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Ifconfig on my CentOS machine:
/etc/resolv.conf configuration:
ping from vm to host:
route -n from vm:
[root@vag1xc01 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.227.2 0.0.0.0 UG 100 0 0 ens33
192.168.227.0 0.0.0.0 255.255.255.0 U 100 0 0 ens33
It should be noted that currently my vmnet0 is on bridge and set to auto. vmnet 8 (through which ens33 is connected) is NAT, I have tried changing the config to bridging for vmnet 8 too but after I change it from NAT to Bridge, I am unable to ping even 8.8.8.8.
Further I have also tried checking the traceroute and it is not going beyond gateway i.e 192.168.227.2. Since I am facing this issue while bridging too, and I have been searching but nothing that I have found on the forum yet, has helped me so far. Or I may have not found the correct solution.
I would request anyone to please guide me through this.