The ospfv3 valid-ttl-hops command enables OSPFv3 GTSM and set the TTL value to be checked.
The undo ospfv3 valid-ttl-hops command disables OSPFv3 GTSM.
By default, OSPFv3 GTSM is disabled.
Parameter | Description | Value |
---|---|---|
ttl |
Specifies the TTL value to be checked. |
The value is an integer that ranges from 1 to 255. If you specify the parameter hops, the valid range of the TTL value in the packet to be checked is [ 255-hops+1, 255 ]. |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. If this parameter is specified, it indicates that only the TTL value of the packets in the specified VPN instance needs to be checked. |
The value is a string of 1 to 31 characters. |
Usage Scenario
GTSM can improve the security of an OSPFv3 network and protect a device against attacks by checking TTL values.
The ospfv3 valid-ttl-hops command has two functions, that is, enabling OSPFv3 GTSM and setting the TTL value to be checked. The parameter vpn-instance is valid only when you need to set the TTL value to be checked. If a VPN instance is specified in the ospfv3 valid-ttl-hops command and the interface is bound to this VPN instance, all the unicast packets sent to this interface are dropped when the configured TTL value is smaller than the actual number of hops in the network. If a virtual link or a sham link is configured, the number of TTL hops needs to be set according to the actual number of hops. That is, the number of Routers that the virtual link or sham link passes through must be counted; otherwise, the packets sent from the peer end of the virtual link or sham-link are dropped.Precautions
If a VPN instance is specified in the ospfv3 valid-ttl-hops command and the interface is bound to the VPN instance, if the configured TTL value is smaller than the actual TTL value on the network, all unicast packets sent to the interface are discarded.