ASConfigMininet.xml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0"?>
  2. <OSPFASConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="OSPF.xsd">
  3. <!-- Areas -->
  4. <Area id="0.0.0.0">
  5. <AddressRange address="BBR[0]%eth0" mask="255.255.255.0" status="Advertise" />
  6. </Area>
  7. <Area id="0.0.0.1">
  8. <AddressRange address="S1R[0]%eth0" mask="S1R[0]%eth0" status="Advertise" />
  9. <AddressRange address="S1R[0]%eth1" mask="S1R[0]%eth1" status="Advertise" />
  10. <AddressRange address="S1R[1]%eth0" mask="S1R[1]%eth0" status="Advertise" />
  11. <AddressRange address="S1R[1]%eth1" mask="S1R[1]%eth1" status="Advertise" />
  12. <AddressRange address="S1R[1]%eth2" mask="S1R[1]%eth2" status="Advertise" />
  13. <AddressRange address="S1R[0]%eth0" mask="255.255.255.0" status="Advertise" />
  14. </Area>
  15. <Area id="0.0.0.2">
  16. <!--
  17. -->
  18. <AddressRange address="S2R[0]%eth0" mask="S2R[0]%eth0" status="Advertise" />
  19. <AddressRange address="S2R[0]%eth1" mask="S2R[0]%eth1" status="Advertise" />
  20. <AddressRange address="S2R[1]%eth0" mask="S2R[1]%eth0" status="Advertise" />
  21. <AddressRange address="S2R[1]%eth1" mask="S2R[1]%eth1" status="Advertise" />
  22. <AddressRange address="S2R[1]%eth2" mask="S2R[1]%eth2" status="Advertise" />
  23. <AddressRange address="S2R[0]%eth0" mask="255.255.255.0" status="Advertise" />
  24. </Area>
  25. <!-- Routers -->
  26. <Router name="BBR[*]" RFC1583Compatible="true">
  27. <BroadcastInterface ifName="eth0" areaID="0.0.0.0" interfaceOutputCost="1" />
  28. <BroadcastInterface ifName="eth1" areaID="0.0.0.0" interfaceOutputCost="1" />
  29. </Router>
  30. <Router name="BBRtoS1" RFC1583Compatible="true">
  31. <BroadcastInterface ifName="eth0" areaID="0.0.0.0" interfaceOutputCost="1" />
  32. <BroadcastInterface ifName="eth1" areaID="0.0.0.1" interfaceOutputCost="1" /> <!-- Area border router -->
  33. </Router>
  34. <Router name="BBRtoS2" RFC1583Compatible="true">
  35. <BroadcastInterface ifName="eth0" areaID="0.0.0.2" interfaceOutputCost="1" /> <!-- Area border router -->
  36. <BroadcastInterface ifName="eth1" areaID="0.0.0.0" interfaceOutputCost="1" />
  37. </Router>
  38. <Router name="S1R[0]" RFC1583Compatible="true">
  39. <BroadcastInterface ifName="eth0" areaID="0.0.0.1" interfaceOutputCost="1" />
  40. <BroadcastInterface ifName="eth1" areaID="0.0.0.1" interfaceOutputCost="1" />
  41. </Router>
  42. <Router name="S1R[1]" RFC1583Compatible="true">
  43. <BroadcastInterface ifName="eth0" areaID="0.0.0.1" interfaceOutputCost="1" />
  44. <BroadcastInterface ifName="eth1" areaID="0.0.0.1" interfaceOutputCost="1" />
  45. <BroadcastInterface ifName="eth2" areaID="0.0.0.1" interfaceOutputCost="1" />
  46. </Router>
  47. <Router name="S2R[0]" RFC1583Compatible="true">
  48. <BroadcastInterface ifName="eth0" areaID="0.0.0.2" interfaceOutputCost="1" />
  49. <BroadcastInterface ifName="eth1" areaID="0.0.0.2" interfaceOutputCost="1" />
  50. </Router>
  51. <Router name="S2R[1]" RFC1583Compatible="true">
  52. <BroadcastInterface ifName="eth0" areaID="0.0.0.2" interfaceOutputCost="1" />
  53. <BroadcastInterface ifName="eth1" areaID="0.0.0.2" interfaceOutputCost="1" />
  54. <BroadcastInterface ifName="eth2" areaID="0.0.0.2" interfaceOutputCost="1" />
  55. </Router>
  56. </OSPFASConfig>