Table Of Contents
Table Of Contents

Step 12. Multi-hop E-BGP

Goals

[explanation]

Configuration

This step uses the following network:

../../../_images/step12.png
network Multihop_EBGP
{
    @display("bgb=690,303");

    submodules:
        configurator: Ipv4NetworkConfigurator {
            @display("p=93,44");
        }
        visualizer: IntegratedMultiCanvasVisualizer {
            @display("p=243.2025,43.536247");
        }
        RA: Router {
            @display("p=161.33,151.385");
        }
        RB: Router {
            @display("p=523.77,151.385");
        }
        R: Router {
            @display("p=344.76,151.385");
        }

        switch2: EtherSwitch {
            @display("p=49.725,153.595");
        }
        switch1: EtherSwitch {
            @display("p=635.375,150.28");
        }
        host0: StandardHost {
            @display("p=49,253");
        }
        host1: StandardHost {
            @display("p=635,253");
        }
    connections:
        RB.ethg++ <--> Eth100M <--> R.ethg++;
        RA.ethg++ <--> Eth100M <--> R.ethg++;
        switch2.ethg++ <--> Eth100M <--> RA.ethg++;
        RB.ethg++ <--> Eth100M <--> switch1.ethg++;
        host1.ethg++ <--> Eth100M <--> switch1.ethg++;
        host0.ethg++ <--> Eth100M <--> switch2.ethg++;
}

The configuration in omnetpp.ini is the following:

[Config Step11]
description = "MED Attribute"
network = BGP_LOCAL_PREF

# TODO: MED is not implemeted yet!

*.visualizer.routingTableVisualizer[1].displayRoutingTables = false
#*.visualizer.routingTableVisualizer[*].lineShift = 80
*.visualizer.routingTableVisualizer[*].destinationFilter = "*"
*.visualizer.routingTableVisualizer[*].lineColor = "black"

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>       5   </startDelay>
    </TimerParams>

    <AS id="64520">
    	<!--router RA-->
        <Router interAddr="10.0.0.1">
            <Network address='10.0.0.0' />
            <Neighbor address='192.168.0.5' ebgpMultihop='2' />
        </Router>
    </AS>
    
    <AS id="64530">
    	<!--router RB-->
        <Router interAddr="20.0.0.1">
            <Network address='20.0.0.0' />
            <Neighbor address='192.168.0.1' ebgpMultihop='2' />
        </Router>
    </AS>

    <!--bi-directional E-BGP session between RA and RB-->
    <Session id="1">
        <Router exterAddr="192.168.0.1"/>
        <Router exterAddr="192.168.0.5"/>
    </Session>

</BGPConfig>

Discussion

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