Mip6-escenario

De EDUC@REDES
Saltar a: navegación, buscar

Ejercicio práctico sobre DNS: ESPECIFICACIÓN (dns.xml)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE vnuml SYSTEM "/usr/share/xml/vnuml/vnuml.dtd"
[
  <!ENTITY VNUMLDIR "/usr/share/vnuml/">
  <!ENTITY BASEDIR  "/usr/share/vnuml/mip6">
]>

<!--

VNUML Limited User Scenario
See the tutorial/index.html document for details

NOTE: if you are experiencing problems with the conventional xterm, we recommend you
to uncomment the <xterm> tag, in order to use gnome-terminal, that seems to be more 
stable. Of course, you will need the gnome-terminal installed
in your system.

-->

<vnuml>
  <global>
    <version>1.7</version>
    <simulation_name>mip6</simulation_name>
    <ssh_version>1</ssh_version>
    <ssh_key>~/.ssh/identity.pub</ssh_key>
    <automac/>
    <vm_mgmt type="private" network="10.0.0.0" mask="24" offset="4">
    <host_mapping />
    </vm_mgmt>
    <vm_defaults>
       <filesystem type="cow">&VNUMLDIR;filesystems/root_fs_tutorial-0.4.2-beta2</filesystem>
       <mem>64M</mem>
       <kernel>&VNUMLDIR;kernels/linux-2.6.16.27-bs2-xt-1m</kernel>
       <basedir>&BASEDIR;</basedir>  
       <console id="0">xterm</console>
       <xterm>gnome-terminal,-t,-x</xterm>
    </vm_defaults>
  </global>
  <net name="Net0" mode="uml_switch" uml_switch_binary="/usr/bin/uml_switch4capture" capture_dev="capture0"/>
  <net name="Net1" mode="uml_switch" uml_switch_binary="/usr/bin/uml_switch4capture" capture_dev="capture1"/>
  <net name="Net2" mode="uml_switch" uml_switch_binary="/usr/bin/uml_switch4capture" capture_dev="capture2"/>
  <vm name="mn">
    <xterm>gnome-terminal,-t mn,-x</xterm>
    <if id="1" net="Net0"></if>
    <if id="2" net="Net2"></if>
    <filetree root="/" when="start">conf/mn</filetree>
    <filetree root="/root" when="start">conf/etc_hosts</filetree>
    <exec seq="start" type="verbatim">sh mn_instructions</exec>
    <exec seq="start" type="verbatim">ifconfig eth2 down</exec>
    <exec seq="start" type="verbatim">cat etc_hosts >> /etc/hosts</exec>
  </vm>
  <vm name="ha">
    <xterm>gnome-terminal,-t ha,-x</xterm>
    <if id="1" net="Net0">
	    <ipv6>2001:1:1:1:fcfd:ff:fe00:201</ipv6>
    </if>
    <if id="2" net="Net1">
	    <ipv6>2001:1:1:2:fcfd:ff:fe00:202</ipv6>
    </if>
    <route type="ipv6" gw="2001:1:1:2:fcfd:ff:fe00:301">default</route>
    <forwarding type="ip" />
    <filetree root="/" when="start">conf/ha</filetree>
    <filetree root="/root" when="start">conf/etc_hosts</filetree>
    <exec seq="start" type="verbatim">sh ha_instructions</exec>
    <exec seq="start" type="verbatim">chmod 744 /etc/radvd.conf</exec>
    <exec seq="start" type="verbatim">cat etc_hosts >> /etc/hosts</exec>
  </vm>
  <vm name="ar">
    <xterm>gnome-terminal,-t ar,-x</xterm>
    <if id="1" net="Net1">
	    <ipv6>2001:1:1:2:fcfd:ff:fe00:301</ipv6>	
    </if>
    <if id="2" net="Net2">
	    <ipv6>2001:1:1:3:fcfd:ff:fe00:302</ipv6>
    </if>
    <route type="ipv6" gw="2001:1:1:2:fcfd:ff:fe00:202">default</route>
    <forwarding type="ip" />
    <filetree root="/" when="start">conf/ar</filetree>
    <filetree root="/root" when="start">conf/etc_hosts</filetree>
    <exec seq="start" type="verbatim">sh ar_instructions</exec>
    <exec seq="start" type="verbatim">chmod 744 /etc/radvd.conf</exec>
    <exec seq="start" type="verbatim">cat etc_hosts >> /etc/hosts</exec>  
  </vm>
  <vm name="cn">
    <xterm>gnome-terminal,-t cn,-x</xterm>
    <if id="1" net="Net2"></if>
    <filetree root="/" when="start">conf/cn</filetree>
    <filetree root="/root" when="start">conf/etc_hosts</filetree>
    <exec seq="start" type="verbatim">sh cn_instructions</exec>
    <exec seq="start" type="verbatim">cat etc_hosts >> /etc/hosts</exec>
  </vm>
 </vnuml>