2011-12-05

RIP Command List

RIP Command List

The Routing Information Protocol (RIP) is a simple, effective routing protocol for small- to medium-sized networks. By using a routing protocol, routers automatically share route information, reducing the amount of administration required for maintaining routes between networks.

To configure any routing protocol, use the following three steps:

  1. Enable IP routing if it is not already enabled (use the ip routing command). By default, IP routing is already enabled, so this step is rarely required.
  2. Switch to router configuration mode (use the router command, followed by the routing protocol you want to configure).
  3. Identify the networks that will participate in dynamic routing (use the network command, followed by the address of a network to which the router is directly connected). This identifies the interfaces that will share and process received routing updates.
  4. Configure any additional parameters based on the routing protocol.

The following table lists commands for configuring RIP.

Use . . .

To . . .

Router(config)#ip routing

Enable IP routing for the entire router. IP routing is enabled by default. Use this command only if it has been disabled.
Use the no ip routing command to disable routing.

Router(config)#router rip

Enter router RIP configuration mode.
Use the no router rip command to disable rip, removing all defined networks.

Router(config-router)#version 2

Enable RIP version 2 on the router.

Router(config-router)#network <address>

Identify networks that will participate in the router protocol. Notice that you identify networks, and not interfaces.

When you use the network command to identify the networks that will participate in RIP routing, follow these rules.

  • Identify only networks to which the router is directly connected.
  • Use the classful network address, not a subnetted network address. (The router will automatically convert a subnetted network address into a classful network address by removing subnetted network information.)

Use the no network command to remove any network entries.

Router#show ip route

View the routing table.

Router#show ip route <hostname or address>

View details about the specific route.

Example
The following commands enable IP routing and identify two networks that will participate in the RIPv2 routing protocol.

Router(config)#ip routing
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 10.0.0.0
Router(config-router)#network 192.168.10.0

Tidak ada komentar: