KVM guest with 2 network interfaces in diferrent VLANs
Hi all,
I would like to configure a guest VM which will have two network interfaces in different VLANs (106,711). the host configuration looks as follows: /etc/sysconfig/network-scripts/ifcfg-eth0 (connected to a trunk port) Code:
DEVICE=eth0 Code:
DEVICE=eth0.106 /etc/sysconfig/network-scripts/ifcfg-eth0.711 Code:
DEVICE=eth0.711 Code:
brctl addbr br0 Code:
tunctl -b -u root Code:
brctl show Code:
/usr/libexec/qemu-kvm -hda /data/disk.raw -smp 2 -m 2G -net nic,macaddr=52:54:00:12:34:55 -net tap,ifname=tap0,script=no -net nic,macaddr=52:54:00:12:34:75 -net tap,ifname=tap1,script=no The problem I have is that even though the tap1 interface is bridged to the VLAN 106 the eth1 interface in the guest still gets an IP address from the VLAN 711. Is my setup correct or am I missing anything? I use CentOS 5.6 as the host system. Thanks for your help Tomas |
As you said that you are using CentOS as host I am assuming you are using libvirtd. Check network card settings in virt-manager for this guest for both the NIC, as you said that they should be pointing to different VLAN it should be configured at guest level accordingly in virt-manager.
|
All times are GMT -5. The time now is 04:17 PM. |