<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
Dnia 2012-01-14, sob o godzinie 11:11 -0600, Trey Dockendorf pisze:<BR>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    On Sat, Jan 14, 2012 at 8:41 AM, Radek Bursztynowski &lt;<A HREF="mailto:radek@bursztynowski.waw.pl">radek@bursztynowski.waw.pl</A>&gt; wrote:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        Dnia 2012-01-14, sob o godzinie 15:08 +0100, Dennis Jacobfeuerborn pisze: 
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BLOCKQUOTE TYPE=CITE>
<PRE>
On 01/14/2012 02:59 PM, Radek Bursztynowski wrote:
&gt; Hi,
&gt;
&gt; I have installed CentOS 6.2 x86_64 and KVM/Qemu and I have some troubles
&gt; with network.
&gt;
&gt; The first case:
&gt; -----------------
&gt;
&gt; The configuration is:
&gt; - CentOS 6.2 (hardware machine) has one Ethernet interface with static IP
&gt; address (eth0).
&gt; - Virtual machine has bridge network interface with eth0 interface on
&gt; CentOS 6.2. This bridge is created using wizard integrated with virt-manager.
&gt; - Bridge interface on virtual machine receives IP addres from DHCP server.
&gt; IP address is received well.
&gt; - All firewalls and SELinux are closed.
&gt;
&gt; Virtual machine has no any connection with CentOS 6.2 hardware machine, and
&gt; CentOS 6.2 has no any connection with virtual machine. But every others
&gt; machines have all connection with both virtual and CentOS 6.2 machine.
&gt;
&gt; The question: Why?
&gt;
&gt; The second case:
&gt; ----------------------
&gt;
&gt; The configuration is:
&gt; - On CentOS 6.2 (hardware machine) I created bridhe (br0) with eth0
&gt; hardware interface. Two situations:
&gt; + I force two different IP addresses for eth0 and br0 interfaces - there no
&gt; any connection with this server. So I don't test this case.
&gt; + I forced one IP addres for both eth0 and br0 interfaces. ifconfig shows
&gt; that eth0 has no IP address, br0 has IP address. So, I test this case.
&gt; - I use Red Hat documentation:
&gt; <A HREF="http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html-single/Virtualization/index.html#sect-Virtualization-Network_Configuration-Bridged_networking_with_libvirt">http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html-single/Virtualization/index.html#sect-Virtualization-Network_Configuration-Bridged_networking_with_libvirt</A>)
&gt; - On virtual machine I created bridge connection with br0 interface on
&gt; CentOS 6.2.
&gt; - All machines have all connections.
&gt; - All firewalls and SELinux are closed.
&gt;
&gt; NFS server on CentOS 6.2 (hardware machine) doesn't serve exported file system.
&gt;
&gt; The questions:
&gt; 1. Is it proper that eth0 has no IP addres and bridge (br0) interface has?
&gt; 2. What about my NFS? NFS server worked well before starting virtualization.
&gt;
&gt; Who can me help with my troubles?

You say you create bridge interfaces in your virtual machines. Why? Usually 
you don't do that you create a bridge only on the host.

You also say you &quot;forced&quot; one IP address for both eth0 and br0. There is no 
need to force anything. eth0 shouldn't have an IP but br0 should have this 
IP instead.

Regards,
   Dennis
