Professional Documents
Culture Documents
VERSION 6
IPv4 Workarounds
CIDR
NAT
VLSM
DHCP
IPv6 header
Version
Traffic Class
Payload Length
Flow Label
Next Header
Hop Limit
Source Address
40
octets
Destination Address
Next Header
Data Portion
32 bits
Variable
length
Extension Header
Order
Extension headers should be constructed in sequence to
minimize packet handling. Extension headers should be
sequenced in this order:
Hop-by-hop header
Destination options header (when routing header present)
Routing header
Fragment header
Authentication header
ESP header
Mobility header
Destination options header (when routing header not
present)
Upper-layer header
IPv6 overview
IPv6, formerly named IPng (next generation).
128 bit broken down into 32 (4-bit) hex
characters.
IPv6 addresses are represented as a series of
16-bit hexadecimal fields separated by colons
(:) in the format:
x:x:x:x:x:x:x:x
examples of IPv6 addresses:
2001:DB8:7654:3210:FEDC:BA98:7654:3210
2001:DB8:0:0:8:800:200C:417A
Address
Representation
Format:
x:x:x:x:x:x:x:x, where x is a 16-bit hexadecimal field
2001:0DB8:010F:0001:0000:0000:0000:0ACD
Leading zeros in a field are optional.
2001:DB8:10F:1:0:0:0:ACD
Successive fields of 0 are represented as :: but only
once in an address.
2001:DB8:10F:1::ACD
Address
Representation
(Cont.)
Example:
Address:
2001:0DB8:0000:0000:FFFF:0000:0000:0ADC
Address Representation
(Cont.)
Further examples:
FF02:0:0:0:0:0:0:1
=> FF02::1
FF15:0:0:0:0:0:1:c001 => FF15::1:c001
0:0:0:0:0:0:0:1 => ::1
0:0:0:0:0:0:0:0 => ::
Format:
IPv4-compatible:
0:0:0:0:0:0:192.0.2.100
= ::192.0.2.100
= ::C000:0264
IPv4-mapped:
0:0:0:0:0:FFFF:192.0.2.100
= ::FFFF:C000:0264
Unicast
Unicast addresses are used in a one-to-one
context.
IPv6 unicast addresses:
Global unicast addresses
Link-local addresses
Unique local addresses
Special-purpose unicast
Unspecified
Loopback
IPv4-compatible
IPv4-mapped
Link-Local Addresses
128 Bits
0
1111 1110 10
Interface ID
64 Bits
FE80::/10
10 Bits
Link-local addresses:
Have a scope limited to the link
Are automatically configured with the interface ID
Prefix
Locally Generated
Interface
8 Bits
40 Bits
64 Bits
Global ID
Interface ID
FD00::/
8
Global Unicast
Addresses
Unspecified address:
0:0:0:0:0:0:0:0
Used as a placeholder when no address is
available
(initial DHCP request, DAD)
Loopback address:
0:0:0:0:0:0:0:1
Same as 127.0.0.1 in IPv4
Identifies self
IPv4-Compatible
Addresses
80 Bits
0
16 bits
32 Bits
Multicast
Addresses
112 Bits
Group ID
1111 1111
F
F
8 Bits
Flags
Scope
Flags =
8 Bits
Scope =
4 Bits = 0 if permanent
=1 if temporary
1 = interface-local
2 = link-local
3 = subnet-local
4 = admin-local
5 = site-local
8 = organization
E = global
Multicast Assigned
Addresses
FF0X:: is reserved (X = 0..F).
Inside this range, the following are assigned
Meaning
Scope
FF02::1
All nodes
Link-local
FF02::2
All routers
Link-local
FF02::9
Link-local
FF02::1:FFXX:XXXX
Solicited-node
Link-local
FF05::101
Site-local
Anycast Addresses
n Bits
Prefix
Anycast:
128-n Bits
Interface ID
IPv6 Address
Configuration
The ipv6 address command:
Enables IPv6 on the interface
Configures the interface IPv6 addresses
router(config-if)#
ipv6 enable
ipv6 address <ipv6prefix>/<prefix-length> [eui-64]
ipv6 unnumbered <interface>
ipv6 address <fe80:ipv6addr> [link-local]
ICMPv6
Next Header = 58
ICMPv6 Packet
ICMPv6 Packet
ICMPv6 Type
ICMPv6 Code
ICMPv6
Packet
Checksum
ICMPv6 Data
Destination
MTU =
1500
MTU =
1500
MTU =
1400
MTU =
1300
Destination
Ethernet
Address
Source
Ethernet
Address
0x86DD
Neighbor Discovery
Neighbor discovery:
Solicited-Node Multicast
Address
IPv6 Address
Prefix
Interface ID
24 Bits
0001
FF
Lower 24
128 Bits
Solicited-node address:
Multicast address with a link-local scope
Formed by a prefix and the rightmost 24 bits of
every unicast and anycast address
IPv6 Address
33
33
FF
17
FC
0F
Duplicate Address
Detection
A
Neighbor Discovery:
Neighbor Solicitation
A
Neighbor Discovery:
Autoconfiguration
Autoconfiguration
Stateless
Uses neighbor discovery router advertisements
Stateful
Uses DHCPv6 service
ICMPv6 debugging
debug ipv6 nd
Distance vector
Radius of 15 hops
Split horizon, poison reverse, and so on
UDP port 521
Based on RIPv2
OSPFv3
OSPFv3
OSPFv3 Configuration
Commands
router(config)#
ipv6 router ospf process-id
Creates an OSPFv3 routing process
router(config-rtr)#
Area [area-id] range {ipv6-prefix/ prefix-length}[advertise |
not-advertise] [cost cost]
Consolidates and summarizes routes at an area boundary
router(config-if)#
ipv6 ospf process-id area area-id [instance instance-id]
Enables OSPF for IPv6 on an interface
OSPFv3 Troubleshooting
Commands
router#
show ipv6 ospf [process-id][area-id] interface [int]
Displays OSPF-related interface information
router#
show ipv6 ospf [process-id] [area-id]
Displays general information about OSPF processes
router(config-if)#
clear ipv6 ospf [ process-id] {process |force-spf |
redistribution | counters [neighbor [neighbor-interface]]}
Triggers SPF recalculations
OSPFv3 Advanced
Configuration Commands
router(config-if)#
ipv6 ospf authentication ipsec spi spi md5 [key-encryptiontype] key | null
Configures authentication between OSPF routers
router(config-if)#
ipv6 ospf neighbor [ipv6-address] [priority-number] [pollinterval seconds] [cost number] [database-filter all out]
Manually configures an OSPF neighbor
Enhanced IGRP:
Advanced distance vector mechanism with some features
common to link-state protocols
Uses protocol-dependent modules to support multiple
protocols:
IPv4
IPX
Appletalk
Easy to configure
Fast convergence
Supports IPv6 as a separate routing context
EIGRP Components
Neighbor discovery
Reliable transport protocol
DUAL finite-state machine
Protocol-dependent modules
Updates sent to reserved link-local multicast
address FF02::A
BGP4+
IPv6-specific extensions:
Scoped addresses: NEXT_HOP contains a global IPv6
address and potentially a link-local address (only
when there is
link-local reachability with the peer).
NEXT_HOP and NLRI are expressed as IPv6 addresses
and prefixes in the multiprotocol attributes.
router(config-router)#
Router2
Autonomous
System 65001
Autonomous
System 65002
2001:db8:c18:2:1::F
2001:db8:c18:2:1::1
Router1#
interface Ethernet0
ipv6 address 2001:DB8:C18:2:1::F/64
router bgp 65001
no bgp default ipv4-unicast
bgp router-id 11.12.30.1
neighbor 2001:DB8:C18:2:1::1 remote-as 65002
address-family ipv6
neighbor 2001:DB8:C18:2:1::1 activate
neighbor 2001:DB8:C18:2:1::1 prefix-list peer65002 in
neighbor 2001:DB8:C18:2:1::1 prefix-list peer65002 out
exit-address-family