Example for Configuring Basic RIP


Networking Requirements

Figure 1. RIP Configuration Example

As shown in Figure 1, there are four switches in a small network that require network interconnection on SwitchA, SwitchB, SwitchC, and SwitchD. Since it is a small network, it is recommended to configure RIPv2 routing protocol to achieve network interconnection of devices.

Follow the configuration roadmap below to complete the configuration:

  1. Configure VLAN interface and IP address of each interface to make the network reachable.
  2. Enable RIP on each switch to achieve basic network interconnection.
  3. Run command run show rip to view RIP route information, run show rip status to view RIP general configuration information.

Procedure

Switch A

Step1         Configure VLAN interface.

admin@SwitchA# set vlans vlan-id 100 l3-interface vlan100
admin@SwitchA# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching vlan members 100
admin@SwitchA# set l3-interface vlan-interface vlan100 address 192.168.1.1 prefix-length 24

Step2         Enable RIP for the specified network segment.       

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 100 l3-interface vlan100
admin@SwitchB# set vlans vlan-id 200 l3-interface vlan200
admin@SwitchB# set vlans vlan-id 300 l3-interface vlan300
admin@SwitchB# set interface gigabit-ethernet ge-1/1/1 family ethernet-switching vlan members 200
admin@SwitchB# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching vlan members 100
admin@SwitchB# set interface gigabit-ethernet ge-1/1/4 family ethernet-switching vlan members 300
admin@SwitchB# set l3-interface vlan-interface vlan100 address 192.168.1.2 prefix-length 24
admin@SwitchB# set l3-interface vlan-interface vlan200 address 10.2.1.1 prefix-length 24
admin@SwitchB# set l3-interface vlan-interface vlan300 address 10.1.1.1 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 10.2.1.0/24
admin@SwitchB# set protocols rip network 10.1.1.0/24

Step3          Enable IP routing.

admin@SwitchB# set ip routing enable true

Step4         Commit the configuration.

admin@SwitchB# commit

Switch C

Step1         Configure VLAN interface.

admin@SwitchC# set vlans vlan-id 300 l3-interface vlan300
admin@SwitchC# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching vlan members 300
admin@SwitchC# set l3-interface vlan-interface vlan300 address 10.1.1.2 prefix-length 24

Step2         Enable RIP for the specified network segment.         

admin@SwitchC# set protocols rip network 10.1.1.0/24

Step3         Enable IP routing.

admin@SwitchC# set ip routing enable true

Step4         Commit the configuration.

admin@SwitchC# commit

Switch D

Step1         Configure VLAN interface.

admin@SwitchD# set vlans vlan-id 200 l3-interface vlan200
admin@SwitchD# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching vlan members 200
admin@SwitchD# set l3-interface vlan-interface vlan200 address 10.2.1.2 prefix-length 24

Step2         Enable RIP for the specified network segment.         

admin@SwitchD# set protocols rip network 10.2.1.0/24

Step3          Enable IP routing.

admin@SwitchD# set ip routing enable true

Step4         Commit the configuration.

admin@SwitchD# commit

Verifying the Configuration

  • On Switch A, use command run show rip to view RIP route table.
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) 10.2.1.0/24        192.168.1.2           2 192.168.1.2       0 15:22
R(n) 10.1.1.0/24        192.168.1.2           2 192.168.1.2       0 15:22
C(i) 192.168.1.0/24     0.0.0.0               1 self              0
  •  On Switch A, use command run show rip status to view RIP general configuration information.
admin@SwitchA# run show rip status
Routing Protocol is "rip"
  Sending updates every 30 seconds with +/-50%, next due in 10 seconds
  Timeout after 180 seconds, garbage collect after 120 seconds
  Outgoing update filter list for all interface is not set
  Incoming update filter list for all interface is not set
  Default redistribution metric is 1
  Redistributing:
  Default version control: send version 2, receive any version
    Interface        Send  Recv   Key-chain
    vlan100          2     1      2 
  Routing for Networks:
    192.168.1.0/24    
  Routing Information Sources:
    Gateway          BadPackets BadRoutes  Distance Last Update
    192.168.1.2              0         0       120   00:00:20
  Distance: (default is 120)

Copyright © 2024 Pica8 Inc. All Rights Reserved.