summaryrefslogtreecommitdiffstats
path: root/net/kvm-ifup
blob: 87e105e9b0e70f85f6f0e27d17a369d56c72d536 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# Debian default
#switch=$(ip route ls | awk '/^default / { for(i=0;i<NF;i++) { if ($(i) == "dev") print $(i+1) }}')
#/sbin/ifconfig $1 0.0.0.0 up
#/usr/sbin/brctl addif ${switch} $1
#exit 0


# Configuration with NAT support

. /usr/share/kvm-wrapper/net/kvm-net.conf

echo "$0:"
echo "Adding $1 to bridge interface $BRIDGE"
brctl addif "$BRIDGE" "$1"
ip link set "$1" up