Complete the following exercises to advertise IPv6 prefixes on a network to practice the skills you learned in this chapter.
In the following exercises, you will complete these tasks:
Enable prefix advertisement with a site-local prefix.
Verify prefix advertisement parameters.
Change the default prefix advertisement parameters.
Display NDP debug messages.
Renumber a site-local prefix with a global unicast prefix.
Deprecate a prefix.
Figure 3-15 shows the network topology used for Task 1. The router must be configured to advertise site-local prefixes on network interfaces FastEthernet 0/0 and FastEthernet 0/1.
In this configuration exercise you will use the commands shown in Table 3-17. Refer to this list during the exercise.
Command | Description |
---|---|
clock set hh:mm:ss day month year | Sets the date. |
copy running-config startup-config | Saves the current configuration to NVRAM. |
copy tftp flash | Installs a new IOS on a router using a TFTP server. |
debug ipv6 nd | Enables debug mode for neighbor discovery messages. |
interface interface-type interface-number | Specifies an interface type and interface number. |
ipv6 address ipv6-address/prefix-length | Configures an IPv6 static address with a prefix length. |
ipv6 nd prefix ipv6-prefix/prefix-length [at valid-date preferred-date] | Automatically decreases the valid and preferred dates of a specified prefix. |
ipv6 nd prefix ipv6-prefix/prefix-length [valid-lifetime preferred-lifetime] | Changes the valid and preferred lifetimes of a specified prefix. |
ipv6 nd suppress-ra | Suppresses router advertisement on a specific interface. |
ipv6 nd ra-interval number | Defines the router advertisement interval. |
show ipv6 | Displays general information about IPv6 support on a router. |
show ipv6 interface interface-type interface-number prefix | Displays parameters of the prefix advertised to an interface. |
undebug ipv6 nd | Disables debug mode for neighbor discovery messages. |
Complete the following steps:
Step 1. | Enter the command to enable prefix advertisement on interface FastEthernet 0/0 of Router A using the prefix FEC0:0:0:1001::/64. To perform this task, you need to configure the IPv6 address FEC0:0:1001::1 with the prefix length /64 on FastEthernet 0/0. What command will you use? RouterA#conf t RouterA(config)#int fastEthernet 0/0 RouterA(config-if)#ipv6 address fec0:0:0:1001::1/64 RouterA(config-if)#exit |
Step 2. | Enter the command to enable prefix advertisement on interface FastEthernet 0/1 of Router A using the prefix FEC0:0:0:1002::/64. To perform this task, you need to configure the IPv6 address FEC0:0:1002::1 with the prefix length /64 on the FastEthernet 0/1. What command will you use? RouterA#conf t RouterA(config)#int fastEthernet 0/1 RouterA(config-if)#ipv6 address fec0:0:0:1002::1/64 RouterA(config-if)#exit |
Step 3. | Display the prefix advertisement parameters for both interfaces. What command is used to get parameters of the prefix advertised by the router? RouterA#show ipv6 interface fastEthernet 0/0 prefix IPv6 Prefix Advertisements FastEthernet0/0 Codes: A - Address, P - Prefix-Advertisement, O - Pool X - Proxy RA, U - Per-user prefix, D - Default N - Not advertised, C - Calendar AD FEC0:0:0:1001::/64 [LA] valid lifetime 2592000 preferred lifetime 604800 RouterA#show ipv6 interface fastEthernet 0/1 prefix IPv6 Prefix Advertisements FastEthernet0/1 Codes: A - Address, P - Prefix-Advertisement, O - Pool X - Proxy RA, U - Per-user prefix, D - Default N - Not advertised, C - Calendar AD FEC0:0:0:1002::/64 [LA] valid lifetime 2592000 preferred lifetime 604800 |
Step 4. | Change the valid and preferred lifetimes to a value of three days. What command will you use to change these parameters on each interface? RouterA(config)#int fast RouterA(config)#int fastEthernet 0/0 RouterA(config-if)#ipv6 nd prefix fec0:0:0:1001::/64 259200 259200 RouterA(config-if)#int fast RouterA(config-if)#int fastethernet 0/1 RouterA(config-if)#ipv6 nd prefix fec0:0:0:1002::/64 259200 259200 RouterA(config-if)#exit |
Step 5. | Display the new prefix advertisement parameters on each interface. RouterA#show ipv6 interface fastethernet 0/0 prefix IPv6 Prefix Advertisements FastEthernet0/0 Codes: A - Address, P - Prefix-Advertisement, O - Pool X - Proxy RA, U - Per-user prefix, D - Default N - Not advertised, C - Calendar AP FEC0:0:0:1001::/64 [LA] valid lifetime 259200 preferred lifetime 259200 RouterA#show ipv6 interface fastethernet 0/1 prefix IPv6 Prefix Advertisements FastEthernet0/1 Codes: A - Address, P - Prefix-Advertisement, O - Pool X - Proxy RA, U - Per-user prefix, D - Default N - Not advertised, C - Calendar AP FEC0:0:0:1002::/64 [LA] valid lifetime 259200 preferred lifetime 259200 |
Step 6. | Enable debugging mode for NDP to display router advertisement messages on interface FastEthernet 0/1. RouterA#debug ipv6 nd ICMP Neighbor Discovery events debugging is on RouterA# 02:29:33: ICMPv6-ND: Sending RA to FF02::1 on FastEthernet0/0 02:29:33: ICMPv6-ND: prefix = FEC0:0:0:1001::/64 onlink autoconfig 02:29:33: ICMPv6-ND: 259200/259200 (valid/preferred) 02:32:53: ICMPv6-ND: Sending RA to FF02::1 on FastEthernet0/0 02:32:53: ICMPv6-ND: prefix = FEC0:0:0:1001::/64 onlink autoconfig 02:32:53: ICMPv6-ND: 259200/259200 (valid/preferred) RouterA#undebug ipv6 nd ICMP Neighbor Discovery events debugging is off RouterA# |
Step 7. | Change the default router advertisement interval to 5 seconds. The default router advertisement interval is 200 seconds. What is the command to change the router advertisement interval? RouterA#conf t RouterA(config)#int fastEthernet 0/0 RouterA(config-if)#ipv6 nd ra-interval 5 RouterA(config-if)#exit RouterA(config)#exit RouterA#debug ipv6 nd ICMP Neighbor Discovery events debugging is on RouterA# 02:37:21: ICMPv6-ND: Sending RA to FF02::1 on FastEthernet0/0 02:37:21: ICMPv6-ND: prefix = FEC0:0:0:1001::/64 onlink autoconfig 02:37:21: ICMPv6-ND: 259200/259200 (valid/preferred) 02:37:25: ICMPv6-ND: Sending RA to FF02::1 on FastEthernet0/0 02:37:25: ICMPv6-ND: prefix = FEC0:0:0:1001::/64 onlink autoconfig 02:37:25: ICMPv6-ND: 259200/259200 (valid/preferred) 02:37:30: ICMPv6-ND: Sending RA to FF02::1 on FastEthernet0/0 02:37:30: ICMPv6-ND: prefix = FEC0:0:0:1001::/64 onlink autoconfig 02:37:30: ICMPv6-ND: 259200/259200 (valid/preferred)undebug ip 02:37:34: ICMPv6-ND: Sending RA to FF02::1 on FastEthernet0/0 02:37:34: ICMPv6-ND: prefix = FEC0:0:0:1001::/64 onlink autoconfig 02:37:34: ICMPv6-ND: 259200/259200 (valid/preferred)v6 nd ICMP Neighbor Discovery events debugging is off |
Step 8. | Save the current configuration to NVRAM. RouterA#copy run start
Destination filename [startup-config]?
Building configuration...
|
Figure 3-16 presents the network topology used for Task 2. This site received an aggregatable global unicast prefix from its provider. The site should use this prefix instead of the site-local prefix. Therefore, Router A must be configured to deprecate the prefix FEC0:0:0:1001::1/64 within 30 minutes and advertise the new prefix 2001:420:0:1::/64 on interface FastEthernet 0/0. However, on interface FastEthernet 0/1, the prefix FEC0:0:0:1002::1/64 must be completely suppressed.
Complete the following steps:
Step 1. | Enter the command to deprecate the prefix FEC0:0:0:1001::/64 on interface FastEthernet 0/0. Begin by setting valid and preferred lifetimes to the value of 30 minutes. What command will you use? RouterA#conf t RouterA(config)#int fastEthernet 0/0 RouterA(config-if)#ipv6 nd prefix fec0:0:0:1001::/64 1800 1800 RouterA(config-if)#exit RouterA(config)#exit |
Step 2. | Display the prefix advertisement parameters of the FastEthernet 0/0 interface to be sure that the valid and preferred lifetimes are set to 30 minutes. What command is used to get parameters of the prefix advertised on that interface? RouterA#show ipv6 interface fastethernet 0/0 prefix IPv6 Prefix Advertisements FastEthernet0/0 Codes: A - Address, P - Prefix-Advertisement, O - Pool X - Proxy RA, U - Per-user prefix, D - Default N - Not advertised, C - Calendar AP FEC0:0:0:1001::/64 [LA] valid lifetime 1800 preferred lifetime 1800 |
Step 3. | Enter the command to advertise the new prefix 2001:420:0:1::/64 on interface FastEthernet 0/0 with valid and preferred lifetimes of three days. What commands will you use to accomplish this? RouterA#conf t RouterA(config)#int fastEthernet 0/0 RouterA(config-if)#ipv6 address 2001:0:420:1::/64 RouterA(config-if)#ipv6 nd prefix 2001:0:420:1::/64 259200 259200 RouterA(config-if)#exit RouterA(config)#exit |
Step 4. | Display the prefix advertisement parameters of the FastEthernet 0/0 interface. RouterA#show ipv6 interface fastethernet 0/0 prefix IPv6 Prefix Advertisements FastEthernet0/0 Codes: A - Address, P - Prefix-Advertisement, O - Pool X - Proxy RA, U - Per-user prefix, D - Default N - Not advertised, C - Calendar AP 2001:0:420:1::/64 [LA] valid lifetime 259200 preferred lifetime 259200 AP FEC0:0:0:1001::/64 [LA] valid lifetime 1800 preferred lifetime 1800 |
Step 5. | Enter the command to suppress the advertisement of the prefix FEC0:0:0:1002::/64 on interface FastEthernet 0/1. What command will you use? RouterA#conf t RouterA(config)#int fastEthernet 0/1 RouterA(config-if)#ipv6 nd suppress-ra RouterA(config-if)#exit RouterA(config)#exit |
Step 6. | Enable debugging mode for NDP to display router advertisement messages of both IPv6 prefixes. RouterA#debug ipv6 nd
ICMP Neighbor Discovery events debugging is on
01:30:36: ICMPv6-ND: Sending RA to FF02::1 on FastEthernet0/0
01:30:36: ICMPv6-ND: prefix = 2001:0:420:1::/64 onlink autoconfig
01:30:36: ICMPv6-ND: 259200/259200 (valid/preferred)
01:30:36: ICMPv6-ND: prefix = FEC0:0:0:1001::/64 onlink autoconfig
01:30:36: ICMPv6-ND: 1800/1800 (valid/preferred)
01:30:41: ICMPv6-ND: Sending RA to FF02::1 on FastEthernet0/0
01:30:41: ICMPv6-ND: prefix = 2001:0:420:1::/64 onlink autoconfig
01:30:41: ICMPv6-ND: 259200/259200 (valid/preferred)
01:30:41: ICMPv6-ND: prefix = FEC0:0:0:1001::/64 onlink autoconfig
|
Step 7. | Set the date in your router and deprecate the advertisement of the site-local prefix FEC0:0:0:1001::/64 on the interface FastEthernet 0/0 at a specific date. Deprecate the site-local prefix 5 hours after the current date, and use the same valid date and preferred date. What command will you use? RouterA#clock set 12:00:00 15 March 2003 RouterA(config)#interface FastEthernet 0/0 RouterA(config-if)#ipv6 nd prefix fec0:0:0:1001::/64 at Mar 15 2003 17:00 Mar 15 17:00 RouterA(config-if)#exit |
Step 8. | Save the current configuration to NVRAM. RouterA#copy run start
Destination filename [startup-config]?
Building configuration...
|
18.222.0.213