Information
The optional and extensible natures of the IPv6 extension headers require higher scrutiny since many implementations do not always drop packets with headers that it cannot recognize, and hence could cause a Denial-of-Service on the target device. In addition, the type, length, value (TLV) formatting provides the ability for headers to be very large.
Solution
Configure the switch to drop all inbound IPv6 packets containing an undefined option type value regardless of whether they appear in a Hop-by-Hop or Destination Option header as shown in the example below.
SW1(config)#ipv6 access-list FILTER_IPV6
SW1(config-ipv6-acl)#deny any any dest-option-type 2
SW1(config-ipv6-acl)#deny any any dest-option-type 3
SW1(config-ipv6-acl)#deny any any dest-option-type 6
SW1(config-ipv6-acl)#deny any any dest-option-type 9
SW1(config-ipv6-acl)#deny any any dest-option-type 10
SW1(config-ipv6-acl)#deny any any dest-option-type 11
SW1(config-ipv6-acl)#deny any any dest-option-type 12
SW1(config-ipv6-acl)#deny any any dest-option-type 13
SW1(config-ipv6-acl)#deny any any dest-option-type 14
SW1(config-ipv6-acl)#deny any any dest-option-type 16
...
SW1(config-ipv6-acl)#deny any any dest-option-type 34
SW1(config-ipv6-acl)#deny any any dest-option-type 36
SW1(config-ipv6-acl)#deny any any dest-option-type 37
SW1(config-ipv6-acl)#deny any any dest-option-type 39
...
SW1(config-ipv6-acl)#deny any any dest-option-type 47
SW1(config-ipv6-acl)#deny any any dest-option-type 49
...
SW1(config-ipv6-acl)#deny any any dest-option-type 255
SW1(config-ipv6-acl)#permit ...
...
...
...
SW1(config-ipv6-acl)#deny ipv6 any any log
SW1(config-ipv6-acl)#exit
SW1(config)#int g1/0
SW1(config-if)#ipv6 traffic-filter FILTER_IPV6