[SOLVED] Can't ping VM even after disabling firewall
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a RedHat VM which has a DHCP lease on my network and can ping the IP address it thinks it's on as well as localhost, but can't ping out and I can't ping in. I'm pretty sure I'vge disabled the firewall, what else can I check?
What is the IP address, subnet mask, and gateway of the VM?
What is the IP address, subnet mask, and gateway of the host?
What is the network address/subnet mask of the network you are trying to reach?
These may sound redundant, but they could, in fact, all be different. If the host is directly connected to the network you are trying to reach, you can leave out step three.
I'd have to assume you have a bridged network config on the vm correct? And what vm are you running?
Ping kind of stinks but lets move past that.
To access an IP or domain name outside your subnet you'll have to have a gateway and possibly a dns address. Do you have those correctly applied in the client?
The VM has a bridged connection to the host on the same subnet and the VM has a gateway. I'm pinging IP addresses so it can't be DNS related. It's RedHat Server 6.3 Santiago
I used the following commands to disable the firewall, does anyone know if these are right or if there's anything else I need to do?
Code:
service iptables save
service iptables stop
chkconfig iptables off
Any further advice would be appreciated.
Edit:
I ran
Code:
dmesg | grep eth
and got a lot of entries like:
transmit timed out
resetting
Last edited by Mark_667; 07-16-2015 at 08:27 AM.
Reason: dmesg output
Got it, it was because I hadn't installed the Hyper-V Integration Services for Linux. Apparently this isn't necessary for slightly later versions of RHEL. Thanks for everyone's input.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.