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:
committed by
Richard Purdie
parent
c791544bb0
commit
d9aa25a337
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user