Appendix A: IPv6
2010 Juniper Networks, Inc. All rights reserved. | www.juniper.net | Worldwide Education Services
Chapter Objectives
After successfully completing this appendix, you will be able to:
Describe some differences between IPv4 and IPv6 List IPv6 address types and describe the IPv6 addressing format Enable an interface for IPv6 operation Configure and monitor routing for IPv6 environments Tunnel IPv6 traffic over an IPv4 network
www.juniper.net | A-
Agenda: IPv6
Introduction to IPv6 Routing Protocol Configuration Examples Tunneling IPv6 over IPv4
www.juniper.net | A-
What Is IPv6?
Next Generation Protocol:
Defined by the IETF Defined as RFC 2460 Intended to replace IPv4
www.juniper.net | A-
IPv6
128-bit (16-byte) address supports 2128 (about 3.41038) addresses Does not support NAT by design Hosts use stateless address autoconfiguration to assign an IP address to themselves IPsec support is necessary Improved support for options using extension headers and overall simplification of the header format
Worldwide Education Services
www.juniper.net | A-
IPv6 Structure
The IPv6 header has the following improvements:
Fixed length of 40 bytes Simple, more efficient processing Extension headers handle additional options Several IPv4 fields have been removed:
Header length, identification, flags, fragment offset, and header checksum
Version (4)
www.juniper.net | A-
IPv6 Header
Version Traffic Class Flow Label Next Header Hop Limit
Payload Length
Header Checksum
Key
Fields the same in IPv4 and IPv6 Fields removed in IPv6 Name and position changed in IPv6 New field in IPv6
www.juniper.net | A-
www.juniper.net | A-
IPv6 Addressing
Extending address space is a major reason for IPv6
IPv4 address exhaustion is predicted to occur in the near future 128-bit (16-byte) address supports 2128 (about 3.41038) addresses 295 addresses for each person on Earth 252 addresses for each observable star in the known universe
www.juniper.net | A-
www.juniper.net | A-
Address Notation
Each IPv6 address has 128 bits
Eight 16-bit hexadecimal blocks separated by colons Use abbreviations to simplify the notation You can omit leading zeros Double colon can replace consecutive zeros, leading zeros, or trailing zeros, but can not be used twice in an address 2bfc:0000:0000:0000:0217:cbff:fe8c:5c85 2bfc:0:0:0:217:cbff:fe8c:5c85 2bfc::217:cbff:fe8c:5c85
Leading zeros omitted Double colon
www.juniper.net | A-
Prex Notation
Prefix identifies the subnet
Defined in RFC 4291 Similar to IPv4 in text presentation:
IPv6 address/prefix length
64-bit prefix
www.juniper.net | A-
Address Allocation
Organizations and end users get an address allocation from their ISP
You must follow a few rules, as defined in RFC 3177
Subscriber Home network subscribers, connecting through on-demand or always-on connections Small and large enterprises Very large subscribers Mobile networks, such as vehicles or mobile phones with an additional network interface A single PC, with no additional need to subnet, dialing-up from a hotel room 48-bit prefix 48-bit prefix 47-bit, or multiple 48-bit prefixes 64-bit prefix, which allows multiple connections through a single prefix 128-bit address can be assigned as part of a 64-bit prefix
www.juniper.net | A-
Prefix
Special Addresses
The prefix 0000 0000 is reserved for special addressing
Unspecified address: Also called the all-zeros address
0:0:0:0:0:0:0:0, or ::
Loopback address: Commonly used for testing the IP stack on the localhost
0:0:0:0:0:0:0:1, or ::1
www.juniper.net | A-
Address Scope
IPv6 addresses have scope, which identifies the application suitable for the address
Unicast and multicast addresses support scoping Scope can be local or global
Internet
Addresses with local scope are used within the same routing domain. Addresses with global scope are used between routing domains.
Company ABC
Company XYZ
www.juniper.net | A-
1111111010
0000..0000
Interface ID
R1
fe80::226:88ff:fe02:7481 ge-0/0/1.0
2010 Juniper Networks, Inc. All rights reserved.
fe80::226:88ff:fe02:7482 ge-0/0/2.0
Worldwide Education Services
www.juniper.net | A-
R1
::1 ge-0/0/1.0 FEC0:0:0:2003::/64 ::2 ge-0/0/1.0
R2
www.juniper.net | A-
Site Topology
SID (16 bits)
Interface Identifier
Interface ID (64 bits)
Internet
Company ABC
2010 Juniper Networks, Inc. All rights reserved.
Interface ID
Interface ID
Uniquely identifies a host on a subnet Is 64 bits long Is based on IEEE EUI-64 address Is a permutation of the interface MAC address (if available)
Interface Identifier
FP (3 bits) Global Routing Prefix (45 bits) SID (16 bits) Interface ID (64 bits)
www.juniper.net | A-
Stateless Autoconguration (1 of 2)
Allows local hosts to autoconfigure IPv6 addresses
Eliminates the need for stateful configuration elements, such as DHCP Elements of stateless autoconfiguration:
Extended unique identifier Router advertisement message Router solicitation message Prefix list
Neighbor discovery:
The process of tracking reachability status for neighbors in a local link Specified in RFC 2461
www.juniper.net | A-
Stateless Autoconguration (2 of 2)
Address autoconfiguration
1 Link-Local Address: Autoconfigured Global Addresses Fe80::1234:abff:fecd:5678 2bfc::1234:abff:fecd:5678 3afc::1234:abff:fecd:5678 2caf::1234:abff:fecd:5678 2 RS 3 RA 1 Link-Local Address: Autoconfigured Global Addresses Fe80::9876:dcff:feba:5432 2bfc::9876:dcff:feba:5432 3afc::9876:dcff:feba:5432 2caf::9876:dcff:feba:5432 RS RA 4 Host A MAC Address: 1234.abcd.5678 Host B MAC Address: 9876.dcba.5432 Router
Trust
Untrust
www.juniper.net | A-
Stateful Autoconguration
Allows DHCP to configure address assignment
Also known as stateful DHCPv6 in RFC 3315 Possible reasons for DHCPv6:
You require a specific IPv6 addressing scheme You require dynamic assignment of DNS servers You require dynamic updates to DNS servers You do not wish to have the MAC address as part of the IPv6 address
www.juniper.net | A-
Site-local addresses
Company ABC
R1
::1 ge-0/0/1.0 FEC0:0:0:2003::/64 ::2 ge-0/0/1.0
R2
www.juniper.net | A-
user@R2> show interfaces terse ge-0/0/1 Interface Admin Link Proto ge-0/0/1 up up ge-0/0/1.0 up up inet6
Local
Remote
fe80::226:88ff:fe02:6b81/64 fec0:0:0:2003::2/64
www.juniper.net | A-
www.juniper.net | A-
www.juniper.net | A-
www.juniper.net | A-
www.juniper.net | A-
Agenda: IPv6
Introduction to IPv6 Routing Protocol Configuration Examples Tunneling IPv6 over IPv4
www.juniper.net | A-
Company ABC
R1
::1 ge-0/0/1.0 FEC0:0:0:2003::/64 ::2 ge-0/0/1.0
R2 Internet
www.juniper.net | A-
Company ABC
R1
::1 ge-0/0/1.0 FEC0:0:0:2003::/64 ::2 ge-0/0/1.0
R2 Internet
www.juniper.net | A-
Area 0.0.0.0
R1
::1 ge-0/0/1.0 FEC0:0:0:2003::/64 ::2 ge-0/0/1.0
R2
Note: The RID selection process is the same for OSPFv2 and OSPFv3. We recommend you manually set the RID, as shown in the example.
2010 Juniper Networks, Inc. All rights reserved.
www.juniper.net | A-
user@R1> show ospf3 neighbor ID Interface State 192.168.100.2 ge-0/0/1.0 Full Neighbor-address fe80::226:88ff:fe02:6b81
www.juniper.net | A-
Protocol Configuration
[edit protocols] user@R1# show isis { interface ge-0/0/1.0; interface lo0.0; }
www.juniper.net | A-
user@R1> show isis adjacency detail R2 Interface: ge-0/0/1.0, Level: 1, State: Up, Expires in 21 secs Priority: 64, Up/Down transitions: 1, Last transition: 00:18:10 ago Circuit type: 3, Speaks: IP, IPv6, MAC address: 0:26:88:2:6b:81 Topologies: Unicast Restart capable: Yes, Adjacency advertisement: Advertise LAN id: R1.02, IP addresses: 192.168.100.2 IPv6 addresses: fe80::226:88ff:fe02:6b81
2010 Juniper Networks, Inc. All rights reserved.
www.juniper.net | A-
www.juniper.net | A-
www.juniper.net | A-
Agenda: IPv6
Introduction to IPv6 Routing Protocol Configuration Examples Tunneling IPv6 over IPv4
www.juniper.net | A-
www.juniper.net | A-
Site A
R1 ::2 User A FEC0:0:0:2000::/64 ::1
Site B Internet
R2 ::1 ::2 User B FEC0:0:0:2001::/64
www.juniper.net | A-
Site A
::2 User A
192.168.1.1 R1 ::1
192.168.2.1
Site B
::2 User B
Internet
R2 ::1
FEC0:0:0:2000::/64
FEC0:0:0:2001::/64
www.juniper.net | A-
Site A
::2 User A
192.168.1.1 R1 ::1
192.168.2.1
Site B
::2 User B
Internet
R2 ::1
FEC0:0:0:2000::/64
FEC0:0:0:2001::/64
www.juniper.net | A-
lab@R2> show interfaces gr-0/0/0 terse Interface Admin Link Proto gr-0/0/0 up up gr-0/0/0.0 up up inet6
Local
Remote
fe80::226:88ff:fe02:6b80/64 fec0:0:0:1000::2/126
Site A
::2 User A
192.168.1.1 R1 ::1
192.168.2.1 R2
Site B
::2 User B
Internet
::1
FEC0:0:0:2000::/64
FEC0:0:0:2001::/64
Remember that GRE tunnels are stateless, so you should always ensure that both sides are up.
2010 Juniper Networks, Inc. All rights reserved.
www.juniper.net | A-
user@R1> show route table inet6.0 fec0:0:0:2001::/64 inet6.0: 7 destinations, 8 routes (7 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both fec0:0:0:2001::/64 *[Static/5] 00:31:03 > via gr-0/0/0.0
www.juniper.net | A-
Site A
::2 User A
192.168.1.1 R1 ::1
192.168.2.1
Site B
::2 User B
Internet
R2 ::1
FEC0:0:0:2000::/64
2010 Juniper Networks, Inc. All rights reserved.
FEC0:0:0:2001::/64
Worldwide Education Services
www.juniper.net | A-
Summary
In this appendix, we:
Described some differences between IPv4 and IPv6 Listed IPv6 address types and described the IPv6 addressing format Enabled an interface for IPv6 operation Configured and monitored routing for IPv6 environments Tunneled IPv6 traffic over an IPv4 network
www.juniper.net | A-
Review Questions
1. Name three benefits of switching from IPv4 to IPv6. 2. What types of unicast address exist? 3. What command would you use to view IPv6 OSPF neighbors?
www.juniper.net | A-