ASConfig.xml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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="Area1.R3>Area2.R4" mask="Area1.R3>Area2.R4" status="Advertise" />
  6. <AddressRange address="Area2.R4>Area1.R3" mask="Area2.R4>Area1.R3" status="Advertise" />
  7. </Area>
  8. <Area id="0.0.0.1">
  9. <AddressRange address="Area1.R1>Area1.N1" mask="Area1.R1>Area1.N1" status="Advertise" />
  10. <AddressRange address="Area1.H1>Area1.N1" mask="Area1.H1>Area1.N1" status="Advertise" />
  11. <AddressRange address="Area1.R2>Area1.N2" mask="Area1.R2>Area1.N2" status="Advertise" />
  12. <AddressRange address="Area1.H2>Area1.N2" mask="Area1.H2>Area1.N2" status="Advertise" />
  13. <AddressRange address="Area1.R1>Area1.R2" mask="Area1.R1>Area1.R2" status="Advertise" />
  14. <AddressRange address="Area1.R2>Area1.R1" mask="Area1.R2>Area1.R1" status="Advertise" />
  15. <AddressRange address="Area1.R1>Area1.R3" mask="Area1.R1>Area1.R3" status="Advertise" />
  16. <AddressRange address="Area1.R3>Area1.R1" mask="Area1.R3>Area1.R1" status="Advertise" />
  17. <AddressRange address="Area1.R2>Area1.R3" mask="Area1.R2>Area1.R3" status="Advertise" />
  18. <AddressRange address="Area1.R3>Area1.R2" mask="Area1.R3>Area1.R2" status="Advertise" />
  19. </Area>
  20. <Area id="0.0.0.2">
  21. <AddressRange address="Area2.R4>Area2.R5" mask="Area2.R4>Area2.R5" status="Advertise" />
  22. <AddressRange address="Area2.R5>Area2.R4" mask="Area2.R5>Area2.R4" status="Advertise" />
  23. <AddressRange address="Area2.R5>Area2.N3" mask="Area2.R5>Area2.N3" status="Advertise" />
  24. <AddressRange address="Area2.H3>Area2.N3" mask="Area2.H3>Area2.N3" status="Advertise" />
  25. </Area>
  26. <!-- Routers -->
  27. <Router name="Area1.R1" RFC1583Compatible="true">
  28. <BroadcastInterface ifName="eth0" areaID="0.0.0.1" interfaceOutputCost="1" />
  29. <BroadcastInterface ifName="eth1" areaID="0.0.0.1" interfaceOutputCost="1" />
  30. <BroadcastInterface ifName="eth2" areaID="0.0.0.1" interfaceOutputCost="1" routerPriority="1" />
  31. </Router>
  32. <Router name="Area1.R2" RFC1583Compatible="true">
  33. <BroadcastInterface ifName="eth0" areaID="0.0.0.1" interfaceOutputCost="2" />
  34. <BroadcastInterface ifName="eth1" areaID="0.0.0.1" interfaceOutputCost="2" />
  35. <BroadcastInterface ifName="eth2" areaID="0.0.0.1" interfaceOutputCost="2" routerPriority="2" />
  36. </Router>
  37. <Router name="Area1.R3" RFC1583Compatible="true">
  38. <BroadcastInterface ifName="eth0" areaID="0.0.0.0" interfaceOutputCost="3" />
  39. <BroadcastInterface ifName="eth1" areaID="0.0.0.1" interfaceOutputCost="3" />
  40. <BroadcastInterface ifName="eth2" areaID="0.0.0.1" interfaceOutputCost="3" />
  41. </Router>
  42. <Router name="Area2.R4" RFC1583Compatible="true">
  43. <BroadcastInterface ifName="eth0" areaID="0.0.0.2" interfaceOutputCost="4" />
  44. <BroadcastInterface ifName="eth1" areaID="0.0.0.0" interfaceOutputCost="4" />
  45. </Router>
  46. <Router name="Area2.R5" RFC1583Compatible="true">
  47. <BroadcastInterface ifName="eth0" areaID="0.0.0.2" interfaceOutputCost="5" />
  48. <BroadcastInterface ifName="eth1" areaID="0.0.0.2" interfaceOutputCost="5" />
  49. </Router>
  50. </OSPFASConfig>