Host is Debian 6.0.4 Kernel 3.3.4
QEMU-KVM 1.0.1
I'm trying to make a network bridge for the guest so it can be directly accessed by everything else in LAN, I think I did everything alright but I just cant make the guest get a static IP.
Guest is Windows 2008 R2 Server.
Host have multiple NICs, eth0 that is connected to the network directly and eth1 that is part of bridge br0.
What I want :
Getting guest a static IP.
Guest network will not work if :
- br0 static, guest static at same IP/netmask/subnet/etc.
- br0 static, guest static at different IP with same netmask/subnet/etc
- br0 DHCP, guest static
- br0 DHCP or static, guest getting static IP from DHCP server
Guest network working with :
- br0 DHCP or static, guest DHCP
Below is a picture for br0 DHCP, guest DHCP configuration (working)
http://www.dropmocks.com/mBik49
Below is what I had when host was a Windows 2008 server and what I am aiming to have with current configuration.
http://www.dropmocks.com/mBidFd
I assume I have to do someting with iptables? If yes then how.
Any help would be appreciated.
/etc/network/interfaces for bridge is as follow
eth1 at manual
iface br0 inet dhcp
pre-up ip tuntap add dev tap0 mode tap user root
pre-up ip link set tap0 up
bridge_ports eth1 tap0
bridge_stp off
bridge_maxwait 0
bridge_fd 0
post-down ip link set tap0 down
post-down ip tuntap del dev tap0 mode tap
Guest is running with
-net nic,model=virtio,vlan=1,macaddr=[some random mac]
-net tap,vlan=1,ifname=tap0 plus both the noscript thingy i can't exactly remember so it wont execute qemu-ifup/down script