<?xml version="1.0" encoding="ISO-8859-1" ?>

<NetML xmlns="http://www.xmlnetwork.org"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.xmlnetwork.org
                                          netml.xsd">

   <Networks>
      <n id="n-A">
         <networkAddress>100.1.1.0/24</networkAddress>
         <CollisionDomains>
            <c id="A">
               <iface r_id="r_1" if="eth3"/>
            </c>
         </CollisionDomains>
      </n>
      <n id="n-B">
         <networkAddress>100.1.2.0/24</networkAddress>
         <CollisionDomains>
            <c id="B">
               <iface r_id="r_2" if="eth2"/>
            </c>
         </CollisionDomains>
      </n>
      <n id="n-C">
         <networkAddress>100.1.3.0/24</networkAddress>
         <CollisionDomains>
            <c id="C">
               <iface r_id="r_3" if="eth3"/>
            </c>
         </CollisionDomains>
      </n>
      <n id="n-D">
         <networkAddress>100.1.4.0/24</networkAddress>
         <CollisionDomains>
            <c id="D">
               <iface r_id="r_4" if="eth1"/>
            </c>
         </CollisionDomains>
      </n>
      <n id="n-E">
         <networkAddress>100.1.0.0/30</networkAddress>
         <CollisionDomains>
            <c id="E">
               <iface r_id="r_1" if="eth2"/>
               <iface r_id="r_2" if="eth0"/>
            </c>
         </CollisionDomains>
      </n>
      <n id="n-F">
         <networkAddress>100.1.0.4/30</networkAddress>
         <CollisionDomains>
            <c id="F">
               <iface r_id="r_2" if="eth1"/>
               <iface r_id="r_3" if="eth0"/>
            </c>
         </CollisionDomains>
      </n>
      <n id="n-G">
         <networkAddress>100.1.0.8/30</networkAddress>
         <CollisionDomains>
            <c id="G">
               <iface r_id="r_1" if="eth1"/>
               <iface r_id="r_3" if="eth1"/>
            </c>
         </CollisionDomains>
      </n>
      <n id="n-H">
         <networkAddress>100.1.0.12/30</networkAddress>
         <CollisionDomains>
            <c id="H">
               <iface r_id="r_1" if="eth0"/>
               <iface r_id="r_4" if="eth3"/>
            </c>
         </CollisionDomains>
      </n>
      <n id="n-I">
         <networkAddress>100.1.0.16/30</networkAddress>
         <CollisionDomains>
            <c id="I">
               <iface r_id="r_3" if="eth2"/>
               <iface r_id="r_4" if="eth2"/>
            </c>
         </CollisionDomains>
      </n>
      <n id="n-L">
         <networkAddress>100.2.0.0/30</networkAddress>
         <CollisionDomains>
            <c id="L">
               <iface r_id="r_4" if="eth0"/>
               <iface r_id="r_5" if="eth0"/>
            </c>
         </CollisionDomains>
      </n>
   </Networks>

   <Routers>

      <RouterConf id="r_1" Hostname="r1">
         <Interface name="eth0">
            <ipAddress>100.1.0.13/30</ipAddress>
         </Interface>
         <Interface name="eth1">
            <ipAddress>100.1.0.9/30</ipAddress>
         </Interface>
         <Interface name="eth2">
            <ipAddress>100.1.0.1/30</ipAddress>
         </Interface>
         <Interface name="eth3">
            <ipAddress>100.1.1.1/24</ipAddress>
         </Interface>
         <Policy name="redist-conn">
            <Redistribution>
               <from_protocol>connected</from_protocol>
               <to_protocol>rip</to_protocol>
            </Redistribution>
         </Policy>
         <RipConf>
            <neighbour>
               <address>100.1.0.0/16</address>
            </neighbour>
            <policy type="export" name="redist-conn"/>
         </RipConf>
      </RouterConf>

      <RouterConf id="r_2" Hostname="r2">
         <Interface name="eth0">
            <ipAddress>100.1.0.2/30</ipAddress>
         </Interface>
         <Interface name="eth1">
            <ipAddress>100.1.0.5/30</ipAddress>
         </Interface>
         <Interface name="eth2">
            <ipAddress>100.1.2.1/30</ipAddress>
         </Interface>
         <Policy name="redist-conn">
            <Redistribution>
               <from_protocol>connected</from_protocol>
               <to_protocol>rip</to_protocol>
            </Redistribution>
         </Policy>
         <RipConf>
            <neighbour>
               <address>100.1.0.0/16</address>
            </neighbour>
            <policy type="export" name="redist-conn"/>
         </RipConf>
      </RouterConf>

      <RouterConf id="r_3" Hostname="r3">
         <Interface name="eth0">
            <ipAddress>100.1.0.6/30</ipAddress>
         </Interface>
         <Interface name="eth1">
            <ipAddress>100.1.0.10/30</ipAddress>
         </Interface>
         <Interface name="eth2">
            <ipAddress>100.1.0.17/30</ipAddress>
         </Interface>
         <Interface name="eth3">
            <ipAddress>100.1.3.1/24</ipAddress>
         </Interface>
         <Policy name="redist-conn">
            <Redistribution>
               <from_protocol>connected</from_protocol>
               <to_protocol>rip</to_protocol>
            </Redistribution>
         </Policy>
         <RipConf>
            <neighbour>
               <address>100.1.0.0/16</address>
            </neighbour>
            <policy type="export" name="redist-conn"/>
         </RipConf>
      </RouterConf>

      <RouterConf id="r_4" Hostname="r4"> 
         <Interface name="eth0">
            <ipAddress>100.2.0.1/30</ipAddress>
         </Interface>
         <Interface name="eth1">
            <ipAddress>100.1.4.1/24</ipAddress>
         </Interface>
         <Interface name="eth2">
            <ipAddress>100.1.0.18/30</ipAddress>
         </Interface>
         <Interface name="eth3">
            <ipAddress>100.1.0.14/30</ipAddress>
         </Interface>
         <Policy name="redist-conn">
            <Redistribution>
               <from_protocol>connected</from_protocol>
               <to_protocol>rip</to_protocol>
            </Redistribution>
         </Policy>
         <RipConf>
            <default_information_originate>true</default_information_originate>
            <static_route>
               <prefix>0.0.0.0/0</prefix>
            </static_route>
            <neighbour>
               <address>100.1.0.0/16</address>
            </neighbour>
            <policy type="export" name="redist-conn"/>
         </RipConf>
      </RouterConf>

      <RouterConf id="r_5" Hostname="r5">
         <Interface name="eth0">
            <ipAddress>100.2.0.2/30</ipAddress>
         </Interface>
         <StaticRoutes>
            <route>
               <destination>default</destination>
               <nexthop>100.2.0.1</nexthop>
            </route>
         </StaticRoutes>
      </RouterConf>

   </Routers>


</NetML>



