Example-VLANs

Authors: Ferm&iacute;n Gal&aacute;n (galan at dit.upm.es) version 1.7, November 23rd, 2006

Scenario
This example shows four simultaions to be executed concurrently. First ([vlan-test-1.xml vlan-test-1]) boots three virtual machines, each one connected to one VLAN in the host physical interface eth1 (in particular VLANs 10, 22, and 23). The other three simulations ([vlan-test-2a.xml vlan-test-2a], [vlan-test-2b.xml vlan-test-2b] y [vlan-test-2c.xml vlan-test-2c]) boots one virtual machine each one, connected to one of the three VLANs. Note that the same is used for vlan-test-1 and the correnponding vlan-test-2X. In all the case, eth0 is the physical interface where the VLANs will be created.

VNUML Description
 <!DOCTYPE vnuml SYSTEM "/usr/share/xml/vnuml/vnuml.dtd"> 1.7       vlan-test-1 /root/.ssh/identity.pub     /usr/share/vnuml/filesystems/root_fs_tutorial /bin/sh      192.168.11.60  <route type="ipv4" gw="192.168.11.1">default </vm> <if id="1" net="vlan-22"> <ipv4 mask="255.255.255.192">195.1.86.3 </if> <route type="ipv4" gw="195.1.86.1">default </vm> <if id="1" net="vlan-23"> <ipv4 mask="255.255.255.192">195.1.88.3 </if> <route type="ipv4" gw="195.1.88.1">default </vm>

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE vnuml SYSTEM "/usr/share/xml/vnuml/vnuml.dtd"> 1.7       vlan-test-2a</simulation_name> /root/.ssh/identity.pub</ssh_key> <vm_mgmt type="private" network="192.168.0.0" mask="24" offset="12"> <host_mapping/> </vm_mgmt>  /bin/sh </vm_defaults> <net name="vlan-10" mode="virtual_bridge" external="eth0" vlan="10" /> /usr/share/vnuml/filesystems/root_fs_tutorial <if id="1" net="vlan-10"> <ipv4 mask="255.255.255.0">192.168.11.61 </if> <route type="ipv4" gw="192.168.11.1">default </vm> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE vnuml SYSTEM "/usr/share/xml/vnuml/vnuml.dtd"> 1.7       vlan-test-2b</simulation_name> /root/.ssh/identity.pub</ssh_key> <vm_mgmt type="private" network="192.168.0.0" mask="24" offset="20"> <host_mapping/> </vm_mgmt>  /bin/sh </vm_defaults> <net name="vlan-22" mode="virtual_bridge" external="eth0" vlan="22" /> /usr/share/vnuml/filesystems/root_fs_tutorial <if id="1" net="vlan-22"> <ipv4 mask="255.255.255.192">195.1.86.4 </if> <route type="ipv4" gw="195.1.86.1">default </vm>

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE vnuml SYSTEM "/usr/share/xml/vnuml/vnuml.dtd"> 1.7       vlan-test-2c</simulation_name> /root/.ssh/identity.pub</ssh_key> <vm_mgmt type="private" network="192.168.0.0" mask="24" offset="32"> <host_mapping/> </vm_mgmt>  /bin/sh </vm_defaults> <net name="vlan-23" mode="virtual_bridge" external="eth0" vlan="23" /> /usr/share/vnuml/filesystems/root_fs_tutorial <if id="1" net="vlan-23"> <ipv4 mask="255.255.255.192">195.1.88.4 </if> <route type="ipv4" gw="195.1.88.1">default </vm>

Download

 * VNUML specification file: dns.xml
 * Configuration files: dns.tar

Old Releases

 * 1.3
 * 1.6