LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-15-2015, 09:44 AM   #1
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Rep: Reputation: 30
Can't ping VM even after disabling firewall


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?
 
Old 07-15-2015, 10:33 AM   #2
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
Mark,

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.
 
Old 07-15-2015, 11:02 AM   #3
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Original Poster
Rep: Reputation: 30
The VM and host are on the same subnet, other VMs on the same host are fine. The address I'm trying to reach is also on the same network.
 
Old 07-15-2015, 12:42 PM   #4
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
What version of Red Hat are you running?

If all of the hosts and VM are on the same subnet, it sounds to me like it is a firewall issue, unless you have a typo on the subnet mask of the VM...
 
Old 07-15-2015, 02:36 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
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?
 
Old 07-16-2015, 03:59 AM   #6
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Original Poster
Rep: Reputation: 30
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
 
Old 07-16-2015, 09:20 AM   #7
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
What does
Code:
service iptables status
report?
 
Old 07-16-2015, 10:36 AM   #8
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Original Poster
Rep: Reputation: 30
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.
 
Old 07-16-2015, 11:36 AM   #9
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
excellent! don't forget to make it as solved!
 
Old 07-16-2015, 03:50 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Thanks for the update and solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling firewall - possible? Infernal211283 Linux - Newbie 7 12-12-2005 01:41 PM
disabling firewall with ssh only pureblood SUSE / openSUSE 2 01-28-2005 12:12 AM
Disabling firewall in fedora 2 zirconyl Linux - Software 2 09-26-2004 08:18 PM
disabling behind the firewall asimhafeez Linux - Security 2 06-16-2004 03:35 AM
disabling firewall morganwolfe Linux - Security 1 01-26-2002 12:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration