My server at home has a single NIC that I put into a bridge.  From my
/etc/network/interfaces file (this is a Debian and related file, you will
need to figure out how to apply this to a CentOS server):

auto br0
iface br0 inet static
        address XX.XX.XX.XX
        netmask 255.255.255.0
        network XX.XX.XX.0
        broadcast XX.XX.XX.255
        gateway XX.XX.XX.3
        dns-nameservers 127.0.0.1 XX.XX.XX.8 XX.XX.XX.3
        dns-search domaina.tld domainb.tld
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0

KVM simply uses br0 as the network device while the host retains
connectivity.  For a production server you really want VM traffic on a
different NIC.

This config also works for IPv6.  My host and VMs all have IPv6
connectivity without having to change any configuration client (or KVM
host) side.


On Tue, Oct 29, 2013 at 9:54 AM, Peter Van den Wildenbergh <
peterlinuxg...@gmail.com> wrote:

>  On 13-10-29 08:56 AM, robinson andrew wrote:
>
> Has anyone worked with KVM on Centos 6.4?
>
>
> No, but I use ProxMox a lot ... give it a try...
>
>
> FYI this is how /etc/network/interfaces looks like:
>
> # network interface settings
> auto lo
> iface lo inet loopback
>
> iface eth0 inet manual
>
> iface eth1 inet manual
>
> iface eth2 inet manual
>
> auto vmbr0
> iface vmbr0 inet static
>         address  192.168.10.200
>         netmask  255.255.255.0
>         gateway  192.168.10.1
>         bridge_ports eth0
>         bridge_stp off
>         bridge_fd 0
>
> auto vmbr1
> iface vmbr1 inet static
>         address  10.10.20.200
>         netmask  255.255.255.0
>         bridge_ports eth1
>         bridge_stp off
>         bridge_fd 0
>
> auto vmbr2
> iface vmbr2 inet static
>         address  10.10.22.200
>         netmask  255.255.255.0
>         bridge_ports eth2
>         bridge_stp off
>         bridge_fd 0
>
>
> 192.168.10.200 = host (server) address
>
> Guests are set to 192.168.10.120 - 150
>
> I have 3 VLANs and 3 NICs
>
> _______________________________________________
> clug-talk mailing list
> clug-talk@clug.ca
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying
>
_______________________________________________
clug-talk mailing list
clug-talk@clug.ca
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to