blob: 1fe931917380fade71c37ebf030a68765c915660 (
plain)
1
2
3
4
5
6
7
8
9
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"
|