Dear all
I have set two directory for QEMU.
One of my qemu-ifup is as follow(the other ip address is different)
#!/bin/sh
sudo modprobe tun
sudo /sbin/ifconfig $1 up 192.168.2.52 netmask 255.255.255.0 broadcast 192.168.2.255
# IP masquerade
sudo echo "1" > /proc/sys/net/ipv4/ip_forward
sudo /sbin/iptables -N nat
sudo /sbin/iptables -t nat -F
sudo /sbin/iptables -t nat -A POSTROUTING -s 192.168.2.62 -j MASQUERADE
sudo /sbin/iptables -t nat -A POSTROUTING -d 192.168.2.62 -o $1
As the QEMU start, I would key in two instructions
ifconfig eth0 192.168.2.62
route add default gw 192.168.2.52
In the case of mac address, I have found that two QEMU use the same mac address.
However, when I try to assign another mac address to second QEMU.
sudo /home/sn/qemu/qemu-0.12.5/install_gcc/bin/qemu-system-arm -M versatilepb -monitor stdio -kernel vmlinuz-2.6.26-2-versatile -initrd initrd.img-2.6.26-2-versatile -hda test.img -append "root=/dev/sda1" -net nic,macaddr=52:54:00:12:34:57 -net tap,script=./qemu-ifup
The eth0 will disappear like this
I can't realize why this would happen.
Please tell me where I was wrong.