Example-VLANs

==VNUML Example: VLANs version 1.7.0=====Author: Fermin Galan ([mailto:galan at dit.upm.es galan at dit.upm.es])=======November 23rd, 2006====


 * style="text-align: right; vertical-align: top" width="208" |
 * class="title" colspan="2" | Scenario
 * colspan="2" |
 * colspan="2" |
 * colspan="2" |

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.


 * class="title" colspan="2" | VNUML Description
 * colspan="2" |
 * colspan="2" |
 * colspan="2" |

 <!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>


 * class="title" colspan="2" | Old Releases
 * colspan="2" |
 * colspan="2" |
 * colspan="2" |


 * [1.3/vlans.html 1.3]
 * [1.6/vlans.html 1.6]


 * colspan="2" |
 * colspan="2" |

<font face="Tahoma">''Last update: ''
 * }