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.
Centos 7 Connectivity Issues in VMware Workstation
Re: Centos 7 Connectivity Issues in VMware Workstation
First a note: Commands 'ifconfig' and 'route' are ancient.
CentOS 7 does use NetworkManager.service and firewalld.service by default.
Those have their own commands to show status. For example:
There are other commands to read state too:
You show that the VM has address 192.168.227.3 that is in subnet 192.168.227.0/24 and that the router on that network is 192.168.227.2
However, you ping 192.168.68.195 as your host, which is clearly in different subnet.
I know nothing about vmware, but it sounds like your host has no clue where 192.168.227.0/24 is -- or blocks new connections to it.
In other words, problem might not be in the CentOS config.
What do you get in VM with:
CentOS 7 does use NetworkManager.service and firewalld.service by default.
Those have their own commands to show status. For example:
Code: Select all
nmcli
nmcli d s
nmcli c s
firewall-cmd --get-active-zones
Code: Select all
ip li
ip ad
ip ro
brctl show
iptables -S
iptables -t nat -S
iptables -t mangle -S
However, you ping 192.168.68.195 as your host, which is clearly in different subnet.
I know nothing about vmware, but it sounds like your host has no clue where 192.168.227.0/24 is -- or blocks new connections to it.
In other words, problem might not be in the CentOS config.
What do you get in VM with:
Code: Select all
traceroute 192.168.68.195
traceroute 8.8.8.8
Re: Centos 7 Connectivity Issues in VMware Workstation
I mentioned in the post that I was trying to ping different subnet which is on my host machine. You are right about the normal scenario that I will not be able to ping a different subnet (as per the basic networking), but this case is specific to VMware workstation where I mentioned that I have used both NAT and bridging but it was not working.
At the same time I also mentioned that when I created the machine, I was able to access it via ssh.
Anyways, I was apparently missing some drivers on my host machine due to which I had to disable and than enable vmnet manually after I restarted my machine everytime. I had a misunderstanding that issue might be related to CentOS. It was resolved after I reinstalled a few drivers.
Thanks for reaching out though.
At the same time I also mentioned that when I created the machine, I was able to access it via ssh.
Anyways, I was apparently missing some drivers on my host machine due to which I had to disable and than enable vmnet manually after I restarted my machine everytime. I had a misunderstanding that issue might be related to CentOS. It was resolved after I reinstalled a few drivers.
Thanks for reaching out though.