ia64/xen-unstable

view tools/domain_builder/vifinit @ 386:49c0cdb50376

bitkeeper revision 1.184.1.1 (3ea6af80NfieJpdXAH_E9VdoYOKtXQ)

fixed broken symlink creation
author jws@cairnwell.research
date Wed Apr 23 15:21:36 2003 +0000 (2003-04-23)
parents 90eb994a96e2
children
line source
1 #!/bin/bash
2 #
3 # vifinit
4 #
5 # This is a silly little script to dump a couple of simple rules down to
6 # the hypervisor to assign a full static IP to a given virtual interface.
7 #
8 # Usage is:
9 #
10 # vifinit [vif dom] [vif idx] [dotted decimal ip address]
11 #
12 if [ $# -ne 3 ] ;
13 then
14 echo "usage: vifinit [vif dom] [vif idx] [dotted decimal ip address]"
15 exit
16 fi
18 #outbound rule:
19 echo "ADD ACCEPT srcaddr=$3 srcaddrmask=255.255.255.255 srcdom=$1 srcidx=$2 dst=PHYS proto=any" > /proc/vfr
21 #inbound rule:
22 echo "ADD ACCEPT dstaddr=$3 dstaddrmask=255.255.255.255 src=ANY dstdom=$1 dstidx=$2 proto=any" > /proc/vfr
24 #----] done.