Lab Objective:
The focus of this lab is to understand RIPng implementation and configuration in Cisco IOS routers. Additional technologies include stateless auto-configuration and summarization.
Lab Topology:
The lab network topology is illustrated below:
|
IMPORTANT NOTE If you are using the www.howtonetwork.net racks, please bring up the LAN interfaces connected to the routers by issuing the no shutdown command on the connected switches. If you are using a home lab with no interface fastethernet 0/0 Alternately, you can simply connect the interfaces to a hub or switch if you have one available in your own lab. |
Task 1
Configure hostnames and IPv6 addressing on all routers as illustrated in the network topology. Do NOT configure an IPv6 address on R4s FastEthernet 0/0 interface.
Task 2
Configure R4 so that it uses stateless auto-configuration to dynamically provision its address. Ensure that this router also has a default route in its routing table. Verify your configuration.
Task 3
Configure RIPng on R1, R2, and R3. RIPng messages should be exchanged using UDP port 520.
Do NOT enable RIPng for the LAN subnet connected to R1. Next configure your network so that R2 is able to reach R4; however, R3 should NOT be able to reach R4. You are NOT allowed to use redistribution, any types of route filters on any router in the network, or static routes. Verify your configuration using the appropriate commands.
Task 4
Configure the following Loopback interfaces on R3 and redistribute them via RIPng:
- Loopback 1: IPv6 address 2002:abcd:1234:a::4/128
- Loopback 2: IPv6 address 2002:abcd:1234:b::4/128
- Loopback 3: IPv6 address 2002:abcd:1234:c::4/128
- Loopback 4: IPv6 address 2002:abcd:1234:d::4/128
- Loopback 5: IPv6 address 2002:abcd:1234:e::4/128
Next, configure RIPng to advertise a SINGLE route for these 5 Loopback interfaces. Ensure that this single route is advertised to R1 and R2 and the specific prefixes are suppressed. Verify your configuration using the appropriate commands as well as standard or extended pings.
Task 5
Configure RIPng so that all routes that R2 receives from R3 have a route metric of 10. Verify your configuration using the appropriate commands.
Lab Validation
Task 1
| Router(config)#hostname R1 R1(config)#ipv6 unicast-routing R1(config)#ipv6 cef R1(config)#interface fastethernet 0/0 R1(config-if)#ipv6 address 3ffe:abcd:1111:1::1/64 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface serial 0/0 R1(config-if)#ipv6 address 2001:abcd:1111:1::1/64 R1(config-if)#clock rate 2000000 R1(config-if)#no shutdown R1(config-if)#exit |
| Router(config)#hostname R2 R2(config)#ipv6 unicast-routing R2(config)#ipv6 cef R2(config)#interface fastethernet 0/0 R2(config-if)#ipv6 address 3ffe:abcd:1111:2::2/64 R2(config-if)#no shutdown R2(config)#interface serial 0/0 R2(config-if)#ipv6 address 2001:abcd:1111:1::2/64 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface serial 0/1 R2(config-if)#ipv6 address 2001:abcd:1111:3::2/64 R2(config-if)#no shutdown R2(config-if)#exit |
| Router(config)#hostname R3 R3(config)#ipv6 unicast-routing R3(config)#ipv6 cef R3(config)#interface fastethernet 0/0 R3(config-if)#ipv6 address 3ffe:abcd:1111:3::3/64 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface serial 1/1 R3(config-if)#ipv6 address 2001:abcd:1111:3::3/64 R3(config-if)#clock rate 128000 R3(config-if)#no shutdown R3(config-if)#exit |
| Router(config)#hostname R4 R4(config)#ipv6 unicast-routing R4(config)#ipv6 cef |
Task 2
To complete this task, append the default keyword to the ipv6 address autoconfig interface configuration command. If the default keyword keyword is omitted, a default route will not be installed into the local routers IPv6 RIB. This task is completed as follows:
| R4(config)#interface fastethernet 0/0 R4(config-if)#no shutdown R4(config-if)#ipv6 address autoconfig default R4(config-if)#exit |
Verify stateless auto-configuration using the show ipv6 interface command:
| R4#show ipv6 interface fastethernet 0/0 FastEthernet0/0 is up, line protocol is up IPv6 is enabled, link-local address is FE80::20F:23FF:FE5E:F120 Global unicast address(es): 3FFE:ABCD:1111:1:20F:23FF:FE5E:F120, subnet is 3FFE:ABCD:1111:1::/64 [PRE] valid lifetime 2591989 preferred lifetime 604789 Joined group address(es): FF02::1 FF02::2 FF02::1:FF5E:F120 MTU is 1500 bytes ICMP error messages limited to one every 100 milliseconds ICMP redirects are enabled ND DAD is enabled, number of DAD attempts: 1 ND reachable time is 30000 milliseconds ND advertised reachable time is 0 milliseconds ND advertised retransmit interval is 0 milliseconds ND router advertisements are sent every 200 seconds ND router advertisements live for 1800 seconds Hosts use stateless autoconfig for addresses. |
Verify that the default route has been installed using the show ipv6 route command. This will point to the Link Local address of R1, rather than the global Unicast address:
| R4#show ipv6 route IPv6 Routing Table – 5 entries Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP U – Per-user Static route I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2 ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2 S ::/0 [1/0] via FE80::20F:23FF:FE5E:EC80, FastEthernet0/0 C 3FFE:ABCD:1111:1::/64 [0/0] via ::, FastEthernet0/0 L 3FFE:ABCD:1111:1:20F:23FF:FE5E:F120/128 [0/0] via ::, FastEthernet0/0 L FE80::/10 [0/0] via ::, Null0 L FF00::/8 [0/0] via ::, Null0 |
Task 3
The requirements of this task are two-fold. The first requirement is to configure RIPng as stated in the requirements. This is a straightforward task; however, because the task requires RIPng to use UDP port 520 instead of the default port 521, some additional configuration is required. The first part of this task is completed as follows:
| R1(config)#ipv6 router rip CCNP R1(config-rtr)#port 520 multicast-group ff02::9 R1(config-rtr)#exit R1(config)#interface serial 0/0 R1(config-if)#ipv6 rip CCNP enable R1(config-if)#exit |
| R2(config)#ipv6 router rip CCNP R2(config-rtr)#port 520 multicast-group ff02::9 R2(config-rtr)#exit R2(config)#interface fastethernet 0/0 R2(config-if)#ipv6 rip CCNP enable R2(config-if)#exit R2(config)#interface serial 0/0 R2(config-if)#ipv6 rip CCNP enable R2(config-if)#exit R2(config)#interface serial 0/1 R2(config-if)#ipv6 rip CCNP enable R2(config-if)#exit |
| R3(config)#ipv6 router rip CCNP R3(config-rtr)#port 520 multicast-group ff02::9 R3(config-rtr)#exit R3(config)#interface fastethernet 0/0 R3(config-if)#ipv6 rip CCNP enable R3(config-if)#exit R3(config)#interface serial 1/1 R3(config-if)#ipv6 rip CCNP enable R3(config-if)#exit |
Verify your configuration using the show ipv6 route command:
| R1#show ipv6 route rip IPv6 Routing Table – 9 entries Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP U – Per-user Static route I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2 ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2 R 2001:ABCD:1111:3::/64 [120/2] via FE80::20D:28FF:FE9E:F940, Serial0/0 R 3FFE:ABCD:1111:2::/64 [120/2] via FE80::20D:28FF:FE9E:F940, Serial0/0 R 3FFE:ABCD:1111:3::/64 [120/3] via FE80::20D:28FF:FE9E:F940, Serial0/0 |
| R2#show ipv6 route rip IPv6 Routing Table – 8 entries Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP U – Per-user Static route I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2 ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2 R 3FFE:ABCD:1111:3::/64 [120/2] via FE80::213:7FFF:FEAF:3E00, Serial0/1 |
| R3#show ipv6 route rip IPv6 Routing Table – 7 entries Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP U – Per-user Static route I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2 ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2 R 2001:ABCD:1111:1::/64 [120/2] via FE80::20D:28FF:FE9E:F940, Serial1/1 R 3FFE:ABCD:1111:2::/64 [120/2] via FE80::20D:28FF:FE9E:F940, Serial1/1 |
The second part of this task requires that R2 and R3 be able to ping R4 and vice-versa without enabling RIPng on the R1-R4 LAN segment. To do so, you need to advertise a default route from R1; however, to ensure that this is not advertised to R4, you need to set a metric of 14 for this route. This means that when R2 receives it, the metric will be 15, which is the maximum allowed metric for RIP. If advertised to R3, this route will have a metric of 16 – which is unreachable for RIP – and will therefore not be installed into the routing table. The second part of this task is completed as follows:
| R1(config)#interface serial 0/0 R1(config-if)#ipv6 rip CCNP default-information originate metric 14 R1(config-if)#exit |
Verify your configuration by looking at the routings of R2 and R3:
| R2#show ipv6 route rip IPv6 Routing Table – 9 entries Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP U – Per-user Static route I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2 ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2 R ::/0 [120/15] via FE80::20F:23FF:FE5E:EC80, Serial0/0 R 3FFE:ABCD:1111:3::/64 [120/2] via FE80::213:7FFF:FEAF:3E00, Serial0/1 |
| R3#show ipv6 route rip IPv6 Routing Table – 7 entries Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP U – Per-user Static route I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2 ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2 R 2001:ABCD:1111:1::/64 [120/2] via FE80::20D:28FF:FE9E:F940, Serial1/1 R 3FFE:ABCD:1111:2::/64 [120/2] via FE80::20D:28FF:FE9E:F940, Serial1/1 |
Finally, verify that R2 and R4 can reach each other using a standard or extended ping:
| R2#show ipv6 route 3FFE:ABCD:1111:1:20F:23FF:FE5E:F120 IPv6 Routing Table – 9 entries Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP U – Per-user Static route I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2 ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2 R ::/0 [120/15] via FE80::20F:23FF:FE5E:EC80, Serial0/0 |
| R2#ping 3FFE:ABCD:1111:1:20F:23FF:FE5E:F120 source fastethernet 0/0
Type escape sequence to abort. |
Task 4
The requirements of this task are two-fold. The first requirement is that you configure Loopback interfaces on R3 and advertise them via RIPng. This is completed as follows:
| R3(config)#interface loopback 1 R3(config-if)#ipv6 address 2002:abcd:1234:a::4/128 R3(config-if)#exit R3(config)#interface loopback 2 R3(config-if)#ipv6 address 2002:abcd:1234:b::4/128 R3(config-if)#exit R3(config)#interface loopback 3 R3(config-if)#ipv6 address 2002:abcd:1234:c::4/128 R3(config-if)#exit R3(config)#interface loopback 4 R3(config-if)#ipv6 address 2002:abcd:1234:d::4/128 R3(config-if)#exit R3(config)#interface loopback 5 R3(config-if)#ipv6 address 2002:abcd:1234:e::4/128 R3(config-if)#exit R3(config)#ipv6 router rip CCNP R3(config-rtr)#redistribute connected R3(config-rtr)#exit |
Verify your configuration by checking the routing tables on R2 and R1:
| R1#show ipv6 route rip | include 2002 R 2002:ABCD:1234:A::4/128 [120/3] R 2002:ABCD:1234:B::4/128 [120/3] R 2002:ABCD:1234:C::4/128 [120/3] R 2002:ABCD:1234:D::4/128 [120/3] R 2002:ABCD:1234:E::4/128 [120/3] |
| R2#show ipv6 route rip | include 2002 R 2002:ABCD:1234:A::4/128 [120/2] R 2002:ABCD:1234:B::4/128 [120/2] R 2002:ABCD:1234:C::4/128 [120/2] R 2002:ABCD:1234:D::4/128 [120/2] R 2002:ABCD:1234:E::4/128 [120/2] |
The second part of this task requires route summarization, i.e. summarizing the 5 Loopback interface addresses and advertise only a single route using RIPng. IPv6 summarization is not as complex as one would think. It is also performed in a manner similar to IPv4 route summarization. First, identify and locate the first different 16-bit field. In our example, it is the fourth field, which contains the values a, b, c, d, and e. Next, convert these values to binary as illustrated in the following table:
| Hexadecimal Value | Binary Representation | Matching Bit Values |
| A | 0000 0000 0000 1010 | 0000 0000 0000 1 |
| B | 0000 0000 0000 1011 | 0000 0000 0000 1 |
| C | 0000 0000 0000 1100 | 0000 0000 0000 1 |
| D | 0000 0000 0000 1101 | 0000 0000 0000 1 |
| E | 0000 0000 0000 1110 | 0000 0000 0000 1 |
Referencing the table above, the first thirteen bits match. To complete the address, we simply input zeros for the non-matching bits, resulting in the Binary address: 0000 0000 0000 1000. In Hexadecimal, the same address would be written as 8.
Next, we need to calculate the mask. This is simple and entails just counting the number of matching bits in the address, which would be 61. This task is completed as follows:
| R3(config)#interface serial 1/1 R3(config-if)#ipv6 rip CCNP summary-address 2002:abcd:1234:8::/61 R3(config-if)#exit |
Verify your configuration by checking the routing tables on R2 and R1:
| R1#show ipv6 route rip | include 2002 R 2002:ABCD:1234:8::/61 [120/3] |
| R2#show ipv6 route rip | include 2002 R 2002:ABCD:1234:8::/61 [120/2] |
Verify your configuration using a simple ping from R1 and R2:
| 1#ping 2002:ABCD:1234:A::4 repeat 10
Type escape sequence to abort. R1#ping 2002:ABCD:1234:B::4 repeat 10 Type escape sequence to abort. R1#ping 2002:ABCD:1234:C::4 repeat 10 Type escape sequence to abort. R1#ping 2002:ABCD:1234:D::4 repeat 10 Type escape sequence to abort. R1#ping 2002:ABCD:1234:E::4 repeat 10 Type escape sequence to abort. |
| R2#ping 2002:ABCD:1234:A::4 repeat 10
Type escape sequence to abort. R2#ping 2002:ABCD:1234:B::4 repeat 10 Type escape sequence to abort. R2#ping 2002:ABCD:1234:C::4 repeat 10 Type escape sequence to abort. R2#ping 2002:ABCD:1234:D::4 repeat 10 Type escape sequence to abort. R2#ping 2002:ABCD:1234:E::4 repeat 10 Type escape sequence to abort. |
Task 5
This last task requires RIPng metric offsetting. With RIPng, this functionality is performed on a per-interface basis and can be performed in the inbound direction only. Prior to any changes, R2s routing table shows the following entries:
| R2#show ipv6 route rip IPv6 Routing Table – 10 entries Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP U – Per-user Static route I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2 ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2 R ::/0 [120/15] via FE80::20F:23FF:FE5E:EC80, Serial0/0 R 2002:ABCD:1234:8::/61 [120/2] via FE80::213:7FFF:FEAF:3E00, Serial0/1 R 3FFE:ABCD:1111:3::/64 [120/2] via FE80::213:7FFF:FEAF:3E00, Serial0/1 |
To ensure that the routes are received on R2 with a route-metric of 10, you have to offset the metric on R2s Serial 0/1 interface by a value of 9. This task is completed as follows:
| R2(config)#interface serial 0/1 R2(config-if)#ipv6 rip CCNP metric-offset 9 R2(config-if)#exit |
Following this configuration, the same prefixes on R2 now show a route metric of 10:
| R2#show ipv6 route rip IPv6 Routing Table – 11 entries Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP U – Per-user Static route I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2 ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2 R ::/0 [120/15] via FE80::20F:23FF:FE5E:EC80, Serial0/0 R 2002:ABCD:1234:8::/61 [120/10] via FE80::213:7FFF:FEAF:3E00, Serial0/1 R 3FFE:ABCD:1111:3::/64 [120/10] via FE80::213:7FFF:FEAF:3E00, Serial0/1 |
Final Router Configurations
R1
|
R1#term len 0 Current configuration : 1008 bytes R1# |
R2
|
R2#term len 0 Current configuration : 1059 bytes R2# |
R3
|
R3#term len 0 Current configuration : 1770 bytes R3# |
R4
|
R4#term len 0 Current configuration : 822 bytes R4# |
