Table Of Contents
Table Of Contents

Step 11. Configure an interface as NoOSPF

Goals

[explanation]

Configuration

This configuration is based on step 3.

../../../_images/step1-2-11-12.png

The OSPF configuration:

<?xml version="1.0"?>
<OSPFASConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="OSPF.xsd">

  <!-- Routers -->
  <Router name="R1" RFC1583Compatible="true">
    <BroadcastInterface ifName="eth0" interfaceMode="NoOSPF" />
    <PointToPointInterface ifName="ppp0" />
  </Router>

  <Router name="R2" RFC1583Compatible="true">
    <BroadcastInterface ifName="eth0" interfaceMode="NoOSPF" />
    <PointToPointInterface ifName="ppp0" />
  </Router>

</OSPFASConfig>

The configuration in omnetpp.ini is the following:

[Config Step11]
description = "Configure an interface as NoOSPF"
extends = Step3

# setting interfaceMode to "NoOSPF" is equal to removing the interface from the XML config

*.R*.ospf.ospfConfig = xmldoc("ASConfig_NoOspf.xml")

Results

[explanation]

Sources: omnetpp.ini, Network.ned, ASConfig_NoOspf.xml

Discussion

Use this page in the GitHub issue tracker for commenting on this tutorial.