BGP Peering Via ODL
BGP Peering Via ODL
In this section we will learn how ODL communicates with legacy network devices like routers and its protocol that runs over it. In this section we will create the topology in such a way that ODL will establish the BGP peering with a router and this router is connected to different network.
Step1: Install Vyos Router
In this step download the Vyos router from internet or create the VM from this ISO file vyos-1.1.8-amd64 and its networking set should be same as mininet and ODL so that they may be able to ping to each other.
You can login to vyos router via username vyos and password vyos.
Step2: Enable BGP in ODL via following command:
After this feature install everything needed for BGP and stores data in RIB. In this Vyos will advertises the 172.16.0.0/24 network to Openday light. Once the prefixes is exchanged ODL will perform necessary flow changes inside SDN domain to communicate with 172.16.0.0/24.
Once the feature:install odl-bgpcep-bgp-all is configured , ODL puts the BGP configuration in following folder /opt/odl/boron/etc/OpenDaylight/karaf. And in following file: 41-bgp-example.xml.
Now we need to edit the RIB configuration in 41-bgp-example.xml file.Now open the file in any text editor , I will recommend to use nano editor and use the ctrl+W to perform search inside nano and search rib-id.
For my network engineer friends, rid-id is the same as the BGP process ID in a legacy router. This means you can run multiple BGP instances on OpenDaylight.
The important parameters in this module are as follows:
- rib-id: This is also known as BGP RIB Identifier. In this configuration file, you can specify more BGP RIBs by copy and pasting the preceding module. These RIBs must have a unique rib-id and name.
- local-as: This refers to our local AS number (where OpenDaylight is deployed); we use this in best path selection.
- bgp-id: This is our local BGP identifier (the IP of the VM where OpenDaylight is deployed); we use this in best path selection.
Put the following command to open the 41-bgp-example.xml
Now search the rib-id by method described above step.You have to perform the following configuration in that.section:
We have set local-as as 65100, which is our BGP AS number for this lab. The router ID is set to the IP address of the OpenDaylight instance that is peering with VyOS.
Now save the file via Ctrl+X then press Y and enter
Step3: Now we need to configure the Vyos router and put the following commands
now you will be able to ping to ODL and Mininet both.
Now we need to configure the VyOS to enable BGP and establish a session with our OpenDaylight BGP module. Run the following command inside the VyoS Command Prompt.
To verify the established session between OpenDaylight and VyOS, issue the show IP BGP neighbors on the VyOS router