Configuring RIP Route Redistribute


Networking Requirements

Figure 1. RIP Route Redistribute Example


As shown in Figure 1, there are three switches (Switch A, Switch B and Switch C) in this sample network. RIPv2 routing protocol runs between Switch A and Switch B, and BGP routing protocol runs between Switch B and Switch C. To enable communication between Switch A and Switch C, you need to configure to redistribute RIP routes to BGP routes, and BGP routes to RIP routes on Switch B.

Follow the configuration roadmap below to complete the configuration:

  1. Configure VLAN interface and IP address for each interface to make the network reachable.
  2. Enable RIP on Switch A and Switch B, and enable BGP on Switch B and Switch C.
  3. On Switch B, configure route redistribution between route protocol RIP and BGP.

Procedure

Switch A

Step1         Configure VLAN interface.

admin@SwitchA# set vlans vlan-id 100 l3-interface vlan100
admin@SwitchA# set vlans vlan-id 1000 l3-interface vlan1000
admin@SwitchA# set interface gigabit-ethernet te-1/1/1 family ethernet-switching vlan members 100
admin@SwitchA# set interface gigabit-ethernet xe-1/1/1 family ethernet-switching vlan members 1000
admin@SwitchA# set l3-interface vlan-interface vlan100 address 192.168.20.1 prefix-length 24
admin@SwitchA# set l3-interface vlan-interface vlan1000 address 192.168.1.6 prefix-length 24

Step2         Enable RIP for the network segment.

admin@SwitchA# set protocols rip network 192.168.20.0/24
admin@SwitchA# set protocols rip network 192.168.1.0/24

 Step3         Enable IP routing.

admin@SwitchA# set ip routing enable true

 Step4         Commit the configuration.

admin@SwitchA# commit

Switch B

 Step1         Configure VLAN interface.

admin@SwitchB# set vlans vlan-id 1000 l3-interface vlan1000
admin@SwitchB# set vlans vlan-id 33 l3-interface vlan33
admin@SwitchB# set interface gigabit-ethernet xe-1/1/1 family ethernet-switching vlan members 1000
admin@SwitchB# set interface gigabit-ethernet te-1/1/5 family ethernet-switching vlan members 33
admin@SwitchB# set l3-interface vlan-interface vlan1000 address 192.168.1.2 prefix-length 24
admin@SwitchB# set l3-interface vlan-interface vlan33 address 33.33.33.130 prefix-length 24

 Step2         Enable RIP for the specified network segment.

admin@SwitchB# set protocols rip network 192.168.1.0/24
admin@SwitchB# set protocols rip network 33.33.33.0/24

 Step3         Configure EBGP connection between Switch B and Switch C.

admin@SwitchB# set protocols bgp local-as 20000
admin@SwitchB# set protocols bgp router-id 2.2.2.2
admin@SwitchB# set protocols bgp ebgp-requires-policy false
admin@SwitchB# set protocols bgp ipv4-unicast network 192.168.1.0/24
admin@SwitchB# set protocols bgp neighbor 33.33.33.33 remote-as 30000

 Step4         Enable IP routing.

admin@SwitchB# set ip routing enable true

 Step5         Commit the configuration.

admin@SwitchB# commit

Switch C

 Step1         Configure VLAN interface.

admin@SwitchC# set vlans vlan-id 33 l3-interface vlan33
admin@SwitchC# set vlans vlan-id 2000 l3-interface vlan2000
admin@SwitchC# set interface gigabit-ethernet te-1/1/3 family ethernet-switching vlan members 33
admin@SwitchC# set interface gigabit-ethernet te-1/1/1 family ethernet-switching vlan members 2000
admin@SwitchC# set l3-interface vlan-interface vlan33 address 33.33.33.33 prefix-length 24
admin@SwitchC# set l3-interface vlan-interface vlan2000 address 55.55.55.55 prefix-length 24

 Step2         Configure EBGP connection between Switch B and Switch C.

admin@SwitchC# set protocols bgp local-as 30000
admin@SwitchC# set protocols bgp router-id 3.3.3.3
admin@SwitchC# set protocols bgp ebgp-requires-policy false
admin@SwitchC# set protocols bgp ipv4-unicast network 55.55.55.0/24
admin@SwitchC# set protocols bgp neighbor 33.33.33.130 remote-as 20000

 Step3         Enable IP routing.

admin@SwitchC# set ip routing enable true

 Step4         Commit the configuration.

admin@SwitchC# commit

View RIP Route Table on Switch A

  • On Switch A, use command run show rip to view RIP route table, 55.55.55.0/24 route is not existed.
admin@SwitchA# run show rip
Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP
Sub-codes:
      (n) - normal, (s) - static, (d) - default, (r) - redistribute,
      (i) - interface 

     Network            Next Hop         Metric From            Tag Time
R(n) 33.33.33.0/24      192.168.1.2           2 192.168.1.2       0 02:43
C(i) 192.168.1.0/24     0.0.0.0               1 self              0
C(i) 192.168.20.0/24    0.0.0.0               1 self              0

Configuring Switch B to Import Route between BGP and RIP

admin@SwitchB# set protocols rip redistribute bgp
admin@SwitchB# set protocols bgp ipv4-unicast redistribute rip
admin@SwitchB# commit

View RIP Route Table on Switch A

  • On Switch A, use command run show rip to view RIP route table again, route 55.55.55.0/24 has been inserted to Switch A’s routing table with metric value 2. Switch A and Switch C can communicate with each other now.
admin@SwitchA# run show rip
Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP
Sub-codes:
      (n) - normal, (s) - static, (d) - default, (r) - redistribute,
      (i) - interface
 
     Network            Next Hop         Metric From            Tag Time
R(n) 33.33.33.0/24      192.168.1.2           2 192.168.1.2       0 02:43
R(n) 55.55.55.0/24      192.168.1.2           2 192.168.1.2       0 02:43
C(i) 192.168.1.0/24     0.0.0.0               1 self              0
C(i) 192.168.20.0/24    0.0.0.0               1 self              0

 




Copyright © 2024 Pica8 Inc. All Rights Reserved.