| 1 | #!/bin/sh |
| 2 | |
| 3 | echo -c 'config qemu network with xen bridge for ' |
| 4 | echo $* |
| 5 | |
| 6 | # Initialise a dummy MAC address. We choose the numerically |
| 7 | # largest non-broadcast address to prevent the address getting |
| 8 | # stolen by an Ethernet bridge for STP purposes. |
| 9 | # (FE:FF:FF:FF:FF:FF) |
| 10 | ip link set $1 address fe:ff:ff:ff:ff:ff || true |
| 11 | |
| 12 | ip link set up dev $1 |
| 13 | brctl addif $2 $1 |