BackboneTest.ned 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package inet.examples.ospfv2.areatests;
  2. import inet.common.scenario.ScenarioManager;
  3. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  4. network OSPF_BackboneTest
  5. {
  6. submodules:
  7. Backbone: TestArea {
  8. parameters:
  9. numHosts = 10;
  10. @display("p=138,156;b=136,136");
  11. }
  12. configurator: IPv4NetworkConfigurator {
  13. parameters:
  14. // "<route hosts='Backbone.R[*]' destination='224.0.0.0' netmask='240.0.0.0' interface='eth0' />"+
  15. config = xml("<config>"+
  16. "<interface hosts='Backbone.*' address='192.168.1.x' netmask='255.255.255.x' />"+
  17. "<multicast-group hosts='Backbone.R[*]' address='224.0.0.5 224.0.0.6' />"+
  18. "<route hosts='Backbone.H[*]' destination='*' netmask='0.0.0.0' interface='eth0' />"+
  19. // "<route hosts='Backbone.R[*]' destination='224.0.0.0' netmask='240.0.0.0' interface='eth0' />"+
  20. "<route hosts='Backbone.R[*]' destination='224.0.0.0' netmask='240.0.0.0' interface='eth1' />"+
  21. "<route hosts='Backbone.R[*]' destination='224.0.0.0' netmask='240.0.0.0' interface='eth2' />"+
  22. "</config>");
  23. addStaticRoutes = false;
  24. addDefaultRoutes = false;
  25. @display("p=75,43");
  26. }
  27. scenarioManager: ScenarioManager {
  28. @display("p=187,43");
  29. }
  30. }