1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 05:29:32 +00:00

poky-qemu-ifup: allow multiple tap devices

This patch bases the tap IP address on the device number, providing
each device with its own IP address.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
This commit is contained in:
Jeff Dike
2010-08-04 17:19:59 -04:00
committed by Richard Purdie
parent c791544bb0
commit d9aa25a337
+2 -1
View File
@@ -30,7 +30,8 @@ if [ "x$IFCONFIG" = "x" ]; then
IFCONFIG=/sbin/ifconfig
fi
$IFCONFIG $TAP 192.168.7.1
n=$[ `echo $TAP | sed 's/tap//'` + 1 ]
$IFCONFIG $TAP 192.168.7.$n
# setup NAT for tap0 interface to have internet access in QEMU
IPTABLES=`which iptables`