[libvirt-users] Creating a network bridge with multiple interfaces

Alex mysqlstudent at gmail.com
Tue Apr 5 00:17:42 UTC 2011


Hi,
I have an existing fedora14 system with two interfaces and several
virtual interfaces (as in eth0:0, etc). They are currently configured
to not be controlled by NetworkManager, but just standard network
services.

I've recently started working with libvirtd, so I also have a virbr0
interface as well that has its own network and is masquerading the
networking for the single KVM instance I have running.

I would now like to create another instance that is not masqueraded,
but instead uses another virtual interface, such as eth0:1, which is
an Internet-addressable IP address. When I try to do this,
virt-manager seems to still configure it using NAT.

I think the right way to do this is to convert the eth* instances to
instead use a real bridge, correct? How can I do this?

Below is the output from ifconfig on my system:

eth0      Link encap:Ethernet  HWaddr 40:61:86:4E:84:09
          inet addr:XX.195.193.YY  Bcast:XX.195.193.YY  Mask:255.255.255.248
          inet6 addr: fe80::4261:86ff:fe4e:8409/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:204613580 errors:0 dropped:0 overruns:0 frame:0
          TX packets:220748087 errors:0 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:1000
          RX bytes:146443250035 (136.3 GiB)  TX bytes:207505258199 (193.2 GiB)
          Interrupt:42

eth0:0    Link encap:Ethernet  HWaddr 40:61:86:4E:84:09
          inet addr:XX.195.193.ZZ  Bcast:XX.195.193.YY  Mask:255.255.255.248
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:42

eth1      Link encap:Ethernet  HWaddr 00:0E:0C:3B:36:F4
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20e:cff:fe3b:36f4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:241615579 errors:6 dropped:0 overruns:0 frame:3
          TX packets:230218850 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:210464139370 (196.0 GiB)  TX bytes:171698241573 (159.9 GiB)

eth1:0    Link encap:Ethernet  HWaddr 00:0E:0C:3B:36:F4
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth1:1    Link encap:Ethernet  HWaddr 00:0E:0C:3B:36:F4
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

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:3439643 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3439643 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:849466836 (810.1 MiB)  TX bytes:849466836 (810.1 MiB)

virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:192.168.125.1  Bcast:192.168.125.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16 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:3088 (3.0 KiB)  TX bytes:0 (0.0 b)

Thanks for any ideas.
Alex




More information about the libvirt-users mailing list