Networking Forums

Networking Forums > Computer Networking > Linux Networking > kvm bridging problem on ubuntu 11.04

Reply
Thread Tools Display Modes

kvm bridging problem on ubuntu 11.04

 
 
ario (sorry, anonymity feels a lot safer)
Guest
Posts: n/a

 
      09-23-2011, 04:12 AM
Hello, my problem my Ubuntu 11.04 with KVM is that I just can't get the
bridge between my VMs and my host working.

I've been reading the information in and following the instructions in:

https://help.ubuntu.com/11.04/serverguide/C/network-
configuration.html#bridging

https://help.ubuntu.com/community/NetworkAdmin

http://www.howtoforge.com/virtualiza...n-ubuntu-11.04

https://help.ubuntu.com/11.04/serverguide/C/network-
configuration.html#bridging


KVM automatically installs its own bridge: virbr0, to which the VMs
virtual NICs vnet0 and vnet1 are connected.

I am able to make an additional bridge, br0, to which the physical NICs
eth0 and eth1 (currently unused) are connected as ports.

What I get form 'brctl show' is:

----------- start quote
bridge name bridge id STP enabled interfaces
br0 8000.1c6f653005e6 yes eth0
eth1
virbr0 8000.fe54003c4d1d yes vnet0
vnet1
----------- end quote


and ifconfig gives me (leaving out the traffic data):

----------- start quote
br0 Link encap:Ethernet HWaddr 1c:6f:65:30:05:e6
inet addr:192.168.193.223 Bcast:255.255.255.255
Mask:255.255.255.0
inet6 addr: fe80::1e6f:65ff:fe30:5e6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

eth0 Link encap:Ethernet HWaddr 1c:6f:65:30:06:07
inet6 addr: fe80::1e6f:65ff:fe30:607/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

eth1 Link encap:Ethernet HWaddr 1c:6f:65:30:05:e6
UP BROADCAST 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

virbr0 Link encap:Ethernet HWaddr fe:54:00:3c:4d:1d
inet addr:192.168.122.1 Bcast:192.168.122.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

vnet0 Link encap:Ethernet HWaddr fe:54:00:3c:4d:1d
inet6 addr: fe80::fc54:ff:fe3c:4d1d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

vnet1 Link encap:Ethernet HWaddr fe:54:00:99:b7:61
inet6 addr: fe80::fc54:ff:fe99:b761/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
----------- end quote

and the structure is apparently:

lo
br0 <--> eth0 eth1
virbr0 <--> vnet0 vnet1

Both bridges are STP enabled.
I was thinking that maybe the virtual interfaces should be connected to
br0, giving:

lo
br0 <--> eth0 eth1 vnet0 vnet1
virbr0

but I can't get it working that way.
I tried to remove vnet0 and vnet1 from the bridge virbr0 using brctl and
added them to the br0 bridge, but at the next restart they were not
listed anymore, so I put them back.

I have flushed the iptables on the physical host and on one of the
virtual hosts and set hosts.allow to ALL: ALL.

I'm almost there, because I'm able to ping the virbr0, just not the
clients that are connected on vnet0 and vnet1.

If someone could give me a clue of what's lacking, then I'd appreciate
that very much.

Thanks,
ario
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu wireless networking problem since 8.10 preacher Linux Networking 10 11-26-2008 03:14 PM
Problem seeing correct originating IP in Ubuntu linux Henrik Uhrenfeldt Linux Networking 8 01-28-2008 08:49 PM
Internet problem - Ubuntu joshdotwhite@gmail.com Linux Networking 7 04-09-2007 01:01 AM
ubuntu wep problem nishoba Linux Networking 0 04-21-2006 10:13 AM
nfs problem between fc2 and ubuntu 5.1 holiday Linux Networking 0 09-29-2005 02:40 PM



1 2 3 4 5 6 7 8 9 10 11