RIP Configuration Example
1. Add VLANs for routing interfaces.
2. Add IP interfaces with IPv4 addresses to VLANs.
3. Turn on RIP globally and enable RIP for each interface.
© Copyright Lenovo 2016
The following is an example of RIP configuration.
Note: An interface with RIP disabled uses all the default values of the RIP, no
matter how the RIP parameters are configured for that interface. RIP sends out RIP
regular updates to include an UP interface, but not a DOWN interface.
>> (config)# vlan 2
>> (configvlan)# exit
>> (config)# interface port 2
>> (configif)# switchport mode trunk
>> (configif)# switchport trunk allowed vlan add 2
Port 2 is an UNTAGGED port and its current PVID is 1.
Confirm changing PVID from 1 to 2 [y/n]: y
>> (configif)# exit
>> (config)# vlan 3
>> (configvlan)# exit
>> (config)# interface port 3
>> (configif)# switchport mode trunk
>> (configif)# switchport trunk allowed vlan add 3
>> (configif)# exit
Port 3 is an UNTAGGED port and its current PVID is 1.
Confirm changing PVID from 1 to 3 [y/n]: y
>> # interface ip 2
>> (configipif)# enable
>> (configipif)# ip address 102.1.1.1
>> (configipif)# vlan 2
>> (configipif)# exit
>> # interface ip 3
>> (configipif)# enable
>> (configipif)# ip address 103.1.1.1
>> (configipif)# vlan 3
>> # router rip
>> (configrouterrip)# enable
>> (configrouterrip)# exit
>> # interface ip 2
>> (configipif)# ip rip enable
>> (configipif)# exit
>> # interface ip 3
>> (configipif)# ip rip enable
>> (configipif)# exit
Use the following command to check the current valid routes in the routing table of
the switch:
>> # show ip route
Chapter 31: Routing Information Protocol
491