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:
- 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.
- Switch to router configuration mode (use the router command, followed by the routing protocol you want to configure).
- 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.
- 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. |
Router(config)#router rip | Enter router RIP configuration mode. |
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.
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:
Posting Komentar