LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Virt-Manager: Guests not able to ping each other (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/virt-manager-guests-not-able-to-ping-each-other-926117/)

sohny 01-28-2012 03:27 AM

Virt-Manager: Guests not able to ping each other
 
I m new to using the virt-manager & KVM setup . I used virt-manager to create two guests (both CentOS). My problem is that I am not able to ping between the guests.

The following is the network configuration:

My Host :
Code:

sohny@ThinkPadOffice:~$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr ff:de:f1:25:CE:d6 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:46990 errors:0 dropped:0 overruns:0 frame:0
          TX packets:54899 errors:260 dropped:0 overruns:0 carrier:260
          collisions:702 txqueuelen:1000
          RX bytes:33283667 (33.2 MB)  TX bytes:30675528 (30.6 MB)
          Interrupt:20 Memory:f2400000-f2420000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:56481 errors:0 dropped:0 overruns:0 frame:0
          TX packets:56481 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:20440352 (20.4 MB)  TX bytes:20440352 (20.4 MB)

virbr0    Link encap:Ethernet  HWaddr fe:54:00:6b:57:0d 
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:93 errors:0 dropped:0 overruns:0 frame:0
          TX packets:239 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:19969 (19.9 KB)  TX bytes:36488 (36.4 KB)

vnet0    Link encap:Ethernet  HWaddr fe:54:00:6b:57:0d 
          inet6 addr: fe80::fc54:ff:fe6b:570d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:66 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1024 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:8498 (8.4 KB)  TX bytes:66125 (66.1 KB)

vnet1    Link encap:Ethernet  HWaddr fe:54:00:bb:3b:07 
          inet6 addr: fe80::fc54:ff:febb:3b07/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:42 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1014 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:6291 (6.2 KB)  TX bytes:65359 (65.3 KB)

My Guest 1: Cent OS 1

Code:

eth2      Link encap:Ethernet  HWaddr 52:54:00:BB:3B:07 
          inet addr:192.168.122.81  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:febb:3b07/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:303 errors:0 dropped:0 overruns:0 frame:0
          TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:34758 (33.9 KiB)  TX bytes:14965 (14.6 KiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

virbr0    Link encap:Ethernet  HWaddr 52:54:00:60:20:D4 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:3855 (3.7 KiB)

My Guest2 : CentOS 2

Code:

eth2      Link encap:Ethernet  HWaddr 52:54:00:6B:57:0D 
          inet addr:192.168.122.247  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:fe6b:570d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:314 errors:0 dropped:0 overruns:0 frame:0
          TX packets:105 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:34066 (33.2 KiB)  TX bytes:14210 (13.8 KiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

virbr0    Link encap:Ethernet  HWaddr 52:54:00:60:20:D4 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:5002 (4.8 KiB)

I am able to ping the Guests from my Host ( Ubuntu ) but I am not able to ping one guest from another.

Please let me know what I am missing.

MartinStrec 01-28-2012 10:37 PM

Look for filtering and forwarding of IP protocol.

That is example of my /etc/sysctl.conf
Quote:

# Controls IP packet forwarding
net.ipv4.ip_forward = 1

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-arptables = 0
You can set values directly using 'sysctl -w ' (see 'man systcl')

sohny 01-29-2012 01:02 AM

Hai thanx for the reply,
these values are to be checked in host or guests?

MartinStrec 01-29-2012 03:41 AM

Yeah, it's in the host

sohny 01-31-2012 11:49 AM

Thank You that worked


All times are GMT -5. The time now is 12:28 PM.