Table Of Contents
Table Of Contents

Step 5b. Enabling BGP on RB3

Goals

[explanation]

Configuration

Same network as the previous step.

The configuration in omnetpp.ini is the following:

[Config Step5b]
description = "Enabling BGP on RB3"
extends = Step5

# enable BGP on RB3
*.RB3.hasBgp = true

*.R*.bgp.bgpConfig = xmldoc("BGPConfig_Multi_RB3.xml")

The BGP configuration:

<?xml version="1.0" encoding="ISO-8859-1"?>
<BGPConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="BGP.xsd">

    <TimerParams>
        <connectRetryTime> 120 </connectRetryTime>
        <holdTime>         180 </holdTime>
        <keepAliveTime>    60  </keepAliveTime>
        <startDelay>       60   </startDelay>
    </TimerParams>

    <AS id="64500">
    	<!--router RA4-->
        <Router interAddr="10.0.0.1" />
    </AS>
    
    <AS id="64600">
    	<!--router RB1-->
        <Router interAddr="20.0.0.5" >
            <Neighbor address='20.0.0.1' nextHopSelf='true' />
            <Neighbor address='20.0.0.6' nextHopSelf='true' />
        </Router>
        
        <!--router RB2-->
        <Router interAddr="20.0.0.1" >
            <Neighbor address='20.0.0.5' nextHopSelf='true' />
            <Neighbor address='20.0.0.6' nextHopSelf='true' />
        </Router>
        
        <!--router RB3-->
        <Router interAddr="20.0.0.6" />
    </AS>
    
    <AS id="64700">
    	<!--router RC1-->
        <Router interAddr="30.0.0.1" />
    </AS>

    <!--bi-directional E-BGP session between RA4 and RB1-->
    <Session id="1">
        <Router exterAddr="192.168.0.6"/>
        <Router exterAddr="192.168.0.5"/>
    </Session>
    
    <!--bi-directional E-BGP session between RB2 and RC1-->
    <Session id="2">
        <Router exterAddr="192.168.0.1"/>
        <Router exterAddr="192.168.0.2"/>
    </Session>

</BGPConfig>

Results

[explanation]

Sources: BGP_Topology_3.ned, omnetpp.ini, BGPConfig_Multi_RB3.xml

Discussion

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