14 SUBNET=`expr match "$VIRTNET" '.*\(/[0-9]*\)'`
21 $IP tunnel add $EGRE mode gre type eth remote $REMOTE key $KEY ttl 64
26 ip link add link $EGRE $MACV type macvlan
28 ### Put a process in the vserver so we can move the interface there
29 su $SLICE -c "sleep 30 &"
30 PID=`su $SLICE -c "pgrep -n sleep"`
31 $IP link set $MACV netns $PID
32 naddress --add --nid $SLICEID --ip ${VIRTIP}${SUBNET}
33 su $SLICE -c "sudo /sbin/ifconfig $MACV ${VIRTIP}${SUBNET} mtu 1458 up"
36 tc qdisc add dev $EGRE root handle 1: htb default 10
37 tc class add dev $EGRE parent 1: classid 1:10 htb rate $RATE ceil $RATE