#!/bin/sh

echo -c 'config qemu network with xen bridge for '
echo $*

# Initialise a dummy MAC address. We choose the numerically
# largest non-broadcast address to prevent the address getting
# stolen by an Ethernet bridge for STP purposes.
# (FE:FF:FF:FF:FF:FF)
ip link set $1 address fe:ff:ff:ff:ff:ff || true

ifconfig $1 0.0.0.0 up
brctl addif $2 $1
