Configuring Local and Remote Cookies: Example
For L2TPv3 over IPv6 tunnels, the local and remote cookies are configured under the pseudowire. Support
has been extended for cookie roll-over that provides the ability to configure a secondary local cookie. This
example shows how to configure a cookie with size 0:
l2vpn
xconnect group g1
p2p xc3
interface GigabitEthernet0/0/0/4.2
neighbor ipv6 1111:2222::cdef pw-id 1
l2tp static local cookie size 0
l2tp static remote cookie size 0
This example shows how to configure a cookie with size 4:
l2vpn
xconnect group g1
p2p xc3
interface GigabitEthernet0/0/0/4.2
neighbor ipv6 1111:2222::cdef pw-id 1
l2tp static local cookie size 4 value <0x0-0xffffffff>
l2tp static remote cookie size 4 value <0x0-0xffffffff>
This example shows how to configure a cookie with size 8 (the lower 4 bytes are entered first; followed by
the higher 4 bytes):
l2vpn
xconnect group g1
p2p xc3
interface GigabitEthernet0/0/0/4.2
neighbor ipv6 1111:2222::cdef pw-id 1
l2tp static local cookie size 8 value <0x0-0xffffffff> <0x0-0xffffffff>
l2tp static remote cookie size 8 value <0x0-0xffffffff> <0x0-0xffffffff>
To support cookie roll-over on L2TPv3 over IPv6 tunnels, configure a secondary local cookie. The local
cookie secondary command specifies the secondary cookie value on the local router.
The primary and secondary cookies must be of the same size. Primary or secondary local cookies must match
the cookie value being received from the remote end, otherwise, packets are dropped.
Note
l2vpn
xconnect group g1
p2p xc3
interface GigabitEthernet0/0/0/4.2
neighbor ipv6 1111:2222::cdef pw-id 1
l2tp static local cookie secondary size 8 value <0x0-0xffffffff> <0x0-0xffffffff>
Enabling L2TP Static Submode: Example
This example shows you how to enable the L2TP static submode:
l2vpn
xconnect group g1
p2p xc3
interface GigabitEthernet0/0/0/4.2
neighbor ipv6 1111:2222::cdef pw-id 1
l2tp static
local cookie <>
L2VPN and Ethernet Services Configuration Guide for Cisco ASR 9000 Series Routers, IOS XR Release 6.3.x
195
Implementing Point to Point Layer 2 Services
Configuring Local and Remote Cookies: Example