diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-01-10 00:08:53 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-01-10 00:08:53 +0100 |
commit | a61487ea842a83b927c689f3b38fbb3edd289b8a (patch) | |
tree | 7060869e32b9ccada57c00b1732638d8248f5f25 /setup-qemu-env | |
parent | ad590c18ad260568e45701557fffb3a3e519dc22 (diff) | |
download | bin-a61487ea842a83b927c689f3b38fbb3edd289b8a.tar.gz bin-a61487ea842a83b927c689f3b38fbb3edd289b8a.tar.xz |
add a bunch of new scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'setup-qemu-env')
-rwxr-xr-x | setup-qemu-env | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/setup-qemu-env b/setup-qemu-env new file mode 100755 index 0000000..1fe9319 --- /dev/null +++ b/setup-qemu-env @@ -0,0 +1,10 @@ +#!/bin/sh + +#brctl addbr br-qemu +ip link add br-qemu type bridge + +ip addr add 10.0.2.1/24 brd + dev br-qemu +ip link set br-qemu up +iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE + +dnsmasq -i br-qemu --dhcp-leasefile=/tmp/qemu-dhcpd.leases --dhcp-range=10.0.2.2,10.0.2.100,30m #-M "arch/boot/syslinux/gpxelinux.0,,192.168.4.1" |