1. IPv6 Routing Lab
Quick review of IPv6 Addressing
Basic v6 Router configs
Setting up OSPFv3
Setting up DHCPv6
By: Rob Hamm
Instructor
Computer Information Systems Administration
British Columbia Institute of Technology
2. Fa 0/0
PC1
PC2
PC3
R2
R3 ISP
R1
Ser 0/1/0
.2
Ser 0/1/0
.1
Ser 0/1/0
.2
Ser 0/2/0
.1
Ser 0/2/0
.2
Ser 0/1/0
.1
Fa 0/0
Fa 0/0
2000:1::/64
2000:5::/64
2000:6::/64
2000:3::/64
2000:2::/64 2000:4::/64
IPv6 Lab Topology
1. Setup static addresses
2. Setup OSPFv3
3. Create static/default routes
4. Setup DHCPv6
5. Two Rules for Address Abbreviation
Rule 1: Leading zeroes in any segment can be omitted
2000 : 0001 : 0000 : 0000 : 0000 : 0000 : 0000 : 0001 / 64
2000: 1 : 0 : 0 : 0 : 0 : 0 : 1 / 64
Rule 2: A single contiguous string of all-zero segments can be
represented with a double colon.
2000 : 0001 : 0000 : 0000 : 0000 : 0000 : 0000 : 0001 / 64
2000: 1 :: 1 / 64
<-------------- Network -----------> <--------------- Host ------------->
<-------------- Network -----------> <--------------- Host ------------->
6. IPv6 Addressing
IPv6 Address Types:
MulticastUnicast Anycast
Assigned Solicited
Global Unicast UnspecifiedLoopback
Embedded IPv4
Link-Local Unique Local
FF00::/8 FF02::1:FF00:0000/104
::/128::1/1282000::/3
3FFF::/3
FE80::/10
FEBF::/10
FC00::/7
FDFF::/7
::/80
Note: There are no broadcast addresses in IPv6
7. Interface IDSubnet IDGlobal Routing Prefix
Structure of a Global Unicast Address
n bits m bits 128-n-m bits
001 Range 2000::/3 to 3FFF::/3
7
IANA’s allocation of IPv6 address space in 1/8th sections
• Global unicast addresses
are similar to IPv4
addresses.
• Routable
• Unique
9. R1# conf t
R1(config)#
R1(config)# interface fa 0/0
R1(config-if)# ipv6 address 2000:1::1/64 Manual Static
OR
R1(config-if)# ipv6 address 2000:1::/64 EUI Manual EUI-64
2 Ways to Configure a Static Global Unicast Address
No Host Portion
10. R1(config)# ipv6 router ospf 1
R1(config-rtr)# router-id 1.1.1.1 still use 32 bit router ID
R1(config-rtr)# exit NO network statements at all!
R1(config)# interface fa0/0
R1(config-if)# ipv6 ospf 1 area 0
Default route on R3
R3(config)# ipv6 route ::/0 Serial0/1/0
R3(config)# ipv6 router ospf 1
R3(config-rtr)# default-information originate still same
Configuring OSPFv3
11. ! SLAAC configures IP address & Default Gateway on hosts
! DHCP is necessary to provide DNS information
R1(config)# ipv6 dhcp pool cisco1
R1(config-dhcp)# dns-server 2000:6::2
R1(config-dhcp)# exit
R1(config)# interface fa 0/0
R1(config-if)# ipv6 dhcp server cisco1
! Tell ICMPv6 to set “O” flag so clients will accept DHCP info
R1(config-if)# ipv6 nd other-config-flag
Configuring Stateless DHCPv6
12. show ipv6 interface brief command on router R1
R1# show ipv6 interface brief
FastEthernet0/0 [up/up]
FE80::203:6BFF:FEE9:D480
2000:1::1 Global unicast address
Link-local unicast address
12
• Link-local address automatically created when/before the
global unicast address is.
• We will discuss link-local addresses next.
13. PC1> ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : 2000:1::2
Link-local IPv6 Address . . . . . : fe80::50a5:8a35:a5bb:66e1%11
Default Gateway . . . . . . . . . : 2000:1::1
13
PC1: Static Global Unicast Address
15. R1
DHCPv6 Server
• Neighbor Discovery Protocol
• The router’s Router Advertisement (RAs)determines how the
host gets its dynamic address configuration.
• ipv6 unicast-routing command enables router to send RAs.
• Default = Stateless Address Auto Configuration (SLAAC)
• Router uses ICMPv6 to deliver IP address & D.G. via RA.
• Other Options:
• Stateless DHCPv6 – delivers only additional info (e.g. DNS)
• Stateful DHCPv6 – delivers all IP info
RA
RS
DNS info
16. • Used to communicate with other devices on the link.
• Are NOT routable off the link.
• An IPv6 device must have at least one link-local address.
• Used by:
• Hosts to communicate to the IPv6 network before it has a
global unicast address.
• Used as the default gateway address by hosts.
• Adjacent routers to exchange routing updates
Interface ID
/64
1111 1110 10xx xxxx
FE80::/10
Remaining 54 bits10 bits 64 bits
EUI-64, Random or Manual Configuration
Link-local unicast
17. PC1> ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
IPv6 Address. . . . . . . . . : 2000:1::D2FF:FE8C:E04C
Link-local IPv6 Address . . . : fe80::50a5:8a35:a5bb:66e1%11
Default Gateway . . . . . . . : fe80::200:CFF:FEDA:37D7
Windows Addresses
• WinXP and Server 2003 use EUI-64.
• Vista & Win7/8 use pseudo random 64-bit Interface ID.
• The %11 following the address is a Windows Zone ID (not IPv6).
18. IPv6 Resources
• IPv6 Fundamentals, Rick Graziani, Cisco Press
• www.cabrillo.edu/~rgraziani/ipv6/Site/IPv6.html
– Watch Rick’s videos and check out his PPTs
• Keith Barker’s YouTube Channel has a fantastic 9-video playlist on
IPv6 (most are 15-20 minutes long)
Hinweis der Redaktion
NOTE: Several of these slides are altered versions from Rick Graziani’s IPv6 Presentation