[Sysname-Vlan-interface1] ipsec df-bit set
Related commands
ipsec global-df-bit
ipsec global-df-bit
Use ipsec global-df-bit to set the DF bit for IP headers of encapsulated IPsec packets on all interfaces.
Use undo ipsec global-df-bit to restore the default.
Syntax
ipsec global-df-bit { clear | copy | set }
undo ipsec global-df-bit
Default
The DF bit of original IP headers is copied to the outer IP headers for encapsulated IPsec packets.
Views
System view
Predefined user roles
network-admin
Parameters
clear: Clears the DF bit for outer IP headers. In this case, the encapsulated IPsec packets can be
fragmented.
copy: Copies the DF bit of the original IP headers to the outer IP headers.
set: Sets the DF bit for outer IP headers. In this case, the encapsulated IPsec packets cannot be
fragmented.
Usage guidelines
This command is effective only when the IPsec encapsulation mode is tunnel mode. It is not effective in
transport mode because outer IP headers are not added in transport mode.
This command does not change the DF bit for the original IP headers of encapsulated packets.
Packet fragmentation and re-assembly might cause packet forwarding delayed. If you set the DF bit for
encapsulated IPsec packets, the packets will not be fragmented. In this case, make sure the MTU on each
interface along the forwarding path is larger than the IPsec packet length. Otherwise, the packets are
discarded. If you cannot make sure of the MTU value, HP recommends clearing the DF bit.
Examples
# Set the DF bit for outer IP headers of encapsulated IPsec packets on all interfaces.
<Sysname> system-view
[Sysname] ipsec global-df-bit set
340