Welcome To Cisco CCNP Route
Welcome To Cisco CCNP Route
• The RIP process operates from UDP port 520; all RIP messages are
encapsulated in a UDP segment with both the Source and
Destination Port fields set to that value.
• RIP defines two message types: Request messages and Response
messages.
• A Request message is used to ask neighboring routers to send an
update. A Response message carries the update.
• The metric used by RIP is hop count, with 1 signifying a directly
connected network of the advertising router and 16 signifying an
unreachable network.
• On startup, RIP broadcasts a packet carrying a Request message
out each RIP-enabled interface.
• The RIP process then enters a loop, listening for RIP Request or
Response messages from other routers. Neighbors receiving the
Request send a Response containing their routing table.
Routing Information Protocol (RIP)
Configuring RIP
• Two steps are necessary to configure RIP:
• Enable RIP with the command router rip.
• Specify each major network on which to run RIP with the network
command
Routing Information Protocol (RIP)
Configuring RIP
• Figure shows a four-router internetwork, with four major network
numbers. Router Goober is attached to two subnets of network
172.17.0.0.
Routing Information Protocol (RIP)
Configuring RIP
• Both Andy and Barney are border routers between class-level
networks
• The commands necessary to enable RIP are:
• Goober(config)#router rip
• Goober(config-router)#network 172.17.0.0
• Opie(config)#router rip
• Opie(config-router)#network 172.17.0.0
• Barney(config)#router rip
Barney(config-router)#network 10.0.0.0
Barney(config-router)#network 192.168.83.0
•
Andy(config)#router rip
Andy(config-router)#network 172.17.0.0
Andy(config-router)#network 192.168.12.0
Andy(config-router)#network 192.168.83.0
Routing Information Protocol (RIP)
Configuring RIP (Passive Interfaces)
• The router Floyd has been added to the internetwork. It is desired
that no RIP advertisements be exchanged between Floyd and Andy.
Routing Information Protocol (RIP)
Configuring RIP (Passive Interfaces)
• By not including a network statement for 192.168.12.0, Floyd will
not advertise on interface 192.168.12.66. Andy, however, has two
interfaces attached to 172.17.0.0; the network must be included
under RIP.
• To block RIP broadcasts on an interface connected to a subnet of a
RIP-enabled network, add the passive-interface command to the
RIP process. Andy's RIP configuration is:
Andy(config)#router rip
Andy(config)#passive-interface Ethernet0
Andy(config)# network 172.17.0.0
Andy(config)# network 192.168.12.0
Andy(config)# network 192.168.83.0
Floyd(config)#router rip
Floyd(config-router)#network 192.168.100.0
Floyd(config-router)#network 192.168.12.0
Routing Information Protocol (RIP)
Configuring RIP (Unicast Updates)
• Next, router Bea is added to the Ethernet link that Andy and Floyd
share. The no-RIP policy between Andy and Floyd remains in place,
but now Bea and Andy, as well as Bea and Floyd, must exchange
RIP advertisements
Routing Information Protocol (RIP)
Configuring RIP (Unicast Updates)
• Next, router Bea is added to the Ethernet link that Andy and Floyd
share. The no-RIP policy between Andy and Floyd remains in place,
but now Bea and Andy, as well as Bea and Floyd, must exchange
RIP advertisements
Bea(config)#router rip
bea(config)# network 192.168.12.0
bea(config)# network 192.168.200.0
Andy(config)#router rip
Andy(config)#passive-interface Ethernet0
Andy(config)# network 172.17.0.0
Andy(config)# network 192.168.12.0
Andy(config)# network 192.168.83.0
Andy(config)# neighbor192.168.12.67
Routing Information Protocol (RIP)
Configuring RIP (Unicast Updates)
• The addition of a neighbor command under the RIP processes of
Andy enables RIP to send a unicast advertisement to Bea's interface
while the passive-interface command continues to prevent
broadcast updates on the link
Floyd(config)#router rip
Floyd(config)#passive-interface Ethernet 0
Floyd(config-router)#network 192.168.100.0
Floyd(config-router)#network 192.168.12.0
Floyd(config-router)#neighbor192.168.12.67
• Andy(config)#interface e1
• Andy(config-if)#ip address 10.33.55.2 255.255.240.0 secondary
Andy(config-if)#interface e2
• Andy(config-if)#ip address 10.33.75.1 255.255.240.0 secondary
• Andy(config-if)#router rip Andy(config-router)#network 10.0.0.0
• Ernest_T(config)#interface e0
• Ernest_T(config-if)#ip address 10.33.75.2 255.255.240.0 secondary
Routing Information Protocol (RIP)
Configuring RIP (Discontiguous Subnets)
Because Andy did not previously have an interface on network
10.0.0.0, a network statement is added to the RIP process. The
result of the configuration can be seen in FIG. The existing logical
network structure remains in place, and a contiguous network
10.0.0.0 is "overlaid" onto it. The use of secondary addresses can
contribute to congestion on the network
Routing Information Protocol (RIP)
Configuring RIP (Manipulating RIP Metrics)
• A serial link, to be used as a backup, has been added between
Ernest_T and Barney. This link should be used only if the route via
Andy fails. The problem is that the path between Barney's 10.33.0.0
subnet and Ernest_T's 10.33.32.0 subnet is 1 hop via the serial link
and 2 hops via the preferred Ethernet links. Under normal
circumstances, RIP will choose the serial link.
• The route metrics can be manipulated with the offset-list command.
The command specifies a number to add to the metric of a route
entry and references an access list to determine which route entries
to modify. The syntax of the command is:
• offset-list {access-list-number | name} {in| out} offset [type
number]
Routing Information Protocol (RIP)
Configuring RIP (Manipulating RIP Metrics)
!
router rip
version 2
network 172.25.0.0
network 192.168.50.0
!
interface Ethernet0
ip address 198.168.50.130 255.255.255.192
ip rip authentication key-chain CCNP
ip rip authentication mode md5
• Both the accept-lifetime and the send-lifetime commands must have
a specified start time and may have either a specified duration or
end time or the keyword infinite
• The key numbers are examined from the lowest to the highest, and
the first valid key is used.
• Although this configuration uses a 30-minute overlap to compensate
for differences in system times, it is highly recommended that a
time synchronization protocol such as Network Time Protocol (NTP)
be used with key management
Routing Information Protocol (RIP v2)
• Configuring RIPv2 (Authentication )
!
interface Ethernet0
ip address 198.168.50.130 255.255.255.192
ip rip authentication key-chain CCNP
ip rip authentication mode md5
• Both the accept-lifetime and the send-lifetime commands must have
a specified start time and may have either a specified duration or
end time or the keyword infinite
• The key numbers are examined from the lowest to the highest, and
the first valid key is used.
• Although this configuration uses a 30-minute overlap to compensate
for differences in system times, it is highly recommended that a
time synchronization protocol such as Network Time Protocol (NTP)
be used with key management
Routing Information Protocol (RIPNG)
•RIPNG
Routing Information Protocol (RIPNG)
• Comparing RIPv2 to RIPng
• Some small differences in the Update message format exist as well,
with the most obvious difference being that the Updates list IPv6
prefixes and prefix lengths.
• IPv6 supports authentication using the IPsec Authentication Header
(AH), RIPng does not natively support authentication, instead
relying on IPsec.
• RIPng remains a plain distance-vector protocol utilizing UDP port
521 instead of 520
• The destination IPv6 address for multicasted RIPng messages is
FF02::9. Metric is again based on hop count, with 15 being the
maximum usable metric and 16 representing infinity.
Routing Information Protocol (RIPNG)
• Comparing RIPv2 to RIPng
Routing Information Protocol (RIPNG)
• Configuring RIPng
• The following list shows the basic configuration steps for RIPng,
including steps to enable IPv6 routing and enabling IPv6 on the
interfaces:
• Step 1. Enable IPv6 routing with the ipv6 unicast-routing global
command.
• Step 2. Enable RIPng using the ipv6 router rip name global
configuration command. The name must be unique on a router but
does not need to match on neighboring routers.
• Step 3. Enable IPv6 on the interface, typically with one of these two
methods:
Configure an IPv6 unicast address on each interface using the ipv6
address address/prefix-length [eui-64] interface command.
Configure the ipv6 enable command, which enables IPv6 and causes the
router to derive its link-local address.
Routing Information Protocol (RIPNG)
• Configuring RIPng
• Step 4. Enable RIP on the interface with the ipv6 rip name enable
interface subcommand (where the name matches the ipv6 router rip
name global configuration command).
• As with RIPv1 and RIPv2, for any interface on which RIPng has been
enabled, the RIP process does three main actions:
• 1. It starts sending RIP updates on that interface.
• 2. It also starts processing any RIP updates received on that
interface.
• 3. Finally, it advertises the connected routes on that interface. In
particular, because IPv6 allows the configuration of multiple IPv6
unicast addresses on an interface, RIP advertises most IPv6 unicast
prefixes associated with the interface.
• The notable exceptions are that RIP does not advertise any link-
local addresses, nor does RIP advertise the local host routes—routes
Routing Information Protocol (RIPNG)
• Configuring RIPng
Routing Information Protocol (RIPNG)
• Configuring RIPng
• R1# show running-config
ipv6 unicast-routing
ipv6 router rip fred
interface FastEthernet0/0.1
ipv6 address 2012::1/64
ipv6 rip fred enable
!
! interface FastEthernet0/0.2
ipv6 address 2017::1/64
ipv6 rip fred enable
Routing Information Protocol (RIPNG)
• Configuring RIPng
• R1# show running-config
! interface FastEthernet0/1.18
ipv6 address 2018::1/64
ipv6 rip fred enable
!
interface Serial0/0/0.3
ipv6 address 2013::1/64
ipv6 rip fred enable
!
interface Serial0/0/0.4
ipv6 address 2014::1/64
ipv6 rip fred enable
!
interface Serial0/0/0.5
ipv6 address 2015::1/64
ipv6 rip fred enable
Routing Information Protocol (RIPNG)
• Configuring RIPng