direct-io.hg

view tools/vnet/doc/vnet-module.txt @ 5517:10e9028c8e3d

bitkeeper revision 1.1718.1.10 (42b7b19aqOS_1M8I4pIOFjiTPYWV-g)

Merge bk://xenbits.xensource.com/xen-unstable.bk
into spot.cl.cam.ac.uk:C:/Documents and Settings/iap10/xen-unstable.bk
author iap10@spot.cl.cam.ac.uk
date Tue Jun 21 06:20:10 2005 +0000 (2005-06-21)
parents 0a4b76b6b5a0
children 6bad5eb72ce0 dfaf788ab18c
line source
1 Vnet Module Command Interface
2 Mike Wray <mike.wray@hp.com>
3 2004/09/17
5 When insmod the vnet-module creates /proc/vnet/policy which
6 can be used to control the module by writing commands into it.
7 The return code from the command should be returned by close.
9 The commands are:
11 (vnet.add (id <id>) [(security { none | auth | conf } )] )
13 Create the vnet with id <id> and the given security level (default none).
14 Security levels:
15 - none: no security
16 - auth: message authentication (IPSEC hmac)
17 - conf: message confidentiality (IPSEC hmac and encryption)
19 (vnet.del (id <id>))
21 Delete the vnet with id <id>.
23 (vif.add (vnet <vnetid>) (vmac <macaddr>))
25 Add the vif with MAC address <macaddr> to the vnet with id <vnetid>.
26 This makes the vnet module respond to VARP requests for <macaddr>
27 on vnet <vnetid>.
29 (vif.del (vnet <vnetid>) (vmac <macaddr>))
31 Remove the vif with MAC address <macaddr> from the vnet with id <vnetid>.
32 The vnet module will stop responding to VARP for the vif.
34 Examples:
36 To create vnet 10 with no security:
38 echo '(vnet.add (id 10))' > /proc/vnet/policy
40 To create vnet 11 with message authentication:
42 echo '(vnet.add (id 11) (security auth))' > /proc/vnet/policy
44 To add the vif with vmac "aa:00:00:bc:34:ae" to vnet 10:
46 echo '(vif.add (vnet 10) (vmac aa:00:00:bc:34:ae))' > /proc/vnet/policy
48 To remove the vif from the vnet:
50 echo '(vif.del (vnet 10) (vmac aa:00:00:bc:34:ae))' > /proc/vnet/policy