_______________________________________________
</PRE>
        </BLOCKQUOTE>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        Dennis,<BR>
        <BR>
        Thanks for interesting. Few words explanation. <BR>
        I have one network segment, and I try to joint virtual machines to this segment. So my hardvare machine has 192.168.0.1 address, gateway is 192.168.0.254, netmask = 255.255.255.0.<BR>
        <BR>
        Regarding bridge on my virtual machine. When I started virtualization I had NAT only in another network segment. So, I look for solution adding virtual machines to my base network segment. Previously I used VMware Server, and it was proper solution.<BR>
        <BR>
        Regarding my force one IP addres for both interface. I used this solution because eth0 has no any IP addres and I couldn't find CentOS 6.2 server in the network. Using exactly Red Hat configuration I have:<BR>
        <BR>
        # more ifcfg-eth0<BR>
        DEVICE=eth0<BR>
        TYPE=Ethernet<BR>
        BOOTPROTO=none<BR>
        IPADDR=192.168.0.1<BR>
        NETMASK=255.255.255.0<BR>
        PREFIX=24<BR>
        GATEWAY=192.168.0.254<BR>
        DNS1=192.168.0.199<BR>
        DNS2=194.204.159.1<BR>
        DNS3=194.204.152.34<BR>
        DEFROUTE=yes<BR>
        IPV4_FAILURE_FATAL=yes<BR>
        IPV6INIT=no<BR>
        NAME=eth0<BR>
        ONBOOT=yes<BR>
        BRIDGE=br0<BR>
        MTU=9000<BR>
        DOMAIN=<A HREF="http://bursztynowski.waw.pl">bursztynowski.waw.pl</A><BR>
        UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03<BR>
        <BR>
        # more ifcfg-br0<BR>
        DEVICE=br0<BR>
        TYPE=Bridge<BR>
        BOOTPROTO=dhcp<BR>
        #IPADDR=192.168.0.1<BR>
        #NETMASK=255.255.255.0<BR>
        #PREFIX=24<BR>
        #GATEWAY=192.168.0.254<BR>
        #DNS1=192.168.0.199<BR>
        #DNS2=194.204.159.1<BR>
        #DNS3=194.204.152.34<BR>
        ONBOOT=yes<BR>
        DELAY=0<BR>
        <BR>
        (previous configuration br0 was: <BR>
        BOOTPRO=static<BR>
        and with no '#' characters. Then all worked excluding NFS.<BR>
        <BR>
        <BR>
        # ifconfig&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
        br0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Link encap:Ethernet&nbsp; HWaddr 00:50:8D:94:2F:B7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet addr:192.168.0.92&nbsp; Bcast:192.168.0.255&nbsp; Mask:255.255.255.0<BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet6 addr: fe80::250:8dff:fe94:2fb7/64 Scope:Link&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UP BROADCAST RUNNING MULTICAST&nbsp; MTU:9000&nbsp; Metric:1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX packets:16 errors:0 dropped:0 overruns:0 frame:0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TX packets:26 errors:0 dropped:0 overruns:0 carrier:0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; collisions:0 txqueuelen:0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX bytes:3034 (2.9 KiB)&nbsp; TX bytes:4313 (4.2 KiB)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>
        <BR>
        eth0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Link encap:Ethernet&nbsp; HWaddr 00:50:8D:94:2F:B7&nbsp; <BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet6 addr: fe80::250:8dff:fe94:2fb7/64 Scope:Link<BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UP BROADCAST RUNNING PROMISC MULTICAST&nbsp; MTU:9000&nbsp; Metric:1<BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX packets:57255 errors:0 dropped:0 overruns:0 frame:0<BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TX packets:60263 errors:0 dropped:0 overruns:0 carrier:0<BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; collisions:0 txqueuelen:1000<BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX bytes:21481457 (20.4 MiB)&nbsp; TX bytes:15768417 (15.0 MiB)<BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Interrupt:23 Base address:0x8000<BR>
        <BR>
        lo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Link encap:Local Loopback<BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet addr:127.0.0.1&nbsp; Mask:255.0.0.0<BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet6 addr: ::1/128 Scope:Host<BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UP LOOPBACK RUNNING&nbsp; MTU:16436&nbsp; Metric:1<BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX packets:30723 errors:0 dropped:0 overruns:0 frame:0<BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TX packets:30723 errors:0 dropped:0 overruns:0 carrier:0<BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; collisions:0 txqueuelen:0<BR>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX bytes:92725098 (88.4 MiB)&nbsp; TX bytes:92725098 (88.4 MiB)<BR>
        <BR>
        Should I replace static and dhcp addresses between eth0 and br0 interface?<BR>
        <BR>
        Regards,<BR>
        Radek<BR>
        <BR>
        <BR>
        <BR>
        <BR>
        <BR>
        <BR>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BR>
        _______________________________________________<BR>
        CentOS-virt mailing list<BR>
        <A HREF="mailto:CentOS-virt@centos.org">CentOS-virt@centos.org</A><BR>
        <A HREF="http://lists.centos.org/mailman/listinfo/centos-virt">http://lists.centos.org/mailman/listinfo/centos-virt</A><BR>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    To use bridging on the virtual host you have to assign the IPs to br0 and then add &quot;Bridge=br0&quot; to ifcfg-eth0.&nbsp; I have working examples here, <A HREF="http://itscblog.tamu.edu/startup-guide-for-kvm-on-centos-6/.">http://itscblog.tamu.edu/startup-guide-for-kvm-on-centos-6/.</A><BR>
</BLOCKQUOTE>
<BR>
Thanks. I used this advice as above. All work excluding my NFS.<BR>
<BR>
Regards,<BR>
Radek
<BR>
</BODY>
</HTML>