logo__splash
gray_bg
Redistributing BGP into RIP
Config Tips:
Site Map / Legal / © Copyright 2006 enetworktutor.com

SYNTAX

DESCRIPTION
router A  
conf t Put the router in global-config mode
router bgp 326 Turns on the BGP process and configures the local AS
redistribute connected Advertises directly connected network 172.16.3.0/24 to its BGP neighbor
neighbor 10.1.1.1 remote-as 1112 Defines neighbor IP address & neighbor AS
neighbor 10.1.1.1 soft-reconfiguration inbound   Allows for BGP policy changes & route refreshing
without intrusively bouncing the BGP neighbors
no auto-summary Disables the default behavior of automatic summarization
neighbor 10.1.1.1 password <PASSWORD>      Allows for a extra layer of security in requiring shared passwords to be exchanged prior to becoming “established” neighbors (optional)
no auto-summary Disables the default behavior of automatic summarization
redistribute rip Required to force BGP to redistribute RIP learned routes to its BGP neighbor
router rip Turns on the RIP process
version 2 Configures router to only use RIP Version 2 (optional)
redistribute bgp 326 Configures RIP to advertise BGP learned routes
network 172.16.3.0 Turns on RIP routing for this network
default-metric 3 Applies a default metric to redistributed routes see cool config tips for details
   

SYNTAX

DESCRIPTION
router B  
conf t Put the router in global-config mode
router bgp 1112 Turns on the BGP process & configures the Local AS
redistribute connected Advertises directly connected network 172.16.3.0/24 to BGP neighbor
neighbor 10.1.1.2 remote-as 326 Defines neighbor IP address & neighbor AS
neighbor 10.1.1.2 soft-reconfiguration inbound   Allows for BGP policy changes & route refreshing
without intrusively bouncing the BGP neighbors
no auto-summary Disables the default behavior of automatic summarization
neighbor 10.1.1.2 password <PASSWORD>      Allows for a extra layer of security in requiring shared passwords to be exchanged prior to becoming “established” neighbors (optional)
no auto-summary Disables the default behavior of automatic summarization
   

SYNTAX

DESCRIPTION
router Z  
conf t Put the router in global-config mode
router rip Configures router to only use RIP version 2 (optional)
network 12.1.1.0 Turns on RIP routing for this network
network 172.16.3.0 Turns on RIP routing for this network
no auto-summary Disables the default behavior of automatic summarization
Here’s the configuration:
In this tutorial we are going to redistribute RIP learned routes into BGP & BGP learned routes into RIP. The goal is to have router B learn the route to 12.1.1.0/24 from its eBGP peer, router A. Also, we want RIP router Z to learn the path to 172.16.2.0/24, from RIP router A. Router A is running both RIP & BGP routing protocols & will be performing redistribution. Router Z is only running RIP & router B is only running BGP.

The default metric command under the RIP configuration on router A is absolutely necessary. By default, RIP will advertise BGP learned routes, when configured for redistribution, with an invalid metric & will not work. It is advised to set a low default metric number, since it represents hop count.