cookie-size

Configures the size of the cookie field present in each L2TPv3 data packet. L2TPv3 data packets contain a session cookie that identifies the session (pseudowire) corresponding to it. In a tunnel, the cookie is a 4-byte or 8-byte signature shared between the two tunnel endpoints. This signature is configured at both the source and destination routers. If the signature at both ends do not match, the data is dropped. All sessions within a tunnel have the same session cookie size.

Supported in the following platforms:

  • Access Points — AP505i, AP510i/e, AP560i/h
  • Service Platforms — NX5500, NX7500, NX9500, NX9600, VX9000

Syntax

cookie-size [0|4|8]

Parameters

cookie-size [0|4|8]

cookie-size [0|4|8]

Configures the cookie-field size for each data packet. Select one of the following options:

  • 0 – No cookie field present in each L2TPV3 data message (this is the default setting)

  • 4 – 4 byte cookie field present in each L2TPV3 data message

  • 8 – 8 byte cookie field present in each L2TPV3 data message

Examples

nx9500-6C8809(config-l2tpv3-policy-L2TPV3Policy1)#cookie-size 8
<exsw1>(config-l2tpv3-policy-L2TPV3Policy1)#show context
l2tpv3 policy L2TPV3Policy1
 cookie-size 8
nx9500-6C8809(config-l2tpv3-policy-L2TPV3Policy1)#

Related Commands

no

Resets the cookie-field size to its default (0 - no cookie field present in each L2TPV3 data packet)