Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IPv6 (ipv6)

Reached from

Lower layerSelectorValue
ethernet2ethertype34525 (0x86dd)
dot1qethertype34525 (0x86dd)
dot1adethertype34525 (0x86dd)
snappid34525 (0x86dd)
ipv4protocol41 (0x29)
ipv6next_header41 (0x29)
ipv6_hopoptsnext_header41 (0x29)
ipv6_routenext_header41 (0x29)
ipv6_srhnext_header41 (0x29)
ipv6_fragnext_header41 (0x29)
ipv6_dstoptsnext_header41 (0x29)
pppprotocol87 (0x0057)
greprotocol_type34525 (0x86dd)
mplsFirst 4 bits of the payload when s = 16
gtpuFirst 4 bits of the payload when message_type = 255 (0xff)6
geneveprotocol_type34525 (0x86dd)
pim_registerFirst 4 bits of the payload when type = 16

Fields

FieldTypeDefaultAutoDescription
versionuint(4)6IP version, always 6.
dscpuint(6)0Differentiated services code point (QoS class, 0 to 63).
ecnuint(2)0Explicit congestion notification (0 = not ECT, 1 / 2 = ECT, 3 = CE).
flow_labeluint(20)0Flow label (20 bits) identifying a flow for routers; 0 = none.
payload_lengthuint(16)Length of the payload in octetsLength of everything after this header, including extension headers (Auto).
next_headerenum(8)253 (experimental)Protocol number of the next layer (see Next layer)Protocol number of the next header (Auto; 253 = experimental when none is known).
hop_limituint(8)64Hop limit; decremented at every router, 0 is never sent.
srcipv62001:db8::1Source IPv6 address.
dstipv62001:db8::2Destination IPv6 address.

next_header

ValueName
0 (0x00)hop_by_hop
4 (0x04)ipv4
6 (0x06)tcp
17 (0x11)udp
41 (0x29)ipv6
43 (0x2b)routing
44 (0x2c)fragment
46 (0x2e)rsvp
50 (0x32)esp
51 (0x33)ah
58 (0x3a)icmpv6
59 (0x3b)no_next_header
60 (0x3c)destination_options
88 (0x58)eigrp
89 (0x59)ospf
112 (0x70)vrrp
132 (0x84)sctp
143 (0x8f)ethernet
253 (0xfd)experimental

Next layer

The next layer is selected by next_header; when the field is Auto the builder writes the value of the protocol stacked above.

ValueProtocolNote
0 (0x00)ipv6_hopopts
4 (0x04)ipv4
6 (0x06)tcp
17 (0x11)udp
41 (0x29)ipv6
43 (0x2b)ipv6_route
44 (0x2c)ipv6_frag
46 (0x2e)rsvp
47 (0x2f)gre
58 (0x3a)icmpv6
60 (0x3c)ipv6_dstopts
88 (0x58)eigrp
89 (0x59)ospfv3
112 (0x70)vrrpv3_ipv6
115 (0x73)l2tpv3
132 (0x84)sctp
143 (0x8f)ethernet2

8 bits of the payload after its first 16 bits when next_header = 43 (0x2b)

ValueProtocol
4 (0x04)ipv6_srh
(any other value)ipv6_route

Constraints

LevelRule
warningversion = 6
warninghop_limit ≠ 0

Sample templates