I make virtual environment with Ubuntu+KVM.
It is the following constitution, but it is lent IP (192.168.1.2) ubuntu02 by DHCPD, and the same IP seems to be lent to ubuntu03
router/dhcpd - ubuntu01(host) 192.168.1.100
- ubuntu02(kvm) 192.168.1.2
- ubuntu03(kvm) 192.168.1.2?
What's wrong?
ubuntu01:/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
address 192.168.1.100
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
ubuntu0[23]:/etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
I usually execute this shell command sudo kvm -hda ubuntu.img -m 512 -localtime -net nic,model=pcnet -net tap,script=/etc/qemu-ifup -daemonize -nographic
/etc/qemu-ifup
#!/bin/sh
#sudo -p "Password for $0:" /sbin/ifconfig $1 172.20.0.1
sudo /sbin/ifconfig $1 0.0.0.0 promisc up
sudo /usr/sbin/brctl addif br0 $1
sleep 2