Table Of Contents
Table Of Contents

Step 4a. Enable nextHopSelf on RB1 and RB2

Goals

[explanation]

Configuration

Same network as the previous step.

The configuration in omnetpp.ini is the following:

[Config Step4a]
description = "Enable nextHopSelf on RB1 and RB2"
extends = Step4

# set nextHopSelf in both RB1 and RB2. They change next hop to
# themselfe before forwarding Update message to the other peer
*.R*.bgp.bgpConfig = xmldoc("BGPConfig_IBGP_NextHopSelf.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.2" >
            <Network address='20.0.0.0' />
            <Neighbor address='20.0.0.1' nextHopSelf='true' />
        </Router>
        
        <!--router RB2-->
        <Router interAddr="20.0.0.1" >
            <Network address='20.0.0.0' />
            <Neighbor address='20.0.0.2' nextHopSelf='true' />
        </Router>
    </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>

Discussion

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