25
© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 1 LABIPM-2006 IPv6 Hands-on Lab

IPv6 Hands-On Lab

Embed Size (px)

Citation preview

Page 1: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 1

LABIPM-2006

IPv6 Hands-on Lab

Page 2: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 2

Prerequisites: Session Abstract  This 45 minutes hands-on lab (no theory will be covered

during this session) will provide students with an opportunity to configure basic IPv6 connectivity using Cisco IOS configuration, show commands and debugs. Lab exercises are designed to help students get a jump start on configuring basic IPv6 connectivity and get hands-on experience with IPv6. Students will get a chance to experience IPv6 Addressing, pinging IPv6 addresses end to end and configure IPv6 static routing.

 Students MUST have a basic understanding of IPv6 Addressing and static routing.

 Familiarity with Cisco IOS and CLI

Page 3: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 3

Network Diagram – IPv6 Lab

E0/0

E0/0

E0/0

E0/0

E1/0

E1/0

E1/0 H1 H2 R1 R2 R3 R4

S2/0

S2/0 E1/0

Sample topology for a single pod

Network A Network B

Page 4: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 4

Lab Approach

 Follow instructions to view lab topology  Click on icons to access routers and hosts  Follow the lab guidelines step by step   Look at show commands and turn on debugs to

understand IPv6 functionality  Answer review questions at the end of each lab

Page 5: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 5

All Routers/Hosts Basic Configuration

hostname R1 / H1

!

no ip domain-lookup

!

line con 0

no login

exec-timeout 0 0

privilege level 15

•  Configure the following on all Routers and Hosts:

For example: R1 and H1

Page 6: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 6

Lab 1: IPv6 Addressing

Page 7: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 7

Lab 1: Task Summary

 Enable IPv6 on all four routers (R1 to R4)

 Configure hosts (H1 and H2) to use stateless address auto-configuration for IPv6

 Configure IPv6 addresses on Ethernet and Serial interfaces using addresses listed in Table 1

 Use show commands to view IPv6 configuration and addresses

 Use ping to verify IPv6 connectivity

 Answer review questions at the end of this section

 Detail step by step instructions on the next slide..

Page 8: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 8

Table 1 : IPv6 Prefixes for Ethernet & Serial Interfaces

Router Number Global IPv6 Prefix Unique-local IPv6 Prefix

R1 (E1/0) 2001:DB8:1122:12::1/64 fc00:1:2:12::1/64 R1 (E0/0) 2001:DB8:1234:1::/64 eui-64 R2 (E1/0) 2001:DB8:1122:12::2/64 fc00:1:2:12::2/64 R2 (S2/0) 2004:DB8:2233:23::2/64 R3 (E1/0) 2001:DB8:3344:34::3/64 fc00:3:4:34::3/64 R3 (S2/0) 2004:DB8:2233:23::3/64 R4 (E0/0) 2001:DB8:1234:4::/64 eui-64 R4 (E1/0) 2001:DB8:3344:34::4/64 fc00:3:4:34::4/64

Lab 1: Configuring IPv6 Interfaces (1)

Page 9: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 9

Lab 1: Configuring IPv6 Interfaces (2) Task : Configuring the IPv6 Ethernet Interface   On Routers R1 and R4, go to global configuration mode

#configure terminal   Enable IPv6 Unicast Routing on the router

(config)#ipv6 unicast-routing   Configure the Ethernet0/0 interface

(config)#interface ethernet0/0   Enable IPv6 on the interface

(config-if)#ipv6 enable (config-if)#no shutdown

  Quit the configure mode (config-if)#end

  Verify that the Ethernet interface is configured #show ipv6 interface ethernet0/0

  Identify the type of addresses that are configured

Page 10: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 10

Lab 1: Configuring IPv6 Interfaces (3)

Task : Finding the Link-Local Address of a Host   On Hosts H1 and H2, go to global configuration mode

#configure terminal   Configure the Host Ethernet0/0 interface

(config)#interface ethernet0/0   Enable IPv6 on the interface

(config-if)#ipv6 enable (config-if)#ipv6 address autoconfig (config-if)#no shutdown

  Quit the configure mode (config-if)#end

  Verify that the Ethernet interface is configured #show ipv6 interface ethernet0/0

Page 11: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 11

