Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-15-2015, 09:44 AM
|
#1
|
Member
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383
Rep:
|
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?
|
|
|
07-15-2015, 10:33 AM
|
#2
|
Member
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298
Rep:
|
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.
|
|
|
07-15-2015, 11:02 AM
|
#3
|
Member
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383
Original Poster
Rep:
|
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.
|
|
|
07-15-2015, 12:42 PM
|
#4
|
Member
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298
Rep:
|
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...
|
|
|
07-15-2015, 02:36 PM
|
#5
|
Moderator
Registered: Mar 2008
Posts: 22,105
|
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?
|
|
|
07-16-2015, 03:59 AM
|
#6
|
Member
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383
Original Poster
Rep:
|
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
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
|
|
|
07-16-2015, 09:20 AM
|
#7
|
Member
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298
Rep:
|
What does
Code:
service iptables status
report?
|
|
|
07-16-2015, 10:36 AM
|
#8
|
Member
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383
Original Poster
Rep:
|
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.
|
|
|
07-16-2015, 11:36 AM
|
#9
|
Member
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298
Rep:
|
excellent! don't forget to make it as solved!
|
|
|
07-16-2015, 03:50 PM
|
#10
|
Moderator
Registered: Mar 2008
Posts: 22,105
|
Thanks for the update and solution.
|
|
|
All times are GMT -5. The time now is 05:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|