IPv6 Routing : RIP example

I’m using a basic configuration with single loopback on each or R1 and R2.  R1 is configured using global prefix and R2 is using auto-config with no default…

IPv6 RIPng

  • A basic implementation similar to RIPv2.
  • Distance-Vector (Hops) and 15 is maximum (16 is infinity).
  • UDP Port 521 (as opposed to 520 of RIPv1/2).
  • Destination addresses of FF02::9.
  • Split Horizon, Hold Down timer (180s) and Poison Reverse same as IPV4 versions.
  • No RIPng authentication (handed off to IPv6 IPsec)

Below is an example of enabling RIPng, and verifying the Loopback appearing on the neighbour as a RIP route.

R1(config)#int lo 0
R1(config-if)#ipv6 rip PROCESS-NAME enable
R1(config-if)#int fa 0/0
R1(config-if)#ipv6 rip PROCESS-NAME enable
R1(config-if)#end

R2(config)#int lo 0
R2(config-if)#ipv6 rip PROCESS-NAME enable
R2(config-if)#int fa 0/0
R2(config-if)#ipv6 rip PROCESS-NAME enable
R2(config-if)#

R1#show ipv6 route
IPv6 Routing Table - default - 5 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
LC 2001:1111:1111::1/128 [0/0]
via Loopback0, receive
R 2001:2222::/64 [120/2]
via FE80::C802:4FF:FEA0:8, FastEthernet0/0
C 2001:9999:9999:CAFE::/64 [0/0]
via FastEthernet0/0, directly connected
L 2001:9999:9999:CAFE::1/128 [0/0]
via FastEthernet0/0, receive
L FF00::/8 [0/0]
via Null0, receive

R2#show ipv6 route
IPv6 Routing Table - default - 6 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
R 2001:1111:1111::1/128 [120/2]
via FE80::C801:56FF:FE00:8, FastEthernet0/0
C 2001:2222::/64 [0/0]
via Loopback0, directly connected
L 2001:2222::1/128 [0/0]
via Loopback0, receive
NDp 2001:9999:9999:CAFE::/64 [2/0]
via FastEthernet0/0, directly connected
L 2001:9999:9999:CAFE:C802:4FF:FEA0:8/128 [0/0]
via FastEthernet0/0, receive
L FF00::/8 [0/0]
via Null0, receive

Note: You can apply an offset list to an interface that will add that to the routes received before placing in the routing table.

R2(config)#int fa 0/0
R2(config-if)#ipv rip PROCESS-NAME metric-offset 13
R2(config-if)#end

R2#show ipv6 route
IPv6 Routing Table - default - 6 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
R 2001:1111:1111::1/128 [120/14]
via FE80::C801:56FF:FE00:8, FastEthernet0/0
C 2001:2222::/64 [0/0]
via Loopback0, directly connected
L 2001:2222::1/128 [0/0]
via Loopback0, receive
NDp 2001:9999:9999:CAFE::/64 [2/0]
via FastEthernet0/0, directly connected
L 2001:9999:9999:CAFE:C802:4FF:FEA0:8/128 [0/0]
via FastEthernet0/0, receive
L FF00::/8 [0/0]
via Null0, receive
R2#

Default Route

A default route can be set on the advertising interface and example also shows suppressing the component routes…

R2(config)#int fa 0/0
R2(config-if)#ipv rip PROCESS-NAME default-information originate

R1#show ipv route
IPv6 Routing Table - default - 6 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
R ::/0 [120/2]
via FE80::C802:4FF:FEA0:8, FastEthernet0/0
LC 2001:1111:1111::1/128 [0/0]
via Loopback0, receive
R 2001:2222::/64 [120/2]
via FE80::C802:4FF:FEA0:8, FastEthernet0/0
C 2001:9999:9999:CAFE::/64 [0/0]
via FastEthernet0/0, directly connected
L 2001:9999:9999:CAFE::1/128 [0/0]
via FastEthernet0/0, receive
L FF00::/8 [0/0]
via Null0, receive
R1#


R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int fa 0/0
R2(config-if)#ipv rip PROCESS-NAME default-information originate on
R2(config-if)#ipv rip PROCESS-NAME default-information originate on?
% Unrecognized command
R2(config-if)#ipv rip PROCESS-NAME default-information originate ?
metric Default route metric
<cr>

R2(config-if)#ipv rip PROCESS-NAME default-information ?
only Advertise only the default route
originate Originate the default route
R2(config-if)#ipv rip PROCESS-NAME default-information only

R1#show ipv route
IPv6 Routing Table - default - 5 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
R ::/0 [120/2]
via FE80::C802:4FF:FEA0:8, FastEthernet0/0
LC 2001:1111:1111::1/128 [0/0]
via Loopback0, receive
C 2001:9999:9999:CAFE::/64 [0/0]
via FastEthernet0/0, directly connected
L 2001:9999:9999:CAFE::1/128 [0/0]
via FastEthernet0/0, receive
L FF00::/8 [0/0]
via Null0, receive
R1#


R2#show ipv6 rip
RIP process "PROCESS-NAME", port 521, multicast-group FF02::9, pid 120
     Administrative distance is 120. Maximum paths is 16
     Updates every 30 seconds, expire after 180
     Holddown lasts 0 seconds, garbage collect after 120
     Split horizon is on; poison reverse is off
     Default routes are generated
     Periodic updates 56, trigger updates 2
     Full Advertisement 0, Delayed Events 0
  Interfaces:
    FastEthernet0/0
    Loopback0
  Redistribution:
    None
R2#

Other Options

Other options and Poison Reverse are performed under the router RIP process…

R2(config)#ipv6 router rip PROCESS-NAME

R2(config-rtr)#poison-reverse
R2(config-rtr)#?
default Set a command to its defaults
distance Administrative distance
distribute-list Filter networks in routing updates
exit Exit from IPv6 routing protocol configuration mode
maximum-paths Forward packets over multiple paths
no Negate a command or set its defaults
poison-reverse Poison reverse updates
port Port and multicast address
redistribute Redistribute IPv6 prefixes from another routing protocol
split-horizon Split horizon updates
timers Adjust routing timers

R2#show ipv6 rip
RIP process "PROCESS-NAME", port 521, multicast-group FF02::9, pid 120
Administrative distance is 120. Maximum paths is 16
Updates every 30 seconds, expire after 180
Holddown lasts 0 seconds, garbage collect after 120
Split horizon is on; poison reverse is on
Default routes are generated
Periodic updates 78, trigger updates 2
Full Advertisement 0, Delayed Events 0
Interfaces:
FastEthernet0/0
Loopback0
Redistribution:
None

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s