Lab 1: Configuring IPv6 Interfaces (4)

Task : Verifying IPv6 Link-Local Connectivity   On Routers R1 and R4, enable console debugging of ICMP and

Neighbor Discovery (ND) IPv6 packets #debug ipv6 icmp

#debug ipv6 nd

  On the Router, ping the local Ethernet interface of Host specifying the link local address in the ping command destination address

#ping fe80::<link local address of Host> #ping ipv6 fe80::<link local address of Host>

  On the Router, verify the list of IPv6 neighbors #show ipv6 neighbors

Page 12: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 12

Lab 1: Configuring IPv6 Interfaces (5)

Task : Configuring a Static IPv6 Address with EUI-64   On Routers R1 and R4, configure a global IPv6 address on

Ethernet 0/0 interface using the /64 prefix of your subnet and the EUI-64 format.

  Subnet = router number, e.g. R1 = 2001:DB8:1234:1::/64 & R4 = 2001:DB8:1234:4::/64)

#configure terminal (config)#interface ethernet0/0 (config-if)#ipv6 address 2001:DB8:1234:<router #>::/64 eui-64 (config)#end

  Verify the configuration   On the Routers, disable all console debugging

#undebug all

Page 13: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 13

Task: Configuring IPv6 addresses on Ethernet1/0 & Serial2/0 interfaces   On all four routers, configure a global and unique-local address on other

interfaces by using the IPv6 prefix assigned. Use the router number for the host part. (Refer to Table 1 for details)

  For example, on R1: #configure terminal

(config)#interface Ethernet 1/0 (config-if)#ipv6 enable (config-if)#ipv6 address fc00:1:2:12::<router #>/64 (config-if)#ipv6 address 2001:DB8:1122:12::<router #>/64 (config-if)#no shutdown

  Verify connectivity by using ping to next-hop router #ping <global or unique-local address of next-hop router> #show ipv6 neighbors

Lab 1: Configuring IPv6 Interfaces (6)

Page 14: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 14

Lab 1: Review Questions

 How many IPv6 address do you see under the Ethernet 0/0 interface on the hosts (H1, H2) and routers (R1, R4)?

 What are these different types of addresses?

 Why do you need to specify the outgoing interface when pinging a link-local address?

 When configuring an IPv6 address what does eui-64 format do?

 When you do show ipv6 neighbor what does STALE means? Does it remain in STALE all the time?

Page 15: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 15

Lab 1: Answers to Review Questions

  A1: Five.

  A2: Link-local (FE80::/10), Global Unicast (2001::/3), All-Nodes Multicast (FF02::1), All-Routers Multicast (FF02::2) & Solicited-Node Multicast address (FF02::1:FFXX:XXXX).

  A3: All IPv6 enabled interfaces share the same link-local prefix (FE80::/10) so we need to specify which interface should be used for the ping. Look at output of “show ipv6 route”, only one FE80::/10 prefix should be listed.

  A4: The eui-64 format is used for stateless address auto-configuration. It uses the 48-bit MAC to form a 64-bit interface ID by inserting FFFE (16-bits) in the middle of the MAC address.

  A5: STALE means that no IPv6 packets has been received form the neighbor for the last 30 seconds. The state of the neighbor changes to REACH when any IPv6 packet is received from that neighbor

Page 16: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 16

Lab 2(Optional) : IPv6 Static Routing

Page 17: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 17

Lab 2: Task Summary

 Configure IPv6 default static routes on R1 & R4

 Configure IPv6 static routes on R3 & R4

 Use ping to verify IPv6 connectivity between R1 & R4

 Use show commands to view IPv6 routing table

 Answer review questions at the end of this section

 Detail step by step instructions on the next slide..

Page 18: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 18

Lab 2 : IPv6 Static Routing (1) Task : Configuring IPv6 Static Routing on Routers   Configure static default routes on R1 and R4 pointing to R2 and R3

respectively (see Table 1 for addressing details)   On R1:

(config)#ipv6 route ::/0 2001:DB8:1122:12::2   On R4:

(config)#ipv6 route ::/0 2001:DB8:3344:34::3   Configure static routes on R2 pointing to R4’s E1/0 network; R3

pointing to R1’s E1/0 network. (see Table 1 for addressing details)   On R2:

