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 09-22-2011, 05:53 AM   #1
svandyk
LQ Newbie
 
Registered: Apr 2011
Posts: 4

Rep: Reputation: 0
Question KVM on Redhat 5.7: KVM can ping outside network, outside network can't ping KVM


Hi there

I've set up a RHEL5.7 server [172.16.1.197] and created a RHEL5.7 KVM [172.16.1.200].

Its possible for the KVM [.200] to ping any server on the network:

Code:
[root@172.16.1.200 ~]# ping 172.16.1.123
PING 172.16.1.123 56(84) bytes of data
64 bytes from 172.16.1.123 icmp_seq=1 ttl=64 time=1.01 ms
but whenever i try and ping .200 from any other server [even on the host machine ~ .197] i get the following:

Quote:
[from 172.16.1.197] ping 172.16.1.200
PING 172.16.1.200 (172.16.1.200) 56(84) bytes of data.
From 172.16.1.197 icmp_seq=2 Destination Host Unreachable
From 172.16.1.197 icmp_seq=3 Destination Host Unreachable
i have configured the host and guest as per the following link:

Here

Here is the 'virsh edit <KVMHOSTNAME>
Code:
<interface type='bridge'>
      <mac address= {MAC ADDRESS)/>
      <source bridge='br0'/>
      <model type='virtio'/>
    </interface>
Host server:

Code:
[root@172.16.1.197~]# brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.782bcb44012b       no              vnet0
                                                        eth0
virbr0          8000.000000000000       yes
changes in /etc/sysctl.conf

Code:
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
contents of ifcfg-eth0 [on host]

Code:
[root@172.16.1.197network-scripts]# vi ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
HWADDR={MAC ADDRESS}
ONBOOT=yes
BRIDGE=br0
NM_CONTROLLED=no
contents of ifcfg-br0 [on host]

Code:
DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
HWADDR={MAC ADDRESS}
IPADDR=172.16.1.197
NETMASK=255.255.255.0
GATEWAY=172.16.1.1
ONBOOT=yes
DELAY=0
NM_CONTROLLED=no
EDIT: i have switched off iptables on both host and guest system, still cannot reach the system.

I don't understand why other servers cant see the .200 at this point. any help will be greatly appreciated!

Last edited by svandyk; 09-22-2011 at 06:33 AM.
 
Old 09-23-2011, 06:45 AM   #2
dilbert_uk
Member
 
Registered: Aug 2011
Location: Lima, Peru
Distribution: Debian 10.4, xubuntu 20.04, Ubuntu 20.04 LTS
Posts: 83

Rep: Reputation: 4
From the command line of the .200, can you ping the local host 127.0.0.1?
 
  


Reply

Tags
kvm, rhel



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
LXer: Implementation Qemu-kvm 0.15.0, SpiceServer and Spice-Gtk-0.7 on Ubuntu 11.10 KVM Server the m LXer Syndicated Linux News 0 08-30-2011 04:40 PM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
LXer: Set up RH VirtIO SCSI driver on Windows XP KVM at KVM-QEMU Instance on F14 LXer Syndicated Linux News 14 01-09-2011 12:21 PM
LXer: Install Oracle 11gR2 on SL6 KVM at KVM-QEMU Instance on SL 6 (alpha 3) LXer Syndicated Linux News 2 01-01-2011 06:42 AM
Can't Ping Linux KVM from Other Machines on Host Subnet newmanium2001 Linux - Networking 5 05-19-2009 08:01 AM

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

All times are GMT -5. The time now is 08:56 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