File: qemu-ifup

package info (click to toggle)
xen 4.14.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 36,700 kB
  • sloc: ansic: 492,012; asm: 8,191; python: 6,969; makefile: 6,926; sh: 6,593; ml: 5,122; perl: 4,420; cpp: 1,885; lex: 813; yacc: 644; pascal: 489; sed: 4
file content (13 lines) | stat: -rwxr-xr-x 355 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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

ip link set up dev $1
brctl addif $2 $1