Configuring Routing Information Protocol

Sun Netra CP3240 Switch User’s Guide Table Of ContentsPrevious ChapterNext ChapterBook Index
C H A P T E R 15
Configuring Routing Information Protocol

This chapter describes how to configure the routing information protocol (RIP).

Routing Information Protocol (RIP) is one of the protocols which may be used by routers to exchange network topology information. It is characterized as an “interior” gateway protocol, and is typically used in small to medium-sized networks.

This chapter contains the following topics:

  • Section , Understanding Routing Information Protocol
  • Section , Configuring RIP via CLI
  • Section , Configuring RIP via Web Interface

Understanding Routing Information Protocol

A router running RIP sends the contents of its routing table to each of its adjacent routers every 30 seconds. When a route is removed from the routing table it is flagged as unusable by the receiving routers after 180 seconds, and removed from their tables after an additional 120 seconds.

There are two versions of RIP:

  • RIPv1 defined in RFC 1058
    • Routes are specified by IP destination network and hop count
    • The routing table is broadcast to all stations on the attached network
  • RIPv2 defined in RFC 1723
    • Route specification is extended to include subnet mask and gateway
    • The routing table is sent to a multicast address, reducing network traffic
    • An authentication method is used for security

The Netra CP3240 switch supports both versions of RIP. You can configure a given port to:

  • receive packets in either or both formats
  • transmit packets formatted for RIPv1 or RIPv2 or to send RIPv2 packets to the RIPv1 broadcast address
  • prevent any RIP packets from being received
  • prevent any RIP packets from being transmitted

Configuring RIP via CLI

The configuration commands used in the following example enable RIP on ports 0/2 and 0/3 as shown in the network illustrated in Port Routing Example Network Diagram

FIGURE 15-1 Port Routing Example Network Diagram

Example 1: Enable Routing for the Switch:

The following sequence enables routing for the switch:

CODE EXAMPLE 15-1 Enable Routing for the Switch
config ip routing exit

Example 2: Enable Routing for Ports

The following command sequence enables routing and assigns IP addresses for ports 1/0/2 and 1/0/3.

CODE EXAMPLE 15-2 Enable Routing for the Ports
config interface 0/2 routing ip address 192.150.2.1 255.255.255.0 exit interface 0/3 routing ip address 192.150.3.1 255.255.255.0 exit exit

Example 3. Enable RIP for the Switch

The next sequence enables RIP for the switch. The route preference defaults to 15.

CODE EXAMPLE 15-3 Enable RIP for the Switch
config router rip enable exit exit

Example 4. Enable RIP for Ports 1/0/2 and 1/0/3

This command sequence enables RIP for ports 0/2 and 0/3. Authentication defaults to none, and no default route entry is created. The commands specify that both ports receive both RIPv1 and RIPv2 frames, but send only RIPv2 formatted frames.

CODE EXAMPLE 15-4 Enable RIP for Ports 1/0/2 and 1/0/3
config interface 0/2 ip rip ip rip receive version both ip rip send version rip2 exit interface 0/3 ip rip ip rip receive version both ip rip send version rip2 exit exit

Configuring RIP via Web Interface

Use the following screens to perform the same configuration using the Graphical User Interface:

  • Routing --> IP --> Interface Configuration--> System Routing Mode. To enable routing for the switch.
  • Routing --> IP --> Interface Configuration --> Slot Port IP Address Subnet Mask Routing Mode. For the remaining commands.
  • Routing --> RIP --> Config --> RIP Admin Mode. To enable RIP for the switch.
  • Routing --> RIP --> Interface Configuration. To enable RIP for the ports and specify the RIP versions.
Sun Netra CP3240 Switch User’s Guide 820-3252-11 Table Of ContentsPrevious ChapterNext ChapterBook Index

© 2007 Diversified Technology, Inc. All Rights Reserved. © 2009 Sun Microsystems, Inc. All rights reserved.

Tag » What Is Routing Information Protocol