LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-03-2013, 12:24 PM   #1
etheraap
LQ Newbie
 
Registered: Feb 2013
Posts: 3

Rep: Reputation: Disabled
kvm/libvirt bridge


Hey Guys,

I'm building a linux virtualization node based on CentOS 6.3 with kvm and libvirt (using virsh as interface). I have a cheapass server at OVH with two public ipv4 addresses, i want to use the second address as primair address for a NAT network. The first virtual server (vm1) should be the gateway which communicates with the outside world.

So i bridged eth0 and assigned the bridge to the virtual machine's config. I expect that i can assign a public address to the virtual machine. However if i put the secundair ip to the virtual machine's network config with the correct gateway, broadcast and netmask i can still not communicate from outside.

bridge config:

ifconfig
br0 Link encap:Ethernet HWaddr 00:25:90:04:05:44
inet addr:91.***.11.*** Bcast:91.***.11.*** Mask:255.255.255.0
inet6 addr: 2001:***:1:***::1/64 Scope:Global
inet6 addr: ***::225:***:fe04:***/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3117 errors:0 dropped:0 overruns:0 frame:0
TX packets:3384 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:318507 (311.0 KiB) TX bytes:451534 (440.9 KiB)

# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.002590040544 yes eth0

tcpdump while pinging secundairy ip from outside:
tcpdump -i br0 icmp -n
listening on br0, link-type EN10MB (Ethernet), capture size 65535 bytes
18:48:18.670758 IP **.210.**.25 > 94.**.***.169: ICMP echo request, id 5607, seq 17, length 64


proxy ip is turned on to avoid problems with different MAC's:
sysctl.conf:
# proxy arp
net.ipv4.conf.eth0.proxy_arp = 1
net.ipv4.conf.br0.proxy_arp = 1
#bypass iptables for bridging
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0



libvirt virtual machine config:
<interface type='bridge'>
<mac address='52:54:00:59:6c:43'/>
<source bridge='br0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>


Does someone have an idea if i do something wrong, or forget something?

Thanks!!

Last edited by etheraap; 02-03-2013 at 12:26 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
libvirt install with kvm (from source) guardian1 Linux - Virtualization and Cloud 2 12-07-2012 05:07 PM
Modified kvm does not work the same after installing libvirt essential1 Linux - Virtualization and Cloud 12 11-07-2012 11:02 AM
Which version kvm/libvirt on which distros? Nick_C Linux - Virtualization and Cloud 11 03-07-2012 10:14 AM
LXer: Scripting KVM with Python, Part 2: Add a GUI to manage KVM with libvirt and Python LXer Syndicated Linux News 0 01-17-2012 08:11 PM
LXer: Set up Ubuntu 11.04 KVM to run is spice session on Fedora 14 KVM Server ( Libvirt Preview Env) LXer Syndicated Linux News 0 03-20-2011 12:00 AM


All times are GMT -5. The time now is 09:59 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration