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