The ipv6 extension-header option-code command configures a filtering policy for the IPv6 Hop-by-Hop Options or Destination Options header.
The undo ipv6 extension-header option-code command restores the default configuration for the IPv6 Hop-by-Hop Options or Destination Options header.
The ipv6 extension-header routing routing-type command configures a filtering policy for the IPv6 Routing header.
The undo ipv6 extension-header routing routing-type command restores the default configuration for the IPv6 Routing header.
The ipv6 extension-header command configures a filtering policy for the IPv6 Fragment, Encapsulating Security Payload, or Authentication header.
The undo ipv6 extension-header command restores the default configuration for the IPv6 Fragment, Encapsulating Security Payload, or Authentication header.
By default, no filtering policy is configured for IPv6 extension headers.
ipv6 extension-header { hop-by-hop | destination } option-code { all | optcodevalue } { deny | permit }
ipv6 extension-header routing routing-type { all | routing-number } { deny | permit }
ipv6 extension-header { fragment | esp | ah } { deny | permit }
undo ipv6 extension-header { hop-by-hop | destination } option-code { all | optcodevalue } [ deny | permit ]
undo ipv6 extension-header routing routing-type { all | routing-number } [ deny | permit ]
undo ipv6 extension-header { fragment | esp | ah } [ deny | permit ]
Parameter | Description | Value |
---|---|---|
hop-by-hop |
Indicates the IPv6 Hop-by-Hop Options header. |
- |
destination |
Indicates the IPv6 Destination Options header. |
- |
option-code |
Indicates all options or a specified one for an IPv6 extension header. |
- |
all |
Indicates all options for an IPv6 extension header. |
- |
optcodevalue |
Specifies the type value of an option for an IPv6 extension header. |
The value is an integer ranging from 0 to 255. |
deny |
Sets a filtering policy to deny for an IPv6 extension header. |
- |
permit |
Sets a filtering policy to permit for an IPv6 extension header. |
- |
routing |
Indicates the IPv6 Routing header. |
- |
routing-type |
Indicates all routing types or a specified one for the IPv6 Routing header. |
- |
routing-number |
Specifies the value of a routing type for the IPv6 Routing header. |
The value is an integer ranging from 0 to 255. |
fragment |
Indicates the IPv6 Fragment header. |
- |
esp |
Indicates the IPv6 Encapsulation Security Payload header. |
- |
ah |
Indicates the IPv6 Authentication header. |
- |
Usage Scenario
To prevent the system from being attacked by specific packets, run the ipv6 extension-header command to configure a filtering policy (deny or permit) for an extension header in the packets. The methods of configuring filtering policies for different types of extended headers are as follows:
Precautions
<HUAWEI> system-view [~HUAWEI] ipv6 extension-header ah deny
<HUAWEI> system-view [~HUAWEI] ipv6 extension-header routing routing-type 4 permit
<HUAWEI> system-view [~HUAWEI] ipv6 extension-header hop-by-hop option-code 5 deny
<HUAWEI> system-view [~HUAWEI] ipv6 extension-header destination option-code all deny