Professional Documents
Culture Documents
- Although some vendors, like Cisco, can also handle this with classful routing protocols.
Can have discontiguous subnets Better IP addressing allocation More control over route summarization
VLSM
CIDR
RIP version 1
Classful Routing Protocol, sent over UDP port 520 Does not include the subnet mask in the routing updates. Automatic summarization done at major network boundaries. Updates sent as broadcasts unless the neighbor command is uses which sends them as unicasts.
RIP version 1
0 1 2 3 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | command (1) | version (1) | must be zero (2) | +---------------+---------------+-------------------------------+ | address family identifier (2) | must be zero (2) | +-------------------------------+-------------------------------+ | IP address (4) | +---------------------------------------------------------------+ | must be zero (4) | +---------------------------------------------------------------+ | must be zero (4) | +---------------------------------------------------------------+ | metric (4) | +---------------------------------------------------------------+
RIP version 2
Classless Routing Protocol, sent over UDP port 520 Includes the subnet mask in the routing updates. Automatic summarization at major network boundaries can be disabled. Updates sent as multicasts unless the neighbor command is uses which sends them as unicasts.
RIP version 2
0 1 2 3 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | command (1) | version (1) | must be zero (2) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Address Family Identifier (2) | Route Tag (2) | +-------------------------------+-------------------------------+ | IP Address (4) | +---------------------------------------------------------------+ | Subnet Mask (4) | +---------------------------------------------------------------+ | Next Hop (4) | +---------------------------------------------------------------+ | Metric (4) | +---------------------------------------------------------------+
RIP v2 operation
All of the operational procedures, timers, and stability functions of RIP v1 remain the same in RIP v2, with the exception of the broadcast updates.
Authentication of the transmitting RIP v2 node to other RIP v2 nodes Subnet Masks RIP v2 allocates a 4-octet field to associate a subnet mask to a destination IP address. Next Hop IP addresses The inclusion of a Next Hop identification field helps make RIP v2 more efficient than RIP v1 by preventing unnecessary hops. Multicasting RIP v2 messages Multicasting is a technique for simultaneously advertising routing information to multiple RIP or RIP v2 devices.
Route Tag - provides a way to differentiate between internal and external routes.
External routes are those that have been redistributed into the RIP v2.
Next hop on same subnet, that is metrically closer to the destination than the advertising router.
Metric - how many internetwork hops, between 1 and 15 for a valid route, or 16 for an unreachable route.
Authentication
Authentication is supported by modifying what would normally be the first route entry of the RIP message
The Authentication Type for simple password authentication is two (0x0002) The remaining 16 octets carry an alphanumeric password of up to 16 characters.
Authentication
RFC 1723 describes only simple password authentication Cisco IOS provides the option of using MD5 authentication instead of simple password authentication. Cisco uses the first and last route entry spaces for MD5 authentication purposes. MD5 computes a 128-bit hash value from a plain text message of arbitrary length and a password.
Authentication
Limitations of RIPv2
Slow convergence
RIPv2 continues to rely on counting to infinity as a means of resolving certain error conditions within the network.
Limitations of RIPv2
Perhaps the single greatest limitation that RIPv2 inherited from RIP is that its interpretation of infinity remained at 16. Redistributed RIPv2 static cost metrics. The default value of 1 is just like RIP.
This metric remains constant, and can only be changed by the administrator.
Interface FastEthernet0/0 is configured to send and receive RIP v1 updates. FastEthernet0/1 is configured to send both version 1 and 2 updates. FastEthernet0/2 has no special configuration and therefore sends and receives version 2 by default.
Configuring authentication
Configuring authentication
Router(config)#key chain Romeo Router(config-keychain)#key 1 Router(config-keychain-key)#key-string Juliet The password must be the same on both routers, but the name of the key can be different. Router(config)#interface fastethernet 0/0 Router(config-if)#ip rip authentication key-chain Romeo Router(config-if)#ip rip authentication mode md5
If the command ip rip authentication mode md5 is not added, the interface will use the default clear text authentication.
Show commands
Show commands
Defines a neighboring router with which to exchange unicast routing information. (RIPv1 or RIPv2)
Router(config-if)# ip rip send|receive version 1 | 2 | 1 2 Configures an interface to send/receive RIP Version 1 and/or Version 2 packets Router(config-if)# ip summary-address rip ip_address ip_network_mask Specifies the IP address and network mask that identify the routes to be summarized.