(config)#ipv6 route 2001:DB8:3344:34::/64 2004:DB8:2233:23::3   On R3:

(config)#ipv6 route 2001:DB8:1122:12::/64 2004:DB8:2233:23::2

Page 19: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 19

Lab 2 : IPv6 Static Routing (2)

Task : Verifying IPv6 Connectivity using Static Routes  Verify the routing table

#show ipv6 route

 Verify IPv6 connectivity using the ping command using the peer’s IPv6 Address

#ping <your peer’s Global IPv6 Address>

 Can you ping from R1 to R4 and vice versa? If not, troubleshoot why the ping is not working.

Hint: Use “debug ipv6 icmp” and “debug ipv6 packet” on R2 & R3 to see if traffic is being forwarded.

Page 20: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 20

Lab 2 : Review Questions

 What does “::/0” mean when defining a static route in IPv6?

  Is there any difference in how Static Routing works in IPv6 versus IPv4?

 Can the next hop in static route be a link local address? Try changing the next hop to link local and see if it works.

 Can you put interface as a next hop on broadcast domain? Why or why not? How about on serial ?

Page 21: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 21

Lab 2 : Answers to Review Questions

 A1: It specifies IPv6 default route.  A2: Static Routing works the same in IPv6 and IPv4.  A3: The next-hop can be link local with some restriction

that the interface has to be defined along with the link-local.

 A4: No, unlike IPv4, specifying interface as a next hop on Ethernet based interfaces will cause encapsulation failure. On serial it is allowed since there is no address resolution for the next hop.

Page 22: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 22

Conclusion   Start now rather than later

Purchase for the future and test, test and then test some more Start moving legacy application towards IPv6 support

  Things we did not talk about, but they are very important to consider ISP multihoming solutions (Multi6 WG)—“Goals for IPv6 Site-Multihoming Architectures” (RFC 3582)—http://www.ietf.org/html.charters/multi6-charter.html IPv6 Addressing Considerations (RFC 5375) IPv4-IPv6 and IPv6-IPv6 Interworking: draft-mrw-behave-nat66, draft-arkko-townsley-coexistence, draft-wing-nat-pt-replacement-comparison, draft-durand-softwire-dual-stack-lite IETF WG Activities: v6ops, 6man, shim6 and Behave and Softwires

  Things to consider: Don’t assume your favorite vendor/app/gear has an IPv6 plan Full parity between IPv4 and IPv6 is still a ways off

  SP deployments Scenarios ISP IPv6 Deployment Scenarios in Broadband Access Networks (RFC 4779) Scenarios and Analysis for Introducing IPv6 into ISP Networks (RFC 4029) Procedures for Renumbering an IPv6 Network without a Flag Day (RFC 4192)

Page 23: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 23

Reference Materials   “Deploying IPv6 Broadband Networks” Adeel Ahmed, Salman Asadullah –

ISBN0470193387, John Wiley & Sons Publications®   “Deploying IPv6 Networks” Ciprian Popoviciu, Patrick Grossetete, Eric

Levy-Abegnoli, ISBN1587052105 - Cisco Press®

  “IPv6 Security” Scott Hogg, Eric Vyncke, ISBN1587055945 – Cisco Press®

  “Understanding IPv6” by Joseph Davies - Microsoft Press   “IPv6 Essentials” by Silvia Hagen - O’Reilly & Associates Press   www.cisco.com/go/ipv6 - CCO IPv6 main page   www.cisco.com/go/srnd - CISCO NETWORK DESIGN CENTRAL   www.cisco.com/go/fn   www.ietf.org   www.ipv6forum.com   www.ipv6.org   www.nav6tf.org/   www.6net.org

Page 24: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 24

Complete Your Online Session Evaluation

  Give us your feedback and you could win fabulous prizes. Winners announced daily.

  Receive 20 Passport points for each session evaluation you complete.

  Complete your session evaluation online now (open a browser through our wireless network to access our portal) or visit one of the Internet stations throughout the Convention Center. Don’t forget to activate your

Cisco Live Virtual account for access to all session material, communities, and on-demand and live activities throughout the year. Activate your account at the Cisco booth in the World of Solutions or visit www.ciscolive.com.

Page 25: IPv6 Hands-On Lab

© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 25